/* =======================================
   RESET Y VARIABLES GLOBALES
======================================= */

:root {
    --color-mint-soft: #A8D8C8;
    --color-sand-beige: #F5EFE6;
    --color-slate-gray: #4A4A4A;
    --color-soft-coral: #508282;
    --color-white: #FFFFFF;
    
    --font-heading: 'Lora', serif;
    --font-body: 'Lato', sans-serif;

    --transition-speed: 0.3s;
}

.grecaptcha-badge {
  visibility: hidden !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-slate-gray);
    line-height: 1.7;
    background-color: var(--color-white);
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =======================================
   ESTILOS GENERALES Y UTILIDADES
======================================= */

.section-padding {
    padding: 80px 0;
}

.section-bg-beige {
    background-color: var(--color-sand-beige);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-slate-gray);
    text-align: center;
    margin-bottom: 65px;
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: -40px auto 50px auto;
    font-size: 1.1rem;
}

.cta-button {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all var(--transition-speed) ease;
    border: 2px solid transparent;
    text-align: center;
}

.cta-button--primary {
    background-color: var(--color-soft-coral);
    color: var(--color-white);
}

.cta-button--primary:hover {
    background-color: #d8695d;
    transform: translateY(-3px);
}

.cta-button--secondary {
    background-color: transparent;
    color: var(--color-soft-coral);
    border: 2px solid var(--color-soft-coral);
}

.cta-button--secondary:hover {
    background-color: var(--color-soft-coral);
    color: var(--color-white);
}

.cta-button i {
    margin-right: 8px;
}

/* =======================================
   HEADER Y NAVEGACIÓN
======================================= */

.main-header {
    background: var(--color-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    width: 1260px;
    margin: 0 auto;
}

.logo a {
    display: table; 
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-slate-gray);
    text-decoration: none;
    line-height: 0px;
}
.titulo-logo{
    display: table-cell;
    vertical-align: middle;
    line-height: 21px;
    padding-left: 10px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-slate-gray);
    font-weight: bold;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-mint-soft);
    transition: width var(--transition-speed) ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.burger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

.nav-cta {
    display: block;
}

/* =======================================
   SECCIÓN HÉROE
======================================= */

#hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('imagenes/seccion-heroe.png');
    background-size: cover;
    background-position: center;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
}

.hero-content {
    max-width: 800px;
    padding: 20px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-phone {
    margin-top: 30px;
    font-size: 1.1rem;
}

.hero-phone a {
    color: var(--color-white);
    font-weight: bold;
    text-decoration: none;
}

/* =======================================
   PROPUESTA DE VALOR
======================================= */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.feature-item i {
    font-size: 3rem;
    color: var(--color-mint-soft);
    margin-bottom: 20px;
}

.feature-item h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* =======================================
   PROCESO (TIMELINE)
======================================= */

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--color-mint-soft);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-white);
    background-color: var(--color-soft-coral);
    border-radius: 50%;
    text-align: center;
    top: 20px;
    z-index: 10;
}

.timeline-item:nth-child(odd) .timeline-icon {
    right: -25px;
}

.timeline-item:nth-child(even) .timeline-icon {
    left: -25px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: var(--color-white);
    border-radius: 6px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
}

.timeline-content h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

/* =======================================
   OFERTA ESPECIAL
======================================= */
.offer-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.offer-image {
    flex: 1;
}

.offer-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.offer-details {
    flex: 1;
}

.offer-tag {
    font-family: var(--font-body);
    font-weight: bold;
    color: var(--color-soft-coral);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.offer-details .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.offer-price {
    font-size: 1.5rem;
    margin: 20px 0;
}

.offer-price span {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--color-soft-coral);
}

/* =======================================
   TESTIMONIOS
======================================= */

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--color-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    text-align: center;
}

.testimonial-card img {
    width: 140px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid var(--color-mint-soft);
}

