/* =================================
   RESET Y VARIABLES GLOBALES (AJUSTADO)
   ================================= */
:root {
    --primary-color: #ffa4f6;
    --secondary-color: #979694;
    --dark-color: #333;
    --light-color: #fff;
    --gray-bg: #f8f9fa;
    --font-primary: 'Catamaran', sans-serif;
    --font-secondary: 'Lora', serif;
    --header-height: 70px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 62.5%; }
body {
    font-family: var(--font-primary);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--dark-color);
    padding-top: var(--header-height);
}
ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5 { font-family: var(--font-secondary); font-weight: 600; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 2rem; }
.section {
    padding: 6rem 0;
}
.section--bg-gray { background-color: var(--gray-bg); }
.section-id {
    display: block;
    font-family: var(--font-primary);
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}
.section-header p {
    font-size: 1.7rem;
}


/* =================================
   BOTONES Y ENLACES
   ================================= */
.btn { display: inline-block; padding: 1rem 2rem; font-size: 1.5rem; font-weight: 700; border-radius: 50px; transition: all 0.3s ease; cursor: pointer; text-transform: uppercase; letter-spacing: 0.5px; }
.btn--primary { background-color: var(--primary-color); color: var(--dark-color); border: 2px solid var(--primary-color); }
.btn--primary:hover { background-color: transparent; color: var(--primary-color); }
.hero .btn--primary:hover { color: var(--light-color); border-color: var(--light-color); }

/* =================================
   HEADER Y NAVEGACIÓN
   ================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--light-color);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 45px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav-link {
    color: var(--dark-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.4rem;
    transition: color 0.3s;
    position: relative;
    padding-bottom: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-color);
}

.btn--nav {
    padding: 0.8rem 2.4rem;
    border-width: 2px;
    background-color: var(--primary-color);
    color: var(--dark-color);
    border-color: var(--primary-color);
}

.btn--nav:hover {
    background-color: #e693de;
    border-color: #e693de;
    color: var(--dark-color);
}


/* --- Menú Hamburguesa para Móvil --- */

.nav-toggle {
    display: none;
    cursor: pointer;
    width: 22px;
    height: 18px;
    position: relative;
    z-index: 1002;
    background-color: transparent;
    border: none;
}

.nav-toggle span {
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--dark-color);
    left: 0;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 7.5px; }
.nav-toggle span:nth-child(3) { top: 15px; }


/* =================================
   HERO SLIDER
   ================================= */
.hero { height: 85vh; position: relative; color: var(--light-color); margin-top: calc(-1 * var(--header-height)); }
.hero-slider .slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.5s ease; display: flex; justify-content: center; align-items: center; text-align: center; }
.hero-slider .slide.active { opacity: 1; }
.slide::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.4); }
.slide-content { z-index: 2; max-width: 800px; padding: 2rem; }
.slide-content h2 {
    font-size: 5.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}
.slide-content span { color: var(--primary-color); font-style: italic; }

/* =================================
   TRATAMIENTOS (INDEX)
   ================================= */
.treatments-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 250px); gap: 2rem; }
.treatment-card { position: relative; overflow: hidden; border-radius: 8px; color: var(--light-color); }
.treatment-card:nth-child(1) { grid-column: 1 / 2; grid-row: 1 / 3; }
.treatment-card:nth-child(2) { grid-column: 2 / 3; grid-row: 1 / 2; }
.treatment-card:nth-child(3) { grid-column: 2 / 3; grid-row: 2 / 3; }
.treatment-card:nth-child(4) { grid-column: 3 / 4; grid-row: 1 / 2; }
.treatment-card:nth-child(5) { grid-column: 3 / 4; grid-row: 2 / 3; }
.treatment-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.treatment-card:hover img { transform: scale(1.05); }
.treatment-card::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0,0,0,0.7), transparent 50%); z-index: 1; }
.treatment-card-content { position: absolute; bottom: 0; left: 0; padding: 2rem; z-index: 2; }
.treatment-card h3 { font-size: 2.8rem; margin: 0; }

