/* -------- CONFIG GLOBAL -------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background: #fafafa;
    color: #222;
    line-height: 1.6;
}

/* -------- NAVBAR -------- */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    background: #111;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.logo {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
}

.logo span {
    color: #ff3b3b;
}

.nav-links a {
    margin-left: 20px;
    color: #eee;
    text-decoration: none;
    font-weight: 400;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #ff3b3b;
}


/* Asegurar que el nav horizontal solo aparece en escritorio */
@media (min-width: 769px) {
    .nav-links {
        display: flex;
        gap: 20px;
        position: static;
        transform: none;
        background: none;
        border: none;
        padding: 0;
    }

    .nav-links a {
        padding: 0;
        font-size: 1rem;
    }
}

/* ---------- MENÚ HAMBURGUESA (SOLO MÓVIL) ----------- */

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #fff;
    transition: 0.3s;
}

/* Estado activo (X) */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}


/* ----- NAV MÓVIL ----- */

@media (max-width: 768px) {

    .nav-links {
        position: absolute;
        top: 70px;
        right: 0;
        background: #111;
        width: 220px;
        display: flex;
        flex-direction: column;
        padding: 25px 0;
        border-left: 2px solid #ff3b3b;
        border-bottom: 2px solid #ff3b3b;
        transform: translateX(100%);
        transition: transform 0.35s ease;
        z-index: 9999;
    }

    .nav-links a {
        padding: 14px 20px;
        text-align: left;
        font-size: 1.2rem;
    }

    .nav-links.show {
        transform: translateX(0);
    }

    .hamburger {
        display: flex;
    }

    /* Ocultar menú horizontal */
    .navbar .nav-links:not(.show) {
        display: none;
    }
}




/* -------- HERO -------- */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
        url("../img/header.jpg") center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 0 20px;
    text-align: center;
}

.hero h1 {
    font-size: 2.7rem;
    font-weight: 700;
}

.hero p {
    margin: 20px 0;
    font-size: 1.1rem;
}

.btn-primary {
    background: #ff3b3b;
    padding: 12px 25px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
    transition: 0.3s;
}

.btn-primary:hover {
    background: #d33131;
}

.button {
    --stone-50: #fafaf9;
    --stone-800: #292524;
    --yellow-400: #facc15;

    font-family: "Rubik", sans-serif;
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    line-height: 1;
    font-size: 1rem;
    border-radius: 1rem;
    outline: 2px solid transparent;
    outline-offset: 6px;
    color: var(--stone-50);
    text-decoration: none;
    /* IMPORTANTE para <a> */
}

.button:active {
    outline-color: var(--yellow-400);
}

.button:focus-visible {
    outline-color: var(--yellow-400);
    outline-style: dashed;
}

.button::before {
    content: "";
    position: absolute;
    z-index: 0;
    height: 200%;
    max-height: 100px;
    aspect-ratio: 1;
    margin: auto;
    background: white;
    clip-path: polygon(100% 50%,
            91.48% 56.57%,
            97.55% 65.45%,
            87.42% 69.07%,
            90.45% 79.39%,
            79.7% 79.7%,
            79.39% 90.45%,
            69.07% 87.42%,
            65.45% 97.55%,
            56.57% 91.48%,
            50% 100%,
            43.43% 91.48%,
            34.55% 97.55%,
            30.93% 87.42%,
            20.61% 90.45%,
            20.3% 79.7%,
            9.55% 79.39%,
            12.58% 69.07%,
            2.45% 65.45%,
            8.52% 56.57%,
            0% 50%,
            8.52% 43.43%,
            2.45% 34.55%,
            12.58% 30.93%,
            9.55% 20.61%,
            20.3% 20.3%,
            20.61% 9.55%,
            30.93% 12.58%,
            34.55% 2.45%,
            43.43% 8.52%,
            50% 0%,
            56.57% 8.52%,
            65.45% 2.45%,
            69.07% 12.58%,
            79.39% 9.55%,
            79.7% 20.3%,
            90.45% 20.61%,
            87.42% 30.93%,
            97.55% 34.55%,
            91.48% 43.43%);

    animation: star-rotate 4s linear infinite;
    opacity: 0.1;
}

.button:hover::before {
    opacity: 1;
}

