/* ============================================
   VARIABLES CSS - Sistema de Diseño
   ============================================ */
:root {
    --background: hsl(0, 0%, 100%);
    --foreground: hsl(220, 15%, 20%);
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(220, 15%, 20%);
    --primary: hsl(0, 72%, 51%);
    --primary-foreground: hsl(0, 0%, 100%);
    --secondary: hsl(217, 91%, 60%);
    --secondary-foreground: hsl(0, 0%, 100%);
    --muted: hsl(210, 40%, 96.1%);
    --muted-foreground: hsl(215, 16%, 47%);
    --accent: hsl(45, 93%, 47%);
    --accent-foreground: hsl(0, 0%, 100%);
    --border: hsl(214, 32%, 91%);
    --input: hsl(214, 32%, 91%);
    --ring: hsl(0, 72%, 51%);
    --radius: 0.5rem;
    --hero-gradient: linear-gradient(135deg, hsla(0, 72%, 51%, 0.95), hsla(217, 91%, 60%, 0.95));
    --section-gradient: linear-gradient(180deg, hsl(0, 0%, 100%), hsl(210, 40%, 98%));
}

/* ============================================
   RESET Y BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
}

/* ============================================
   UTILIDADES GENERALES
   ============================================ */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 2rem;
    }
}

/* ============================================
   NAVEGACIÓN
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: #415c73;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

/* .nav-logo .logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: hsl(0, 0%, 92.5%);   
}============================================ */

.nav-logo .logo-image {
    height: 2.5rem;
    width: auto;
    object-fit: contain;
    transition: all 0.2s ease;
}

.nav-logo .logo-image:hover {
    opacity: 0.85;
    transform: scale(1.02);
    
}
    

.nav-menu {
    display: none;
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
        align-items: center;
        gap: 2rem;
    }
}

.nav-link {
    color: hsl(0deg 0% 100%);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: var(--foreground);
    cursor: pointer;
    padding: 0.5rem;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.menu-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.mobile-menu {
    display: none;
    padding: 1rem 0;
    flex-direction: column;
    gap: 1rem;
}

.mobile-menu.active {
    display: flex;
}

.mobile-link {
    display: block;
    padding: 0.5rem 0;
}



/* ============================================
   BOTONES
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    background: none;
    font-family: inherit;
}

.btn-primary {
    background-color: hsl(0deg 0% 0%);
    color: var(--primary-foreground);
    border-color: hsl(0deg 5% 52.94%);
}

.btn-primary:hover {
    background-color: hsl(207.6deg 27.78% 35.29%);
    border-color: hsl(0deg 0% 100%);
}

.btn-outline {
    background-color: transparent;
    color: var(--foreground);
    border-color: var(--border);
}

.btn-outline:hover {
    background-color: var(--muted);
}

.btn-service {
    background-color: #415c73;
    color: hsl(0deg 0% 95.69%);
    border-color: hsl(214deg 2.62% 74.34%);
}

.service-card.active .btn-service {
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

.service-card .btn-service:hover {
    background-color: var(--muted);
}

.service-card.active .btn-service:hover {
    background-color: hsl(0, 72%, 45%);
    border-color: hsl(0, 72%, 45%);
}

.btn-hero {
    background-color: hsl(0deg 0% 0%);
    color: var(--primary-foreground);
    border-color: hsl(0deg 5.01% 53.07%);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-hero:hover {
    background-color: hsl(205.22deg 33.32% 38.04%);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-outline-hero {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-outline-hero:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
}

.btn-icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* ============================================
   HERO SECTION
   ============================================ */
 .hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 4rem;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, hsl(0deg 0% 71.11% / 85%) 0%, hsl(0deg 0% 0% / 85%) 100%);

}

/* Alternativa con overlay más sutil si quieres ver más la bandera */
/* 
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
}
*/

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem 1rem;
}