/* =================================
   PORTFOLIO CON PESTAÑAS (INDEX)
   ================================= */
.portfolio-tabs { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 4rem; flex-wrap: wrap; }
.portfolio-tabs .tab-link { padding: 1rem 2.5rem; border: 2px solid #ddd; background: transparent; cursor: pointer; font-size: 1.5rem; font-weight: 600; border-radius: 50px; transition: all 0.3s ease; color: var(--secondary-color); }
.portfolio-tabs .tab-link:hover { background-color: #f0f0f0; border-color: #ccc; }
.portfolio-tabs .tab-link.active { background-color: var(--primary-color); color: var(--dark-color); border-color: var(--primary-color); }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.portfolio-item { overflow: hidden; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: transform 0.4s ease, opacity 0.4s ease; animation: fadeIn 0.5s ease; }
.portfolio-item.hidden { display: none; }
.portfolio-item img { width: 100%; height: 320px; object-fit: cover; transition: transform 0.4s ease; }
.portfolio-item:hover img { transform: scale(1.05); }

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* =================================
   SOBRE NOSOTROS
   ================================= */
.grid-2-cols-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.feature-text p {
    margin-bottom: 1.5rem;
}
.feature-text ul { list-style: '✓'; padding-left: 2rem; margin-top: 1.5rem; }
.feature-text ul li {
    padding-left: 1rem;
    margin-bottom: 0.8rem;
}
.feature-img img { border-radius: 8px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

/* =================================
   TESTIMONIOS
   ================================= */
.testimonials-wrapper { position: relative; }
.testimonial-slider-interactive { text-align: center; position: relative; height: 220px; overflow: hidden; }
.testimonial { position: absolute; top: 0; left: 0; width: 100%; opacity: 0; transition: opacity 0.6s ease; padding: 0 5rem; }
.testimonial.active { opacity: 1; }
.testimonial-text {
    font-family: var(--font-secondary);
    font-style: italic;
    font-size: 2rem;
    margin-bottom: 1rem;
}
.testimonial-author { font-weight: 700; color: var(--primary-color); }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background: transparent; border: 1px solid #ccc; color: #555; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 2rem; transition: all 0.3s; z-index: 10; }
.slider-btn:hover { background-color: var(--primary-color); color: var(--dark-color); border-color: var(--primary-color); }
.slider-btn.prev { left: 0; }
.slider-btn.next { right: 0; }

/* =================================
   CTA BANNER
   ================================= */
.cta-banner { background-size: cover; background-position: center; background-attachment: fixed; color: var(--light-color); text-align: center; position: relative; }
.cta-banner::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); }
.cta-banner .container { position: relative; z-index: 2; }
.cta-banner h5 { font-size: 2.4rem; font-weight: 400; }
.cta-banner h2 {
    font-size: 3rem;
    margin: 1rem 0 1.5rem;
}

/* =================================
   FOOTER
   ================================= */
.footer {
    background-color: #f8f9fb;
    color: #888;
    padding: 5rem 0;
}
.grid-footer { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 5rem; padding-bottom: 0; }
.footer-logo { height: 40px; margin-bottom: 1.5rem; }
.footer-about { font-size: 1.5rem; color: #aaa; }
.footer-col h4 {
    font-family: var(--font-primary);
    color: var(--dark-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.footer-links { display: flex; flex-direction: column; gap: 1rem; }
.footer-links a, .footer-contact a, .footer-contact p { color: #888; transition: color 0.3s; }
.footer-links a:hover, .footer-contact a:hover { color: var(--primary-color); }
.footer-contact p { margin-bottom: 1rem; }
.social-links { display: flex; gap: 1.5rem; margin-top: 2rem; }
.social-links svg { width: 24px; height: 24px; fill: #aaa; transition: fill 0.3s; }
.social-links a:hover svg { fill: var(--primary-color); }

/* =================================
   WHATSAPP FLOTANTE
   ================================= */
.whatsapp-float { position: fixed; width: 60px; height: 60px; bottom: 30px; right: 30px; background-color: #25d366; border-radius: 50%; box-shadow: 2px 2px 6px rgba(0,0,0,0.3); z-index: 100; display: flex; justify-content: center; align-items: center; transition: transform 0.3s; }
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 32px; }

/* =================================
   ANIMACIONES
   ================================= */
.animate-on-scroll { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

/* =================================
   ESTILOS RESPONSIVE
   ================================= */

@media (max-width: 992px) {
    .section {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    .section .container {
        padding-left: 0;
        padding-right: 0;
    }
    
    .nav-list {
        display: none;
    }

    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--light-color);
        transition: left 0.4s ease-in-out;
        z-index: 1001;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu .nav-list {
        display: flex;
        flex-direction: column;
        gap: 2.5rem;
        text-align: center;
    }

    .nav-menu .nav-link {
        font-size: 1.8rem;
    }
    
    .nav-menu.active ~ .nav-toggle span:nth-child(1) {
        transform: rotate(45deg);
        top: 7.5px;
    }
    .nav-menu.active ~ .nav-toggle span:nth-child(2) {
        opacity: 0;
    }
    .nav-menu.active ~ .nav-toggle span:nth-child(3) {
        transform: rotate(-45deg);
        top: 7.5px;
    }
    
    .grid-2-cols-feature, .grid-2-cols-feature.reverse {
        grid-template-columns: 1fr;
    }
    
    .feature-img {
        margin-top: 3rem;
    }
    .feature-text {
        text-align: center;
    }

    .feature-text ul { display: inline-block; text-align: left; }
    
    .treatments-grid { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 250px); }
    .treatment-card:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 2; }
    .treatment-card:nth-child(2) { grid-column: 1 / 2; grid-row: 2 / 3; }
    .treatment-card:nth-child(3) { grid-column: 2 / 3; grid-row: 2 / 3; }
    .treatment-card:nth-child(4) { grid-column: 1 / 2; grid-row: 3 / 4; }
    .treatment-card:nth-child(5) { grid-column: 2 / 3; grid-row: 3 / 4; }
    
    .grid-footer { grid-template-columns: 1fr; text-align: center; }
    .social-links { justify-content: center; }
    
    .footer-logo {
        margin: 0 auto 1.5rem;
    }
    
    /* --- AJUSTE CONTACTO --- */
    .contact-grid { 
        grid-template-columns: 1fr; 
        gap: 4rem;
    }
    .contact-info {
        text-align: center;
    }
    
    .portfolio-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .slide-content h2 { font-size: 3rem; }
    .cta-banner h2 { font-size: 2.8rem; }
    .hero-page-content h1 { font-size: 3.5rem !important; }
    .cta-banner h5 { font-size: 1.4rem;}

    /* --- CORRECCIÓN IMAGEN PRE-FOOTER --- */
    .cta-banner {
        background-attachment: scroll; /* Mejora rendimiento en móviles */
    }

    /* --- CORRECCIÓN CONTACTO --- */
    .contact-form .form-group {
        flex-direction: column;
        gap: 0;
        margin-bottom: 0;
    }
    .contact-form input, .contact-form textarea {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    .treatments-grid { grid-template-columns: 1fr; grid-template-rows: repeat(5, 250px); }
    .treatment-card:nth-child(n) { grid-column: auto; grid-row: auto; }
    .testimonial { padding: 0 1rem; }
    .slider-btn { display: none; }
    .contact-form-wrapper { padding: 2.5rem; }
    .service-grid--2-cols { grid-template-columns: 1fr; }
}

/* =================================
   ESTILOS PARA PÁGINAS INTERIORES
   ================================= */
.hero-page { height: 40vh; position: relative; color: var(--light-color); background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; text-align: center; }
.hero-page::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); }
.hero-page-content { position: relative; z-index: 2; padding: 2rem; }
.hero-page-content h1 { font-size: 4rem; }
.hero-page-content p { font-size: 1.8rem; font-family: var(--font-secondary); font-style: italic; opacity: 0.9; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem; }
.service-card-item { background: var(--light-color); padding: 2.5rem; border-radius: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); transition: transform 0.3s, box-shadow 0.3s; }
.service-card-item:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.08); }
.service-card-item h3 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}
.service-card-item p { font-size: 1.6rem; color: var(--secondary-color); line-height: 1.6; }

