/* REPARACIÓN DEL CSS: SERVICIOS (DISEÑO ORIGINAL PRESERVADO) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Roboto", sans-serif;
    color: #C4C4C4;
}

body {
    background-color: #1a1a1a;
    background-image: linear-gradient(33deg, transparent 0%, transparent 8%,rgba(81,81,81, 0.02) 8%, rgba(81,81,81, 0.02) 59%,transparent 59%, transparent 100%),
                      linear-gradient(90deg, rgb(24,24,24),rgb(24,24,24));
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: #111111;
    min-height: 8vh;
    box-shadow: 0 5px 30px rgb(0, 0, 0);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
}

#header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1400px;
}

#logo {
    max-height: 6vh;
    width: auto;
    object-fit: contain;
    transition: 0.3s;
    display: block;
}

#header-nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

#header-nav a, #servicios-active {
    text-decoration: none;
    font-size: 16px;
    color: #C4C4C4 !important;
    padding: 10px 20px;
    border-bottom: 2px solid transparent;
    transition: 0.3s;
    text-transform: uppercase;
}

#servicios-active {
    border-image: linear-gradient(to right, #A67C00, #e6b421, #A67C00) 1;
    border-bottom: 2px solid;
    background-color: #222222;
}

#header-nav a:hover {
    background-color: #222222;
    border-bottom: 2px solid #A67C00;
}

/* BOTÓN RAINBOW TUTELAS */
.btn-rainbow {
    background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    background-size: 400%;
    color: white !important;
    padding: 8px 15px !important;
    border-radius: 5px;
    font-weight: bold;
    border-bottom: none !important;
    animation: rainbow_animation 10s linear infinite;
}

@keyframes rainbow_animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* MENU TOGGLE (Hamburguesa) */
#menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

#menu-toggle span {
    width: 30px;
    height: 3px;
    background: #e6b421;
    border-radius: 3px;
}

/* Contenedor Principal */
#contenedor {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px 7%;
    gap: 80px;
}

#servicios-header {
    text-align: center;
    max-width: 800px;
}

.titulo-grande {
    font-size: clamp(35px, 7vw, 70px);
    letter-spacing: 5px;
    margin-bottom: 30px;
}

.letra-dorada {
    background-image: linear-gradient(to right, #A67C00, #c99f22, #A67C00);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

/* Navegación Rápida (Pills) */
.nav-pills {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.pill {
    text-decoration: none;
    color: #C4C4C4;
    border: 1px solid #A67C00;
    padding: 8px 20px;
    border-radius: 50px;
    transition: 0.3s;
    font-size: 14px;
}

.pill:hover { background: #A67C00; color: white; }

/* Bloques de Servicio */
.service-block {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(63, 63, 63, 0.1);
    border: 1px solid #3d3d3d;
    width: 100%;
    max-width: 1100px;
    padding: 60px;
    gap: 50px;
    border-radius: 30px;
    transition: 0.5s;
    scroll-margin-top: 100px;
}

.block-reverse { flex-direction: row-reverse; }

.service-block:hover {
    transform: scale(1.02);
    border-color: #A67C00;
}

.img-service {
    width: 350px;
    height: 350px;
    max-width: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.service-text h2 {
    font-size: 45px;
    margin-bottom: 15px;
}

.linea-dorada {
    height: 2px;
    width: 100px;
    background: linear-gradient(to right, #A67C00, #e6b421);
    margin-bottom: 25px;
}

/* Puntitos Decorativos */
.puntitos {
    width: 200px;
    height: 200px;
    background-image: radial-gradient(#646464 1.5px, transparent 1.5px);
    background-size: 15px 15px;
    position: absolute;
    z-index: -1;
    opacity: 0.3;
}
.puntitos-br { bottom: -20px; right: -20px; }
.puntitos-bl { bottom: -20px; left: -20px; }

/* Footer */
footer {
    flex-shrink: 0;
    background-color: #0d0d0d;
    padding: 60px 7% 30px;
    border-top: 2px solid #A67C00;
}

#footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

#copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #222;
    font-size: 13px;
}

/* -----------------------------------------------------------
   AJUSTES PARA MÓVILES (RESPONSIVE)
   ----------------------------------------------------------- */

@media (max-width: 900px) {
    #menu-toggle { display: flex; } /* Activa hamburguesa */

    #header-nav {
        display: none; /* Se oculta y espera el clic */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #111;
        padding: 20px;
        border-bottom: 2px solid #A67C00;
        text-align: center;
        gap: 15px;
    }

    #header-nav.active { display: flex; }

    #contenedor {
        padding: 40px 5%;
        gap: 40px;
    }

    .titulo-grande {
        font-size: 38px;
    }

    .service-block, .block-reverse {
        flex-direction: column;
        padding: 30px;
        text-align: center;
        gap: 30px;
    }

    .img-service {
        width: 100%;
        height: auto;
        max-height: 300px;
    }

    .service-text h2 {
        font-size: 28px;
    }

    .linea-dorada {
        margin: 0 auto 20px;
    }

    .puntitos {
        display: none;
    }

    /* REDUCCIÓN DE GRAMAJE FOOTER (PEDIDO) */
    footer {
        padding: 30px 5% 20px; /* Menos espacio */
    }

    #footer-grid {
        gap: 20px; /* Menos espacio entre columnas */
    }

    #footer-grid h4 {
        font-size: 14px; /* Títulos más pequeños */
        margin-bottom: 10px;
    }

    #footer-grid p, #footer-grid li {
        font-size: 13px; /* Texto más fino */
        line-height: 1.4;
    }

    #footer-grid img {
        width: 140px !important; /* Logo de footer más pequeño */
    }

    #copyright {
        margin-top: 20px;
        font-size: 11px;
    }
}