.testimonial-quote {
    font-style: italic;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.testimonial-author {
    font-weight: bold;
    color: var(--color-slate-gray);
}

/* =======================================
   PARTNERS
======================================= */

.partners-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.partner-card {
    text-align: center;
}

.partner-logo {
    max-height: 60px;
    margin-bottom: 20px;
}

.partner-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.map-container {
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.partner-join-callout {
    margin-top: 60px;
    text-align: center;
    padding: 20px;
    background-color: var(--color-sand-beige);
    border-radius: 8px;
}

.partner-join-callout a {
    color: var(--color-soft-coral);
    font-weight: bold;
}

/* =======================================
   FORMULARIO DE CONTACTO
======================================= */

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

.contact-form button {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

/* =======================================
   NUEVOS ESTILOS: TRAYECTORIA
======================================= */

#trayectoria-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.trajectory-text {
    flex: 1.2; /* Damos un poco más de espacio al texto */
}

.trajectory-text p {
    margin-bottom: 20px;
}

.trajectory-quote {
    margin-top: 30px;
    padding-left: 20px;
    border-left: 3px solid var(--color-mint-soft);
    font-style: italic;
    font-size: 1.1rem;
}

.trajectory-image {
    flex: 0.8;
}

.trajectory-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* =======================================
   NUEVOS ESTILOS: SOLUCIONES
======================================= */

.solutions-grid {
    display: grid;
    /* Ajustamos el minmax para que el grid de 2x2 funcione mejor */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px;
}
.solution-card {
    background-color: var(--color-sand-beige);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.solution-card i {
    font-size: 2.5rem;
    color: var(--color-soft-coral);
    margin-bottom: 20px;
}

.solution-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

/* Estilos específicos para la primera tarjeta (la destacada) */
.solution-card:first-child {
    grid-column: span 2; /* Hacemos que la primera tarjeta ocupe 2 columnas */
    display: flex; /* Cambiamos el diseño interno para que sea horizontal */
    align-items: center;
    text-align: left;
    gap: 30px;
}

.solution-card:first-child i {
    font-size: 3.5rem; /* Hacemos el icono un poco más grande */
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .solution-card:first-child {
        grid-column: span 1; /* Ocupa 1 columna en pantallas pequeñas */
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .solution-card:first-child i {
        margin-bottom: 20px;
    }
}


/* =======================================
   FOOTER
======================================= */

.main-footer {
    background-color: var(--color-slate-gray);
    color: #e0e0e0;
    padding-top: 60px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding-bottom: 40px;
}

.footer-col h3, .footer-col h4 {
    font-family: var(--font-heading);
    color: var(--color-white);
    margin-bottom: 20px;
}

.footer-logo {
    font-size: 1.8rem;
}

.footer-col p {
    margin-bottom: 10px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color var(--transition-speed);
}

.footer-col a:hover {
    color: var(--color-mint-soft);
}

.footer-col i {
    margin-right: 10px;
    color: var(--color-mint-soft);
}

.footer-bottom {
    border-top: 1px solid #5a5a5a;
    padding: 20px;
    text-align: center;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: #e0e0e0;
}

/* =======================================
   MEDIA QUERIES (RESPONSIVE)
======================================= */

@media (max-width: 992px) {
    .offer-container {
        flex-direction: column;
    }
    .offer-details .section-title {
        text-align: center;
    }
}


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

    .hero-title {
        font-size: 2.5rem;
    }

    /* Navegación móvil */
    .nav-links {
        position: fixed;
        right: 0;
        top: 80px;
        background-color: var(--color-white);
        height: calc(45vh - 80px);
        width: 60%;
        flex-direction: column;
        align-items: center;
        justify-content: space-around;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
    }
    
    .nav-links li {
        opacity: 0;
    }

    .nav-active {
        transform: translateX(0%);
    }

    .nav-active li {
        opacity: 1;
        transition: opacity 0.5s ease 0.3s;
    }

    .burger {
        display: block;
    }

    .nav-cta {
        display: none;
    }
    
    /* Timeline en móvil */
    .timeline::after {
        left: 31px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
        text-align: left;
    }
    .timeline-icon {
        left: 6px;
    }
    .timeline-item:nth-child(odd) .timeline-icon,
    .timeline-item:nth-child(even) .timeline-icon {
        left: 6px;
    }
    
    .partners-grid {
        grid-template-columns: 1fr;
    }

    /* Ajustes responsive para nuevas secciones */
    #trayectoria-content {
        flex-direction: column;
        gap: 40px;
    }
}