/* ============================================
   ESTILOS GENERALES Y VARIABLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #004aad;
    --color-accent: #ffde59;
    --color-gray: #737373;
    --color-white: #ffffff;
    --font-title: 'Playfair Display', serif;
    --font-text: 'Pathway Gothic One', sans-serif;
    --font-paragraph: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-text);
    color: var(--color-gray);
    background-color: var(--color-white);
    line-height: 1.6;
}

p {
    font-family: var(--font-paragraph);
    font-size: 1.125rem;
    letter-spacing: 0.01em;
    line-height: 1.8;
}

/* ============================================
   HEADER Y NAVEGACIÓN
   ============================================ */

.header {
    background-color: #ffffff;
    position: relative;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 74, 173, 0.15);
}

.header-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.nav-toggle {
    display: none;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    justify-content: center;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background-color: var(--color-gray);
    border-radius: 999px;
}

.logo {
    font-family: var(--font-title);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--color-accent);
    text-decoration: none;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-shrink: 0;
}

.logo img {
    display: block;
    width: auto;
    height: 80px;
    object-fit: contain;
    transition: height 0.3s ease;
}

.logo-nav {
    display: none;
}

.nav {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex: 1;
    min-width: 300px;
}

/* Larger screens: bigger logo */
@media (min-width: 1200px) {
    .logo img { height: 200px; }
    .nav { gap: 2.25rem; }
}

.nav-link {
    color: var(--color-gray);
    text-decoration: none;
    font-size: 1.50rem;
    font-weight: 500;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid transparent;
}

.nav-link:hover {
    color: var(--color-accent);
    border-bottom: 2px solid var(--color-accent);
}

/* ============================================
   BOTÓN FLOTANTE WHATSAPP
   ============================================ */

.whatsapp-btn {
    position: fixed;
    bottom: 60px;
    right: 60px;
    width: 80px;
    height: 80px;
    background-color: #25d366;
    border-radius: 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 99;

}

.whatsapp-btn:hover {
    transform: scale(2.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-btn svg {
    width: 32px;
    height: 32px;
}

.whatsapp-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    max-width: 40px;
    max-height: 40px;
}

/* ============================================
   SECCIÓN HERO (DESCRIPTIVA PRINCIPAL)
   ============================================ */

.hero {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: 420px;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #737373 0%, #004aad 100%);
    color: var(--color-white);
    gap: 2rem;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.22);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 55%;
    max-width: 700px;
    padding: 0 2rem 0 0;
}

.hero-image {
    position: relative;
    z-index: 2;
    width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        min-height: auto;
        padding: 3rem 1.5rem;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
        padding: 0;
        order: 2;
    }

    .hero-image {
        width: 100%;
        order: 1;
    }

    .hero-image img {
        max-width: 100%;
        max-height: 300px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-text {
        font-size: 1.1rem;
    }
}

.hero-title {
    font-family: var(--font-title);
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--color-white);
    margin-bottom: 1rem;
    letter-spacing: 0.6px;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.25);
    max-width: 480px;
}

.hero-subtitle {
    font-family: var(--font-title);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 2rem;
    line-height: 1.2;
}

.hero-text {
    font-family: var(--font-text);
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.10;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    letter-spacing: 0.45px;
}

.hero-text p {
    margin-bottom: 1rem;
    text-align: left;
}

/* ============================================
   SECCIÓN SERVICIOS
   ============================================ */

.servicios {
    background: linear-gradient(135deg, #f5f5f5 0%, var(--color-white) 100%);
    padding: 5rem 2rem;
}

.servicios-header {
    max-width: 1200px;
    margin: 0 auto 3rem;
    text-align: center;
}

.servicios-header h2 {
    font-family: var(--font-title);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--color-primary);
    letter-spacing: 1px;
}

.servicios-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.servicio-card {
    background-color: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 74, 173, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.servicio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 74, 173, 0.2);
}