.button>div {
    padding: 2px;
    border-radius: 1rem;
    background-color: var(--yellow-400);
    transform: translate(-4px, -4px);
    transition: all 150ms ease;
    box-shadow:
        0.5px 0.5px 0 0 var(--yellow-400),
        1px 1px 0 0 var(--yellow-400),
        1.5px 1.5px 0 0 var(--yellow-400),
        2px 2px 0 0 var(--yellow-400),
        2.5px 2.5px 0 0 var(--yellow-400),
        3px 3px 0 0 var(--yellow-400),
        0 0 0 2px var(--stone-800),
        0.5px 0.5px 0 2px var(--stone-800),
        1px 1px 0 2px var(--stone-800),
        1.5px 1.5px 0 2px var(--stone-800),
        2px 2px 0 2px var(--stone-800),
        2.5px 2.5px 0 2px var(--stone-800),
        3px 3px 0 2px var(--stone-800),
        3.5px 3.5px 0 2px var(--stone-800),
        4px 4px 0 2px var(--stone-800),
        0 0 0 4px var(--stone-50),
        0.5px 0.5px 0 4px var(--stone-50),
        1px 1px 0 4px var(--stone-50),
        1.5px 1.5px 0 4px var(--stone-50),
        2px 2px 0 4px var(--stone-50),
        2.5px 2.5px 0 4px var(--stone-50),
        3px 3px 0 4px var(--stone-50),
        3.5px 3.5px 0 4px var(--stone-50),
        4px 4px 0 4px var(--stone-50);
}

.button:hover>div {
    transform: translate(0, 0);
}

.button>div>div {
    position: relative;
    pointer-events: none;
    border-radius: calc(1rem - 2px);
    background-color: var(--stone-800);
}

.button>div>div::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    opacity: 0.1;
    background-image: radial-gradient(rgb(255 255 255 / 80%) 20%, transparent 20%),
        radial-gradient(rgb(255 255 255 / 100%) 20%, transparent 20%);
    background-position: 0 0, 4px 4px;
    background-size: 8px 8px;
    mix-blend-mode: hard-light;
    box-shadow: inset 0 0 0 1px var(--stone-800);
    animation: dots 0.4s infinite linear;
}

.button>div>div>div {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    gap: 0.25rem;
    filter: drop-shadow(0 -1px 0 var(--stone-800));
}

@keyframes star-rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes dots {
    0% {
        background-position: 0 0, 4px 4px;
    }

    100% {
        background-position: 8px 0, 12px 4px;
    }
}

/* -------- SECCIONES -------- */
.section {
    padding: 80px 20px;
    text-align: center;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    font-weight: 700;
}

/* -------- CARDS -------- */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

/* -------- GALERÍA -------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.gallery-grid img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    /* MEJORA: Animación de imagen en hover */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.02);
    /* Ligeramente más grande */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    /* Sombra más pronunciada */
}

/* -------- MAPA -------- */
.map-container {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* -------- CONTACTO -------- */
.contact-line {
    font-size: 1.2rem;
    margin: 12px 0;
}

.contact-line a {
    color: #ff3b3b;
    text-decoration: none;
}

/* -------- FOOTER -------- */
footer {
    background: #111;
    color: white;
    padding: 25px;
    text-align: center;
    margin-top: 40px;
}

/* -------- ANIMACIONES (MEJORADA) -------- */

/* Estado inicial (oculto) */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    /* Nueva transición más suave */
}

/* El estado que activa la aparición (añadido por script.js) */
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- BOTÓN WHATSAPP PARA MÓVIL ---- */
@media (max-width: 600px) {

    .hero .button {
        transform: scale(1.15);
        /* Botón un poco más grande */
        margin-top: 20px;
    }

    .button>div>div>div {
        padding: 1rem 2rem !important;
        /* Más espacio para el dedo */
        font-size: 1.05rem;
    }

    .button {
        margin-left: auto;
        margin-right: auto;
        display: inline-flex;
    }

    .hero-content {
        padding: 0 20px;
    }
}

@media (max-width: 600px) {

    .btn-wsp-contact,
    .btn-ig-contact {
        display: block;
        width: 90%;
        margin: 12px auto;
        font-size: 1.05rem;
    }
}

