/* --- BASE Y FONDO --- */
* {
    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(234deg, transparent 0%, transparent 32%,rgba(81,81,81, 0.02) 32%, rgba(81,81,81, 0.02) 99%,transparent 99%, transparent 100%),linear-gradient(312deg, transparent 0%, transparent 24%,rgba(139,139,139, 0.02) 24%, rgba(139,139,139, 0.02) 58%,transparent 58%, transparent 100%),linear-gradient(90deg, rgb(24,24,24),rgb(24,24,24));
}

/* --- HEADER --- */
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;
    position: relative;
}

#logo {
    width: 250px;
    height: auto;
    transition: 0.3s;
}

#header-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
}

#inicio, #nosotros, #servicios, #blog {
    text-decoration: none;
    font-size: 16px;
    color: #C4C4C4;
    padding: 10px 15px;
    border-radius: 5px;
    transition: 0.3s;
    cursor: pointer;
    text-transform: uppercase;
}

#inicio:hover, #nosotros:hover, #servicios:hover, #blog:hover {
    background-color: #222222;
    color: #e6b421;
}

/* BOTÓN RAINBOW */
.btn-rainbow {
    background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    background-size: 400%;
    color: white;
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    font-size: 14px;
    animation: rainbow_animation 10s linear infinite;
    display: inline-block;
}

@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;
}

/* --- SECCIÓN HOME --- */
#home {
    display: flex;
    flex-direction: column;
    gap: 50px;
    background-image: url("backgroundd.png");
    background-size: cover;
    background-position: center;
    justify-content: center;
    align-items: center;
    height: 80vh;
    box-shadow: 0 5px 30px rgb(0, 0, 0);
    text-align: center;
    padding: 20px;
}

h1 {
    background-image: linear-gradient(to right, #A67C00, #b68f19, #A67C00);
    font-size: clamp(35px, 7vw, 80px);
    letter-spacing: 5px;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateY(50px);
    animation: aparecer 1.5s ease-out forwards;
}

h2 {
    font-size: clamp(18px, 3vw, 24px);
    background-image: linear-gradient(to right, #A67C00, #c99f22, #A67C00);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    animation: aparecer 1.5s 0.5s ease-out forwards;
}

#empieza {
    background-image: linear-gradient(to right, #A67C00, #b69a47, #A67C00);
    color: #000;
    padding: 18px 40px;
    border-radius: 10px;
    border: none;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0;
    animation: aparecer 1.5s 1s ease-out forwards;
}

@keyframes aparecer {
    to { opacity: 1; transform: translateY(0); }
}

/* --- BLOQUES DE CONTENIDO --- */
#seccion-0, #seccion-1 {
    padding: 80px 7%;
}

#porque { font-size: clamp(35px, 6vw, 80px); text-align: center; margin-bottom: 40px; font-weight: bold; }
#p-porque { font-size: clamp(18px, 3vw, 30px); text-align: center; line-height: 1.6; }

.section-block {
    display: flex;
    align-items: center;
    padding: 60px 40px;
    gap: 50px;
    border-radius: 30px;
    border: 1px solid #3d3d3d;
    background: rgba(63, 63, 63, 0.1);
    margin-bottom: 60px;
}

.block-reverse { flex-direction: row-reverse; }
.block-text { flex: 1; display: flex; flex-direction: column; gap: 20px; }
.block-title { font-size: clamp(28px, 4vw, 60px); font-weight: bold; line-height: 1.2; }

.img-gold, .img-gold-suit {
    width: 380px;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

.letra-dorada {
    background-image: linear-gradient(to right, #A67C00, #c99f22, #A67C00);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- FORMULARIO Y FOOTER --- */
.input-form {
    width: 100%; padding: 15px; background: #111; border: 1px solid #333;
    color: white; border-radius: 8px; font-size: 16px;
}

#footer-content { background-color: #0d0d0d; padding: 60px 7% 30px; border-top: 2px solid #A67C00; }
#footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    #menu-toggle { display: flex; } /* Mostramos hamburguesa */

    #header-nav {
        display: none; /* Escondemos el menú */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: -5%;
        width: 110%;
        background: #111;
        padding: 20px;
        border-bottom: 2px solid #A67C00;
        text-align: center;
    }

    #header-nav.active { display: flex; } /* Aparece al hacer clic */

    #logo { width: 180px; }

    .section-block, .block-reverse {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .img-gold, .img-gold-suit { width: 70%; }
}