* {
    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: #9B30FF;
    color: #000;
}

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

nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #9B30FF
}

.consulta-btn {
    background: #512D6D;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.consulta-btn:hover {
    background: #9B30FF;
}

.hero {
    text-align: center;
    padding: 150px 50px 100px;
    background: linear-gradient(rgba(54, 54, 54, 0.6), rgba(0,0,0,0.6));
}


.hero {
    text-align: center;
    padding: 150px 20px 100px; 
    background: linear-gradient(rgba(54, 54, 54, 0.6), rgba(0,0,0,0.6));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero h1 {
   
     font-size: clamp(32px, 8vw, 60px);
    margin-bottom: 20px;
    display: block;
    text-align: center;
    width: 100%;
    animation: 
        fadeInDown 1.5s ease-out forwards, 
        metallic-shine 6s linear infinite;
    background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    background-size: 300% auto; 
    -webkit-background-clip: text; 
    background-clip: text;       
    color: transparent;
    filter: drop-shadow(0px 2px 2px rgba(0,0,0,0.2));
    line-height: 1.2;
    overflow-wrap: break-word;
}
@keyframes metallic-shine {
    0%   { background-position: 0% 50%; }
    100% { background-position: -300% 50%; }
}

.hero p {
  
    font-size: clamp(16px, 4vw, 20px);
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.6;
    animation: fadeInUp 1.5s ease-out 0.5s;
    opacity: 0;
    animation-fill-mode: forwards;
    padding: 0 10px;
}


/* Contenedor de busqueda */
.search-container {
    position: relative;
    width: 95%;          
    max-width: 850px;    
    margin: 30px auto;   
    animation: fadeInUp 1.5s ease-out 1s;
    opacity: 0;
    animation-fill-mode: forwards;
    z-index: 1001;
}

.search-bar {
    display: flex;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 40px; 
    overflow: hidden;  
    background: rgba(255, 255, 255, 0.05);
}

.search-bar input {
    flex: 1;
    padding: 15px 25px;
    border-radius: 30px 0 0 30px;
    border: 1px solid rgba(191, 149, 63, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 16px;
    backdrop-filter: blur(5px);
    outline: none;
    transition: 0.3s;
}

.search-bar input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #bf953f; 
}

.search-bar input::placeholder {
    color: #aaaaaa;
}

.search-bar button {
    padding: 15px 30px;
    border-radius: 0 30px 30px 0;
    border: none;
    background: #512D6D; 
    color: #ffffff;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-bar button:hover {
    background: #6d3e91;
    box-shadow: 0 0 15px rgba(81, 45, 109, 0.5);
}

/* LISTA DE AUTOCOMPLETADO */
.suggestions-list {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: #1a1a1a; 
    border: 1px solid #512D6D;
    border-radius: 15px;
    max-height: 250px;
    overflow-y: auto;
    display: none; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.suggestion-item {
    padding: 12px 20px;
    cursor: pointer;
    color: #e0e0e0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: 0.2s;
    text-align: left;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: #512D6D;
    color: #fcf6ba; 
}


.suggestions-list::-webkit-scrollbar {
    width: 6px;
}
.suggestions-list::-webkit-scrollbar-thumb {
    background: #bf953f;
    border-radius: 10px;
}

.container {
    max-width: 1300px; 
    margin: 0 auto;    
    padding: 0 40px;   
    box-sizing: border-box;
}

.page-title {
    text-align: center;
    color: #6d3e91;
    font-size: 2.5em;
    margin-bottom: 50px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); 
    gap: 30px;
    justify-content: center;
}

.cards-grid {
    display: grid;
    /* Forzamos exactamente 4 columnas iguales */
    grid-template-columns: repeat(4, 1fr); 
    gap: 25px;
    width: 100%;
    max-width: 1500px; /* Ajustado a tu contenedor */
    margin: 0 auto;
    justify-content: center;
}

.card {
    background-color: rgba(26, 26, 26, 1);
    border-radius: 20px;
    padding: 30px;
    transition: transform 0.3s ease, opacity 0.8s ease;

    /* Mantenemos el tamaño uniforme que pediste antes */
    display: flex;
    flex-direction: column;
    height: 100%; 
    min-height: 420px; 
}

.card:hover {
    transform: translateY(-10px);
}

.img {
    font-size: 3em;
    color: #f7f7f7;
    margin-bottom: 2px;
    text-align: left;
}

h2 {
    color: #6d3e91;
    font-size: 1.8em;
    margin-bottom: 15px;
}

p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #ccc;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background-color: #6d3e91;
    color: #f3f3f3;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
}

@media (max-width: 1100px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Para Celulares (1 columna) */
@media (max-width: 700px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .card {
        min-height: auto; /* En móvil que respire el contenido */
    }
}
.card {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.card.visible {
    opacity: 1;
    transform: translateY(0);
}

.cards-grid .card:nth-child(1) { transition-delay: 0.1s; }
.cards-grid .card:nth-child(2) { transition-delay: 0.2s; }
.cards-grid .card:nth-child(3) { transition-delay: 0.3s; }
.cards-grid .card:nth-child(4) { transition-delay: 0.4s; }
.cards-grid .card:nth-child(5) { transition-delay: 0.5s; }



