/* ===== RESET Y VARIABLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #0a0a0a;
    --white: #f5f5f5;
    --gold-start: #cf9f2e;  /* dorado intenso */
    --gold-end: #f3d779;     /* dorado claro */
    --gray: #222;
    --max-width: 1200px;
    --header-height: 80px;
}

body {
    background-color: var(--black);
    color: var(--white);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: var(--header-height); /* Evitar que el header fijo tape el contenido */
}

/* ===== UTILIDADES ===== */
.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 0;
}

.gold-gradient {
    background: linear-gradient(135deg, var(--gold-start), var(--gold-end));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* ===== HEADER FIJO CON MENÚ ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(5px);
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, var(--gold-start), var(--gold-end)) 1;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.header-container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    flex-shrink: 0;
}

.logo {
    max-width: 160px;  /* Ajustado para que quepa en el header */
    height: auto;
    filter: drop-shadow(0 0 8px rgba(207, 159, 46, 0.3));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

/* Menú de navegación */
.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-start), var(--gold-end));
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--gold-end);
}

.nav-link:hover::after {
    width: 100%;
}

/* Menú hamburguesa (oculto en escritorio) */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--white);
    cursor: pointer;
}

/* ===== HERO (opcional, para dar espacio) ===== */
.hero {
    height: 20vh; /* Pequeño espacio debajo del header */
    background: transparent;
}

/* ===== SECCIONES ===== */
.section {
    padding: 3rem 0;
    border-bottom: 1px solid var(--gray);
    position: relative;
    overflow: hidden;
}

.section:nth-child(even) {
    background-color: #111;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-start), var(--gold-end));
    border-radius: 2px;
}

.section-text {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* ===== FEATURES (¿POR QUÉ NOSOTROS?) ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-item {
    background-color: #1a1a1a;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s;
    border: 1px solid #333;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, rgba(207, 159, 46, 0.1), transparent 70%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 30px -10px rgba(207, 159, 46, 0.4);
    border-color: var(--gold-start);
}

.feature-item:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--gold-start), var(--gold-end));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.feature-item h3 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    color: #fff;
}

.feature-item p {
    color: #bbb;
    line-height: 1.6;
}

/* ===== BOTÓN FLOTANTE DE WHATSAPP ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #25d366, #128C7E);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    line-height: 60px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    z-index: 100;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 25px rgba(37, 211, 102, 0.5);
}

.whatsapp-float i {
    font-size: 35px;
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    padding: 2rem 0;
    background-color: #111;
    border-top: 2px solid transparent;
    border-image: linear-gradient(90deg, var(--gold-start), var(--gold-end)) 1;
}

.footer p {
    margin: 0.5rem 0;
    color: #aaa;
}

.footer-contact i {
    margin-right: 8px;
}

/* ===== ANIMACIONES ===== */
.section {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title:hover {
    filter: drop-shadow(0 0 8px #D4AF37);
    transition: filter 0.3s;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
    }

    .nav-menu {
        width: 100%;
        order: 3;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: rgba(10, 10, 10, 0.98);
        position: absolute;
        top: var(--header-height);
        left: 0;
        padding: 1rem 0;
        border-bottom: 2px solid transparent;
        border-image: linear-gradient(90deg, var(--gold-start), var(--gold-end)) 1;
        gap: 0;
    }

    .nav-list.active {
        display: flex;
    }

    .nav-link {
        display: block;
        padding: 1rem 2rem;
        text-align: center;
        border-bottom: 1px solid #333;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .menu-toggle {
        display: block;
    }

    .logo {
        max-width: 120px;
    }

    .section-title {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 25px;
        line-height: 50px;
        bottom: 20px;
        right: 20px;
    }
}

/* Utilidad para centrar texto */
.text-center {
    text-align: center;
}

/* Espaciado superior para el widget */
.trustindex-widget {
    margin-top: 2rem;
}