@media (max-width: 600px) {
    .btn-wsp-contact {
        font-size: 1.12rem;
        padding: 14px 24px;
    }
}

/* -------- BOTÓN SOLICITAR SERVICIO (ESTILO MODERNO) -------- */

.btn-service {
    /* Reseteamos estilos por defecto de la tarjeta para este link */
    text-decoration: none;
    display: inline-block;
    margin-top: 25px;
    /* Separación de la descripción */

    /* Estilos copiados de tu solicitud */
    padding: 1.3em 3em;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-weight: 700;
    /* Lo hacemos un poco más grueso para visibilidad */
    color: #000;
    background-color: #fff;
    border: none;
    border-radius: 45px;
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease 0s;
    cursor: pointer;
    outline: none;
}

.btn-service:hover {
    background-color: #23c483;
    box-shadow: 0px 15px 20px rgba(46, 229, 157, 0.4);
    color: #fff;
    transform: translateY(-7px);
}

.btn-service:active {
    transform: translateY(-1px);
}

/* -------- BOTÓN SOLICITAR PRODUCTO (NUEVO) -------- */

.btn-product {
    display: inline-block;
    background: #ff3b3b;
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 6px;
    margin-top: 20px;
    transition: background 0.3s;
}

.btn-product:hover {
    background: #d33131;
}

/* Ajuste para que los botones de producto no se vean afectados por el estilo de nav-links */
.card .btn-product {
    margin-left: 0;
}


/* --- ANIMACIÓN AL CLIC DEL MENÚ --- */

.nav-links a {
    position: relative;
    overflow: hidden;
}

.nav-links a.clicked {
    animation: tap-bounce 0.3s ease;
}

/* Subrayado animado */
.nav-links a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: #ff3b3b;
    transition: 0.35s ease;
    transform: translateX(-50%);
}

.nav-links a.clicked::after {
    width: 100%;
}

@keyframes tap-bounce {
    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

.reviews {
    padding: 80px 20px;
    text-align: center;
}

.reviews-slider {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 20px;
    scrollbar-width: none;
}

.reviews-slider::-webkit-scrollbar {
    display: none;
}

.review {
    min-width: 260px;
    background: white;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
    scroll-snap-align: center;
    font-size: 0.95rem;
    transition: transform 0.3s ease;
}

.review:hover {
    transform: scale(1.05);
}

.review span {
    display: block;
    margin-top: 8px;
    color: #555;
    font-weight: 600;
}

.btn-google {
    display: inline-block;
    margin-top: 25px;
    padding: 10px 20px;
    background: #ff3b3b;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-google:hover {
    background: #d33131;
}

/* ---- BOTONES EXTRA CONTACTO ---- */

.btn-wsp-contact,
.btn-ig-contact {
    display: inline-block;
    margin-top: 12px;
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    transition: 0.3s ease;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

/* WhatsApp estilo */
.btn-wsp-contact {
    background: #25D366;
    color: white;
}

.btn-wsp-contact:hover {
    background: #1ebc57;
}

/* Instagram estilo */
.btn-ig-contact {
    background: linear-gradient(45deg, #fdf497, #fd5949, #d6249f, #285AEB);
    color: white;
}

.btn-ig-contact:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    opacity: 1;
}

@media (max-width: 600px) {
    .call-float {
        position: fixed;
        bottom: 18px;
        right: 18px;
        background: #25D366;
        color: white;
        font-size: 1.4rem;
        padding: 14px 18px;
        border-radius: 50%;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
        z-index: 9999;
    }
}

.call-float {
    text-decoration: none !important;
}

.call-float * {
    text-decoration: none !important;
}

.call-float img {
    width: 30px;
    height: 30px;
}

.call-float {
    position: fixed;
    bottom: 18px;
    right: 18px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    animation: pulse 2.2s infinite ease-in-out;
    z-index: 9999;
}

.call-float img {
    width: 30px;
    height: 30px;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55);
    }

    50% {
        transform: scale(1.08);
        box-shadow: 0 0 15px 10px rgba(37, 211, 102, 0.25);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55);
    }
}

/* Tooltip opcional */
.call-float::after {
    content: "Llamar";
    position: absolute;
    right: 70px;
    background: #111;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
}

.call-float:hover::after {
    opacity: 1;
}