* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
   background-color: #0D0D0D;
    color: #e0e0e0;
    font-family: 'Segoe UI', Arial, sans-serif; 
    background-size: 60px 60px;
    margin: 0;
    padding: 40px 20px;
    min-height: 100vh;
    overflow-x: hidden;
    
}

header {
    background: rgba(0, 0, 0, 0.8);
    padding: 15px 40px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    backdrop-filter: blur(10px);
    box-sizing: border-box;
}

.header-left { flex: 1; display: flex; justify-content: flex-start; }
.header-center { flex: 2; display: flex; justify-content: center; }
.header-right { flex: 1; display: flex; justify-content: flex-end; }

.logo {
    display: flex;
    flex-direction: row; 
    align-items: center; 
    gap: 15px; 
    background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: bold;
    font-size: 20px;
    white-space: nowrap;
}

.header-center ul {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.header-center ul li a {
    text-decoration: none;
    color: #fcf6ba;
    font-weight: 500;
    transition: 0.3s;
}

.consulta-btn {
    background: linear-gradient(to right, #bf953f, #aa771c);
    color: #000;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

.mobile-only { display: none; }
@media (max-width: 1024px) {
    .desktop-only { display: none; }
    .mobile-only { display: block; }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        z-index: 1100;
    }

    .menu-toggle span {
        width: 30px;
        height: 2px;
        background: #fcf6ba;
        transition: 0.4s;
    }
    .header-center {
        position: fixed;
        top: 0;
        right: -100%; 
        width: 280px;
        height: 100vh;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: flex-start;
        padding: 100px 30px;
        transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: -5px 0 20px rgba(0,0,0,0.5);
    }

    .header-center.active { right: 0; }

    .header-center ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }

    .header-center ul li a {
        font-size: 1.3rem;
        letter-spacing: 1px;
    }

    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.6);
        display: none;
        z-index: 1040;
    }
    .nav-overlay.active { display: block; }

    .menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
    .menu-toggle.open span:nth-child(2) { opacity: 0; }
    .menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }
}


.logo span {
    background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: bold;
    font-size: 20px;
}

.logo img {
    display: block;
    height: auto; 
    max-width: 50px;
}
.consulta-btn {
    background: #512D6D;
    color: #fff; 
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    white-space: nowrap; 
    transition: 0.3s;
}

.consulta-btn:hover {
    background: #ffed4e;
    color: #000;
}



/* --- Ajuste para el título --- */
.hero-title {
    text-align: center;
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 50px; /* Espacio antes de las tarjetas */
    padding-top: 60px;   /* Para que no lo tape el header */
    text-transform: uppercase;
}

/* --- TUS ESTILOS ORIGINALES (Mantenidos al 100%) --- */
.container-cards {
    display: grid;
    /* Ajustado para que en móvil salte a una fila automáticamente */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding: 40px 20px;
    max-width: 1300px;
    margin: 0 auto;
    align-items: stretch; 
}

.card-1 {
    background: rgba(15, 15, 35, 0.65);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 40px 30px; 
    border: 1px solid rgba(255, 215, 0, 0.18);
    box-shadow: 0 15px 50px rgba(0,0,0,0.7);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
}

.card-1:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.4);
}

.section h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 1.5rem;
    text-align: center;
}



/* --- Contenedor Principal (Tu estilo) --- */
.container-history {
    max-width: 1300px;
    margin: 60px auto;
    padding: 0 20px;
}

/* --- Tarjeta Base (Tu estilo de cristal) --- */
.card-history {
    background: rgba(15, 15, 35, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    border: 1px solid rgba(255, 215, 0, 0.18);
    box-shadow: 0 15px 50px rgba(0,0,0,0.7);
    overflow: hidden; /* Mantiene la imagen dentro de los bordes redondeados */
    transition: all 0.5s ease;
}

.card-history:hover {
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 20px 60px rgba(255, 215, 0, 0.1);
}

/* --- Layout de Dos Columnas (Tu estilo) --- */
.history-layout {
    display: flex;
    align-items: center;
}

/* --- Columna Izquierda: Contenedor de Imagen (Tu estilo) --- */
.history-image-container {
    flex: 0 0 45%;
    width: 45%;
    /* Mantenemos object-fit: cover en escritorio porque suele verse bien con el recorte lateral */
    height: 100%;
    display: flex; 
    overflow: hidden;
}

/* --- La Imagen en sí (Tu estilo + CORRECCIÓN BASE) --- */
.history-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Estilo por defecto para escritorio */
    object-position: center; /* Centrado por defecto */
    display: block;
}