.servicio-image {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.servicio-content {
    padding: 2rem;
}

.servicio-content h3 {
    font-family: var(--font-title);
    font-size: 1.70rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.servicio-content .precio {
    font-family: var(--font-text);
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.servicio-content .nota {
    font-family: var(--font-text);
    font-size: 1.25rem;
    color: var(--color-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: #25d366;
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
    border-radius: 15px;
    text-decoration: none;
    font-family: var(--font-text);
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
}

.btn-whatsapp:hover {
    background-color: #1ebd59;
    transform: scale(1.05);
   
}

.btn-whatsapp svg {
    width: 40px;
    height: 40px;
}

.btn-whatsapp-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
    object-position: center;
    display: block;
}

/* ============================================
   SECCIÓN BENEFICIOS
   ============================================ */

.beneficios {
    background: linear-gradient(135deg, #737373 0%, #004aad 100%);
    padding: 5rem 2rem;
}

.beneficios-content {
    max-width: 1000px;
    margin: 0 auto;
}

.beneficios-content h2 {
    font-family: var(--font-title);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--color-accent);
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: 0.5px;
}

.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.beneficio-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--color-accent);
    transition: all 0.3s ease;
}

.beneficio-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.beneficio-item h3 {
    font-family: var(--font-title);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.beneficio-item p {
    font-family: var(--font-text);
    font-size: 1.125rem;
    color: var(--color-white);
    line-height: 1.7;
}

/* ============================================
   SECCIÓN TESTIMONIOS
   ============================================ */

.testimonios {
    background-color: #f9f9f9;
    padding: 5rem 2rem;
}

.testimonios-header {
    max-width: 1200px;
    margin: 0 auto 3rem;
    text-align: center;
}

.testimonios-header h2 {
    font-family: var(--font-title);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.testimonios-header p {
    font-family: var(--font-text);
    font-size: 1.5rem;
    color: var(--color-gray);
}

.testimonios-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonio-card {
    background-color: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 74, 173, 0.1);
    transition: transform 0.3s ease;
}

.testimonio-card:hover {
    transform: translateY(-5px);
}

.testimonio-card img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
    max-height: 340px;
}

.testimonio-content {
    padding: 2rem;
}

.testimonio-content .comentario {
    font-family: var(--font-text);
    font-size: 1.25rem;
    color: var(--color-gray);
    margin-bottom: 1rem;
    font-style: italic;
    line-height: 1.7;
}

.testimonio-content .autor {
    font-family: var(--font-title);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
}

/* ============================================
   SECCIÓN FORMULARIO DE CONTACTO
   ============================================ */

.contacto-form {
    background: linear-gradient(135deg, #737373 0%, #004aad 100%);
    padding: 5rem 2rem;
}

.contacto-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--color-white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 74, 173, 0.3);
}

.contacto-container h2 {
    font-family: var(--font-title);
    font-size: 2rem;
    font-weight: 900;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    text-align: center;
}

.contacto-subtitle {
    font-family: var(--font-text);
    font-size: 1.25rem;
    color: var(--color-gray);
    text-align: center;
    margin-bottom: 2rem;
}

.formulario {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-family: var(--font-text);
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-family: var(--font-text);
    font-size: 1.25rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 8px rgba(0, 74, 173, 0.3);
}

.form-group.checkbox {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.5rem;
}

.form-group.checkbox input {
    width: 20px;
    height: 20px;
    margin-top: 0.3rem;
    cursor: pointer;
}

.form-group.checkbox label {
    margin-bottom: 0;
    font-weight: 500;
    font-size: 0.95rem;
}

.btn-iniciar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: rgba(37, 211, 102, 0.8);
    color: var(--color-white);
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-family: var(--font-text);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-iniciar:hover {
    background-color: rgba(30, 189, 89, 0.8);
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(38, 168, 85, 0.6);
}

.btn-iniciar svg {
    width: 24px;
    height: 24px;
}

/* ============================================
   SECCIÓN UBICACIÓN Y CONTACTO
   ============================================ */

.ubicacion {
    background-color: #f5f5f5;
    padding: 5rem 2rem;
}

.ubicacion-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.ubicacion-info h2 {
    font-family: var(--font-title);
    font-size: 2rem;
    font-weight: 900;
    color: var(--color-primary);
    margin-bottom: 2rem;
}