.hero-text {
    max-width: 64rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-title {
    font-size: 3.25rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 42rem;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

/* ============================================
   SECTION HEADER
   ============================================ */
.section-header {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto 4rem;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.25rem;
    }
}

.section-description {
    font-size: 1.125rem;
    color: hsl(207.6deg 27.78% 35.29%);
}

/* ============================================
   BENEFITS SECTION
   ============================================ */
.benefits {
    padding: 5rem 0;
    background: #f3f3f3;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.benefit-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.benefit-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    width: 5rem;
    height: 5rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.benefit-icon svg {
    width: 5rem;
    height: 5rem;
    color: hsl(207.6deg 27.78% 35.29%);
}

.benefit-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.5rem;
    text-align: center;
}

.benefit-description {
    color: var(--muted-foreground);
    text-align: center;
}

/* ============================================
   PROCESS SECTION
   ============================================ */
.process {
    padding: 5rem 0;
    background-color: #ffffff;
}

.process-steps {
    max-width: 64rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.process-step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.process-step:hover .step-number {
    border-color: ##ffffff ;
}

.step-number {
    flex-shrink: 0;
    width: 4rem;
    height: 4rem;
    border-radius: 9999px;
    border: 2px solid hsl(207.6deg 27.78% 35.29%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s;
}

.step-number span {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(207.6deg 27.78% 35.29%);
}

.step-content {
    flex: 1;
    padding-top: 0.5rem;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.step-check {
    width: 1.25rem;
    height: 1.25rem;
    color: hsl(207.6deg 27.78% 35.29%);
    opacity: 0;
    transition: opacity 0.2s;
}

.process-step:hover .step-check {
    opacity: 1;
}

.step-description {
    color: var(--muted-foreground);
}

/* ============================================
   SERVICES SECTION
   ============================================ */
   
.services {
    padding: 5rem 0;
    background: rgb(244, 244, 244);;
    position: relative;
    overflow: hidden;
}

.services-background {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    z-index: 0;
}

.services-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.services-content {
    position: relative;
    z-index: 10;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 72rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.service-card-popular {
    border-color: var(--primary);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

.service-card.active {
    border-color: var(--primary);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 0 0 4px hsla(0, 72%, 51%, 0.15);
    transform: scale(1.03);
}

.service-card-popular.active {
    transform: scale(1.06);
}

.service-card .btn-full {
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s, color 0.2s, border-color 0.2s;
}

.service-card.active .btn-full {
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
    box-shadow: 0 8px 16px -4px hsla(0, 72%, 51%, 0.35), 0 0 0 3px hsla(0, 72%, 51%, 0.2);
    transform: translateY(-1px);
}

.popular-badge {
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent);
    color: var(--accent-foreground);
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.service-header {
    margin-bottom: 1.5rem;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.5rem;
    text-align: center;
}

.service-description {
    color: var(--muted-foreground);
}

.service-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.service-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--foreground);
}

.feature-check {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.cta-background {
    position: absolute;
    inset: 0;
    opacity: 0.99;
    z-index: 0;
}

.cta-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.cta-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, hsl(0deg 0% 71.11% / 85%) 0%, hsl(0deg 0% 0% / 85%) 100%);
    z-index: 5;
}

.cta-content {
    max-width: 64rem;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    z-index: 10;
}

.cta-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #ffffff;
}

@media (min-width: 768px) {
    .cta-title {
        font-size: 3rem;
    }
}

.cta-description {
    font-size: 1.25rem;
    color: #ffffff;
    max-width: 42rem;
    margin: 0 auto;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
    }
}

.cta-contact-info {
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
}

@media (min-width: 640px) {
    .cta-contact-info {
        flex-direction: row;
    }
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-item:visited {
    color: inherit;
}

.contact-item:hover,
.contact-item:focus {
    color: #ffffff;
}

.contact-icon {
    width: 1.25rem;
    height: 1.25rem;
}


/* ============================================
   FOOTER
   ============================================ */
.footer {
    background-color: hsla(220, 15%, 20%, 0.05);
    border-top: 1px solid var(--border);
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 0rem;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--foreground);
} 

.footer-column:first-child {
    margin-right: 3rem;
}

@media (min-width: 768px) {
    .footer-column:first-child {
    margin-right: 4rem;
    margin-inline-start: 50px;
    margin-block-start: 0em;
    }
}
.footer-logo {
    height: 2.5rem;
    width: auto;
    object-fit: contain;
    margin-bottom: 0.5rem;
} 

.footer-subtitle {
    font-weight: 600;
    color: var(--foreground);
}

.footer-text {
    color: var(--muted-foreground);
    font-size: 0.88rem;
    margin-inline-start: 50px;
    margin-block-start: 0em;
}

@media (min-width: 768px) {
    .footer-text {:first-child {
   font-size: 0.88rem;
    margin-inline-start: 92px;
    margin-block-start: 0em;
    }
}


.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.footer-links a {
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.footer-list a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-list a:visited {
    color: inherit;
}

.footer-list a:hover,
.footer-list a:focus {
    color: var(--primary);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}