.history-content-container {
    flex: 1;
    padding: 60px 50px;
}


.history-content p {
    color: #ffffff;
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 20px;
    opacity: 0.9;
    text-align: justify;
}

.history-content strong {
    color: #ffd700;
}

.history-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
    text-align: center;
}

.highlight {
    font-style: italic;
    font-weight: 500;
    color: #ffd700;
}

@media (max-width: 992px) {
    .history-layout {
        flex-direction: column;
    }

    .history-image-container {
        flex: 0 0 auto;
        width: 100%;
        height: 250px; 
    }

    .history-image {
        object-fit: contain; 
        
        object-position: center; 
        background-color: #000; 
    }

    .history-content-container {
        width: 100%;
        padding: 30px 20px; /* Menos padding en móvil */
    }
    
    .history-content p {
        text-align: left;
        font-size: 1rem;
    }
}
/* Conservo tus colores de texto */
p {
    font-size: 1.05rem; 
    line-height: 1.7;
    color: #e5e5ff;
    opacity: 0.9;
    text-align: justify; 
}

.gold-neon {
    background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: bold;
    filter: drop-shadow(0 0 5px rgba(191, 149, 63, 0.3));
}

@media (max-width: 480px) {
    .container-cards {
        padding: 20px 15px;
        gap: 20px;
    }

    .card-1 {
        padding: 30px 20px;
    }

    .section h2 {
        font-size: 1.6rem;
    }

    p {
        font-size: 0.95rem;
        text-align: left;
    }
}


.main-footer {
    background-color: #080808; 
    color: #e0e0e0;
    padding: 60px 0 20px 0;
    width: 100%;
    border-top: 1px solid rgba(191, 149, 63, 0.2);
    font-family: 'Segoe UI', Arial, sans-serif;
    margin-top: 50px;
}

.footer-container {
    width: 100%;
    max-width: 1200px; 
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* --- GRID DE 3 COLUMNAS --- */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
    align-items: start;
}

.footer-block h3 {
    color: #fcf6ba; /* Color oro de tus logos */
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-block p {
    color: #b0b0b0; /* Gris elegante para lectura */
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 5px;
}

/* --- REDES SOCIALES (MANTENIENDO TUS COLORES) --- */
.social-wrapper {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.socialContainer {
    width: 45px;
    height: 45px;
    background-color: #2d2d2d;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.socialSvg {
    width: 18px;
    fill: white;
}

/* Hovers con tus colores originales */
.containerOne:hover { background-color: #d62976; transform: scale(1.1); } /* Instagram */
.containerTwo:hover { background-color: #00acee; transform: scale(1.1); } /* Twitter/X */
.containerThree:hover { background-color: #0072b1; transform: scale(1.1); } /* LinkedIn */
.containerFour:hover { background-color: #128c7e; transform: scale(1.1); } /* WhatsApp */

/* --- SEPARADOR Y TEXTO FINAL --- */
.footer-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #bf953f, transparent);
    margin: 40px 0 20px;
}

.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
    color: #777;
}

.gold-text {
    color: #fcf6ba;
    font-weight: bold;
}

/* --- RESPONSIVE (CELULARES) --- */
@media (max-width: 850px) {
    .footer-grid {
        grid-template-columns: 1fr; /* Todo en una columna */
        gap: 40px;
    }
    
    .footer-block {
        padding: 0 10px;
    }

    .main-footer {
        padding: 40px 0 20px 0;
    }
}


