/* 1. VARIABLES DE COLOR */
/* 1. VARIABLES Y CONFIGURACIÓN BASE */
html {
    scroll-behavior: smooth;
    /* <--- ESTA ES LA MAGIA */
}

:root {
    --pink-light: #D8A1C4;
    /* El lila/rosa de tu barra superior */
    --blue-dark: #2C3E50;
    /* El azul oscuro de tus botones */
    --white: #ffffff;
    --text-dark: #333;

    /* Mantenemos estos para la sección de beneficios nueva */
    --pink-medium: #D1A7C4;
    --blue-medium: #89A7BD;
}

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

body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
}

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

/* 3. TOP BAR (BARRA SUPERIOR LILA) */
/* Topnav desactivado temporalmente
#topnav {
    min-height: 50px;
    background-color: var(--pink-light) !important;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

#topnav-left-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 8px;
}

#topnav-left-text p,
#topnav-left-text a.phone-link {
    color: #000;
    text-decoration: aliceblue;
    font-size: 11px;
    font-weight: 500;
    margin: 0;
    letter-spacing: 0.5px;
}
*/

.icon-svg {
    display: flex;
    align-items: center;
}

/* Topnav desactivado temporalmente
#topnav-left-text .icon-svg {
    margin-left: 0 !important;
}

#topnav-left-text svg {
    width: 14px;
    height: 14px;
    margin-right: 6px;
}

.btn-get-touch {
    background: var(--blue-dark);
    color: white;
    border: none;
    padding: 0;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
    height: 40px;
    line-height: 40px;
}

.btn-get-touch:hover {
    background: white;
    color: var(--blue-dark);
}
*/

/* 4. HEADER & NAV (LOGO Y MENÚ) - AHORA FIJO */
header {
    padding: 10px 0;
    /* Un poco más fino para que no robe pantalla */
    background-color: var(--white) !important;
    border-bottom: 1px solid #eee;

    /* MAGIA PARA QUE SEA FIJO */
    position: sticky;
    top: 0;
    z-index: 1000;
    /* Para que pase por encima de las fotos y el slider */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    /* Sombra sutil al bajar */
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    max-width: 100%;
    padding: 0 16px;
}

.logo {
    position: static;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: black;
    font-weight: 700;
    gap: 8px;
}

.logo img {
    height: 38px;
}

.logo span {
    font-size: 0.95rem;
    white-space: nowrap;
}

.main-nav {
    display: none;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.main-nav ul li a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: 0.3s;
}

.main-nav ul li a:hover {
    color: var(--pink-light);
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    display: block;
}