/* =================================
   PÁGINA DE CONTACTO
   ================================= */
.contact-grid { 
    display: grid; 
    grid-template-columns: 1fr; /* Asegúrate de que aquí ponga 1fr */
    gap: 4rem; 
    align-items: flex-start; 
}.contact-info h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}
.contact-info .info-item {
    margin-top: 2rem;
}
.contact-info .info-item h4 { font-family: var(--font-primary); font-size: 1.8rem; color: var(--dark-color); margin-bottom: 0.5rem; }
.contact-info .info-item p { font-size: 1.6rem; color: var(--secondary-color); }
.contact-info .info-item a:hover { color: var(--primary-color); }
.contact-form-wrapper { background: var(--light-color); padding: 4rem; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.contact-form .form-group {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}
.contact-form input, .contact-form textarea { width: 100%; padding: 1.5rem; border: 1px solid #ddd; border-radius: 6px; font-size: 1.6rem; font-family: var(--font-primary); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(255, 164, 246, 0.3); }
.contact-form textarea { resize: vertical; }
.contact-form button { width: 100%; padding: 1.8rem; }
.map-section { width: 100%; height: 400px; }


/* =================================
   PÁGINA DE LÁSER - PRECIOS (Compacto)
   ================================= */
.pricing-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}
.pricing-tabs .tab-link {
    padding: 0.8rem 2rem;
    font-size: 1.4rem;
    border-radius: 50px;
    border: 2px solid #ddd;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    color: var(--secondary-color);
}
.pricing-tabs .tab-link:hover {
    background-color: #f0f0f0;
    border-color: #ccc;
}
.pricing-tabs .tab-link.active {
    background-color: var(--primary-color);
    color: var(--dark-color);
    border-color: var(--primary-color);
}
.pricing-content {
    display: none;
    animation: fadeIn 0.5s ease;
}
.pricing-content.active {
    display: block;
}
.pricing-zone-title {
    font-size: 2.2rem;
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.8rem;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.price-card {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.04);
}
.price-card h4 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}
.prices {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    border: 1px solid #eee;
    border-radius: 6px;
    font-size: 1.4rem;
}
.price-item b {
    color: var(--dark-color);
}
.price-item.popular {
    border-color: var(--primary-color);
}

/* =================================
   PÁGINA DE LÁSER - PACKS AHORRO
   ================================= */
.packs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.pack-card {
    background: var(--light-color);
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pack-title {
    font-size: 2rem;
    font-weight: 700;
    padding: 1.5rem;
    background-color: var(--dark-color);
    color: var(--light-color);
}

.pack-price {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    padding: 2rem;
    background: var(--gray-bg);
}

.pack-price span {
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--secondary-color);
}

.pack-content {
    padding: 2rem;
    flex-grow: 1;
}

.pack-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pack-content ul li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #f0f0f0;
}
.pack-content ul li:last-child {
    border-bottom: none;
}

.pack-note {
    text-align: center;
    font-style: italic;
    color: var(--secondary-color);
    margin-top: 2rem;
}


@media (max-width: 768px) {
    /* ... otros estilos para 768px ... */

    .btn {
        padding: 1rem 1.8rem !important; /* Reducimos el relleno vertical y horizontal */
        font-size: 1.5rem !important;      /* Hacemos la letra un poco más pequeña */
    }

    /* ... otros estilos ... */
}