.info-item {
    margin-bottom: 2rem;
}

.info-item h3 {
    font-family: var(--font-text);
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.info-item p {
    font-family: var(--font-text);
    color: var(--color-gray);
    font-size: 1rem;
}

.info-item a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.info-item a:hover {
    color: var(--color-accent);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.social-links a:hover {
    background-color: var(--color-accent);
    color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 2px 10px rgba(0, 74, 173, 0.15);
}

.social-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.social-links a:hover .social-icon {
    transform: scale(1.15);
}

.ubicacion-mapa {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 74, 173, 0.15);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: linear-gradient(135deg, #737373 0%, #004aad 100%);
    color: var(--color-white);
    text-align: center;
    padding: 2rem;
    font-family: var(--font-text);
    font-size: 1rem;
    letter-spacing: 0.5px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
        gap: 1rem;
        justify-content: space-between;
    }

    .logo {
        flex-shrink: 0;
        gap: 0.5rem;
        font-size: 1.3rem;
    }

    .logo img {
        height: 55px;
    }

    .nav-toggle {
        display: flex;
        flex-shrink: 0;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        padding: 1rem 1.5rem 1.25rem;
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        border-radius: 0 0 16px 16px;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
        max-width: none;
        margin: 0 auto;
        z-index: 10;
        flex: none;
        min-width: auto;
    }

    .nav.open {
        display: flex;
    }

    .nav-link {
        font-size: 1rem;
    }

    .hero {
        min-height: auto;
    }

    .hero-content {
        padding: 3rem 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.4rem;
    }

    .hero-image {
        min-height: 400px;
    }

    .servicios-grid {
        grid-template-columns: 1fr;
    }

    .servicios-header h2 {
        font-size: 2rem;
    }

    .beneficios-content h2 {
        font-size: 2rem;
    }

    .testimonios-header h2 {
        font-size: 2rem;
    }

    .ubicacion-container {
        grid-template-columns: 1fr;
    }

    .ubicacion-mapa iframe {
        min-height: 300px;
    }

    .contacto-container {
        padding: 2rem;
    }

    .social-links {
        gap: 1rem;
    }

    .social-links a {
        padding: 0.65rem 1rem;
        font-size: 0.95rem;
    }

    .social-icon {
        width: 24px;
        height: 24px;
    }

    .whatsapp-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .whatsapp-btn svg {
        width: 28px;
        height: 28px;
    }

    .hero-text p {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 1rem;
        gap: 0.75rem;
    }

    .logo {
        font-size: 1.1rem;
        gap: 0.4rem;
    }

    .logo img {
        height: 48px;
    }

    .nav-toggle {
        padding: 0.3rem;
    }

    .nav {
        gap: 0.75rem;
    }

    .nav-link {
        font-size: 0.9rem;
        padding-bottom: 0.3rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .servicios-header h2,
    .beneficios-content h2,
    .testimonios-header h2 {
        font-size: 1.5rem;
    }

    .servicio-content h3 {
        font-size: 1.2rem;
    }

    .contacto-container {
        padding: 1.5rem;
    }

    .contacto-container h2 {
        font-size: 1.5rem;
    }

    .social-links {
        justify-content: center;
        gap: 0.8rem;
    }

    .social-links a {
        padding: 0.6rem 0.9rem;
        font-size: 0.85rem;
    }

    .social-icon {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 420px) {
    .header-container {
        padding: 0 0.75rem;
        gap: 0.5rem;
    }

    .logo {
        font-size: 0.95rem;
        gap: 0.3rem;
    }

    .logo img { 
        height: 42px; 
    }

    .nav-toggle span {
        width: 22px;
        height: 2.5px;
    }

    .hero-image img { max-height: 260px; }
    .hero-title { font-size: 1.6rem; }
    .hero-text { font-size: 1rem; }

    .social-links {
        gap: 0.6rem;
    }

    .social-links a {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }

    .social-icon {
        width: 18px;
        height: 18px;
    }
}