/* 5. HERO / SLIDER */
.hero {
    position: relative;
    height: 80vh;
    width: 100%;
    overflow: hidden;
    background-color: #000;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 5;
    color: white;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.hero-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.btn-hero {
    display: inline-block;
    margin-top: 30px;
    background: var(--pink-light);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    font-size: 1.2rem;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* 6. PROMOCION */
.promo-section {
    padding: 70px 0;
    background: radial-gradient(circle at 15% 15%, rgba(216, 161, 196, 0.3), transparent 45%),
        radial-gradient(circle at 85% 20%, rgba(137, 167, 189, 0.26), transparent 45%),
        linear-gradient(145deg, #fff5fb 0%, #f5f9ff 55%, #fef7ff 100%);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.promo-section.active {
    opacity: 1;
    transform: translateY(0);
}

.promo-wrap {
    display: flex;
    justify-content: center;
}

.promo-card {
    width: min(980px, 100%);
    padding: 38px 26px;
    text-align: center;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: linear-gradient(130deg, rgba(44, 62, 80, 0.96) 0%, rgba(84, 111, 140, 0.92) 100%);
    box-shadow: 0 20px 45px rgba(35, 47, 60, 0.25);
    transform-style: preserve-3d;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.promo-card::before {
    content: "";
    position: absolute;
    top: -35%;
    left: -20%;
    width: 68%;
    height: 200%;
    transform: rotate(24deg);
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.22) 52%, transparent 100%);
    animation: promo-shine 6.2s ease-in-out infinite;
}

.promo-kicker {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: 1.4px;
    font-size: 0.76rem;
    color: #233241;
    background: #f8dbe8;
}

.promo-card h2 {
    color: #ffffff;
    font-size: clamp(1.8rem, 4.8vw, 3rem);
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.promo-price {
    margin-top: 14px;
    margin-bottom: 16px;
    color: #ffeff8;
    font-weight: 700;
    line-height: 1;
    font-size: clamp(2rem, 7vw, 3.6rem);
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
}

.promo-price.promo-pop {
    animation: promo-pop 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.promo-description {
    max-width: 700px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    font-size: 1rem;
}

.promo-actions {
    margin-top: 28px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-promo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 190px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.8px;
    padding: 14px 24px;
    border-radius: 10px;
    transition: transform 0.28s ease, box-shadow 0.28s ease, background-color 0.28s ease, color 0.28s ease;
}

.btn-promo-primary {
    background-color: #f7bfd8;
    color: #1f2e3c;
}

.btn-promo-secondary {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: #ffffff;
}

.btn-promo:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-promo-primary:hover {
    background-color: #ffd7e8;
}

.btn-promo-secondary:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.promo-sparkles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.promo-sparkle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    width: var(--sparkle-size, 6px);
    height: var(--sparkle-size, 6px);
    left: var(--sparkle-left, 50%);
    top: var(--sparkle-top, 50%);
    opacity: 0;
    animation: promo-float var(--sparkle-duration, 4.5s) ease-in-out var(--sparkle-delay, 0s) infinite;
}

@keyframes promo-shine {
    0%,
    24% {
        transform: translateX(-120%) rotate(24deg);
    }

    44% {
        transform: translateX(245%) rotate(24deg);
    }

    100% {
        transform: translateX(245%) rotate(24deg);
    }
}

@keyframes promo-pop {
    0% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.07);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes promo-float {
    0%,
    100% {
        opacity: 0;
        transform: translateY(12px) scale(0.8);
    }

    40%,
    60% {
        opacity: 0.72;
        transform: translateY(-7px) scale(1);
    }
}

/* 7. SERVICIOS Y PRECIOS (ESTILO UNIFORME) */
.services {
    padding: 80px 0;
    /* Un poco menos de padding general */
    background: #fdfdfd;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    /* Menos separación entre tarjetas */
    margin-top: 40px;
}

.services .service-card .service-img-wrapper {
    height: 230px !important;
    /* !important asegura que ignore otras reglas */
    width: 100% !important;
    display: block !important;
}

.services .service-card .service-img {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
    /* Evita que la foto se estire feo */
}

.service-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    /* Sombra un pelín más sutil */
    transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.4s ease;
    display: flex;
    flex-direction: column;

    /* Mantenemos el efecto de aparición */
    opacity: 0;
    transform: translateY(30px);
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* REDUCIENDO TAMAÑO DE FOTO */
.service-img-wrapper {
    overflow: hidden;
    height: 180px;
    /* <--- ANTES 240px. Ahora mucho más baja */
    width: 100%;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.service-card:hover .service-img {
    transform: scale(1.1);
}

/* COMPACTANDO INFO DE TEXTO */
.service-info {
    padding: 18px 20px;
    /* Reducimos un poco el padding para compensar la foto más grande */
}

.service-info h3 {
    font-size: 1.1rem;
    /* Texto un poco más pequeño */
    margin-bottom: 8px;
    color: var(--blue-dark);
}

.price {
    font-weight: 700;
    color: var(--pink-medium);
    font-size: 1.3rem;
    /* Precio claro pero no gigante */
    margin-top: auto;
    /* Alinea los precios abajo si los títulos varían */
}

.location {
    background: #f1f1f1;
    padding: 60px 20px; /* Un poco menos de padding para que no sea eterno */
    text-align: center;
}

.location-content h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--blue-dark);
}

.location-content p {
    margin-bottom: 30px;
    color: #666;
}

/* Contenedor del Mapa Estilizado */
.map-container {
    width: 100%;
    max-width: 900px; /* Para que en PC no sea gigante */
    margin: 0 auto 30px;
    border-radius: 15px; /* Bordes redondeados como un app moderna */
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); /* Sombra suave */
    line-height: 0; /* Quita un espacio extra abajo del iframe */
}

.map-container iframe {
    filter: grayscale(0.2); /* Un toque elegante, se pone a color al tocarlo */
    transition: 0.3s;
}

.map-container iframe:hover {
    filter: grayscale(0);
}

.btn-location {
    display: inline-block;
    background: var(--blue-dark);
    color: white;
    padding: 14px 30px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    transition: transform 0.3s, background 0.3s;
}

.btn-location:hover {
    background: var(--pink-light);
    transform: translateY(-3px);
}

/* 8. GALERÍA */
.gallery-section {
    background: #f1f1f1;
    padding: 100px 0;
    position: relative;
    text-align: center;
}

.gallery-header h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 30px;
}

.gallery-vertical {
    display: none;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 10px;
    transition: 0.3s;
    cursor: pointer;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

.button.gallery-grid {
    text-align: center;
    margin-top: 20px;
}
.btn-gallery {
    display: inline-block;
    margin-top: 30px;
    background: var(--pink-light);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}


/* 9. SECCIÓN CONTACTO (BOTONES RRSS) */
/* Ajuste fino para el bloque de contacto lila */
/* Estilos para la sección de contacto */
.contact-section {
    /* Ruta de tu imagen y configuración de fondo */
    background: linear-gradient(rgba(44, 62, 80, 0.85), rgba(44, 62, 80, 0.95)), url('footer.png');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    /* Cambia a 'fixed' si quieres un efecto parallax */
    color: white;
    padding: 60px 20px 20px;
    text-align: center;
    position: relative;
}

.contact-content h2 {
    font-size: 26px;
    margin-bottom: 10px;
    color: white;
}

.contact-content p {
    color: white;
}

/* Contenedor de los botones */
.contact-buttons {
    display: flex;
    justify-content: center;
    /* Centra los botones horizontalmente */
    gap: 15px;
    /* Espacio entre ellos */
    margin-top: 5px;
    flex-wrap: wrap;
    /* Importante para móvil */
}

/* Estilo de los botones (btn-contact) */
.btn-contact {
    display: inline-flex;
    margin: 10px;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none !important;
    /* Elimina el subrayado azul */
    color: white !important;
    /* Fuerza el texto a blanco */
    min-width: 160px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Colores específicos según tu clase */
.btn-contact.whatsapp {
    background-color: #25D366;
}

.btn-contact.instagram {
    background-color: #E1306C;
}

/* Efecto al tocar/pasar el mouse */
.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 10. FOOTER PRINCIPAL */
.main-footer {
    /* Ruta de tu imagen y configuración de fondo */
    background: linear-gradient(rgba(44, 62, 80, 0.85), rgba(44, 62, 80, 0.95)), url('footer.png');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    /* Cambia a 'fixed' si quieres un efecto parallax */
    color: white;
    padding: 80px 0 20px;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    position: relative;
    z-index: 2;
    text-align: center;
}

.footer-brand h3 {
    margin-bottom: 15px;
    letter-spacing: 2px;
    font-size: 1.5rem;
}

.footer-brand p {
    font-weight: 300;
    line-height: 1.6;
}

.footer-info h4,
.footer-social h4 {
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 1px;
}

.footer-info p {
    margin-bottom: 12px;
    color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

address.footer-info {
    font-style: normal;
}

.footer-info a {
    color: inherit;
    text-decoration: none;
}

.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    justify-content: center;
}

.social-icons img {
    width: 32px;
    height: 32px;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Borramos el filtro que los ponía blancos */
    filter: none;
    /* Opcional: una sombra sutil para que no se pierdan en el fondo oscuro */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.social-icons img:hover {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    opacity: 0.7;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* 11. SIDEBAR MÓVIL */
.sidebar {
    position: fixed;
    top: 0;
    right: -165px;
    width: 165px;
    height: 100%;
    background: var(--blue-dark);
    color: white;
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Usa transform en lugar de right */
    /* Animación más fluida */
    padding: 60px 20px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    /* Sombra para dar profundidad */
}

.sidebar.active {
    right: 0;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin-bottom: 20px;
}

.sidebar ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
}

.menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
}

/* 12. MODAL DE IMÁGENES */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
}

.modal-content {
    display: block;
    margin: auto;
    max-width: 85%;
    max-height: 80%;
    border-radius: 10px;
}

.close-modal {
    position: absolute;
    top: 40px;
    right: 60px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
}

/* 13. BREAKPOINTS POR RANGO DE DISPOSITIVO */

/* Moviles grandes: 481px en adelante */
@media (min-width: 481px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tabletas: 768px en adelante */
@media (min-width: 768px) {
    /* Topnav desactivado temporalmente
    #topnav {
        flex-direction: row;
        justify-content: space-between;
        padding: 0 24px;
        gap: 12px;
    }

    #topnav-left-text {
        flex-direction: row;
        align-items: center;
        width: auto;
        gap: 12px;
    }

    #topnav-left-text p,
    #topnav-left-text a.phone-link {
        font-size: 0.9rem;
        letter-spacing: 0;
    }

    #topnav-left-text svg {
        width: 18px;
        height: 18px;
        margin-right: 0;
    }

    .btn-get-touch {
        width: auto;
        min-width: 180px;
        padding: 10px 20px;
        line-height: normal;
        height: 46px;
    }
    */

    .header-inner {
        padding: 0 24px;
    }

    .logo img {
        height: 44px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services .service-card .service-img-wrapper {
        height: 300px !important;
    }

    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .promo-section {
        padding: 92px 0;
    }

    .promo-card {
        padding: 52px 48px;
    }
}

/* Portatiles: 1024px en adelante */
@media (min-width: 1024px) {
    .container {
        max-width: 1140px;
    }

    .hero-content h1,
    .hero-content h2 {
        font-size: 2.6rem;
    }

    .slider-arrow {
        font-size: 2rem;
        padding: 15px;
    }

    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        text-align: left;
    }

    .social-icons,
    .footer-info p {
        justify-content: flex-start;
    }
}

/* Desktop nav completo: 1321px en adelante */
@media (min-width: 1321px) {
    .menu-toggle {
        display: none;
    }

    .main-nav {
        display: block;
    }

    .header-inner {
        justify-content: center;
        padding: 0 24px;
    }

    .logo {
        position: absolute;
        left: 24px;
        gap: 10px;
    }

    .main-nav ul {
        gap: 16px;
    }

    .main-nav ul li a {
        font-size: 0.78rem;
    }
}

/* Escritorios y monitores grandes: 1440px en adelante */
@media (min-width: 1440px) {
    .container {
        max-width: 1320px;
    }

    .gallery-grid {
        max-width: 1600px;
        grid-template-columns: repeat(6, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-content h1,
    .hero-content h2 {
        font-size: 3.2rem;
    }
    .btn-contact {
        margin: 15px;
    }
}