@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Playfair+Display:wght@700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "Montserrat", sans-serif;
    line-height: 1.6;
    background-color:aliceblue;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
    font-family: "Playfair Display", serif;
    font-weight: 700;
    margin-bottom: 1rem;
}
header {
    background: transparent;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
}
.navbar {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}
.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: #000000;
}
.navbar img {
    height: 80px;
    width: auto;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}
.nav-links li {
    margin: 0 15px;
}
.nav-links a {
    text-decoration: none;
    color: #444;
    font-weight: 600;
    font-size: 0.95rem;
    transition: 0.3s;
}
.nav-links a:hover {
    color: #F3E5AB
}
.contact-info {
    font-weight: 700;
    color: #d4af37;
}
.hero {
    min-height: 100vh;
    background-image: url("fondo.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 0;
    color: #fff;
}
.hero::before {
    content: "";
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(0,0,0,0.3);
    z-index: 1;
}
.hero-overlay {
    position: relative;
    z-index: 2;
}
.hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    }
.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px; 
}
/* Contenedor principal de la barra */
.search-bar {
    width: 100%;
    max-width: 650px;
    margin: 20px auto 0 auto;
}

/* El formulario que une el input y el botón en una sola píldora elegante */
.search-bar form {
    display: flex;
    width: 100%;
    background: #ffffff;
    padding: 6px;
    border-radius: 50px; /* Bordes completamente redondeados */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2); /* Tu sombra original */
    transition: all 0.3s ease;
}

/* Efecto cuando el usuario hace clic para escribir */
.search-bar form:focus-within {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px); /* Pequeño levante estético muy sutil */
}

/* El campo de texto donde se escribe */
.search-bar input[type="text"] {
    flex: 1;
    border: none;
    background: transparent;
    padding: 15px 25px;
    font-size: 1rem;
    font-family: "Montserrat", sans-serif;
    color: #333333;
    outline: none;
}

/* Estilo para el texto de sugerencia de fondo (Placeholder) */
.search-bar input[type="text"]::placeholder {
    color: #999999;
    font-weight: 400;
}

/* Tu botón dorado pero adaptado a la forma de la píldora */
.search-bar button[type="submit"] {
    background: #d4af37; /* Tu dorado corporativo */
    color: #ffffff;
    border: none;
    padding: 0 40px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 50px; /* Redondeado para encajar de forma interna */
    cursor: pointer;
    transition: background 0.3s base, transform 0.2s ease;
}

/* El efecto Hover con tu tono crema original */
.search-bar button[type="submit"]:hover {
    background: #F3E5AB; /* Tu crema original */
    color: #444; /* Un tono oscuro para que el texto "Buscar" no se pierda en el fondo claro */
}

/* Efecto sutil al presionar el botón */
.search-bar button[type="submit"]:active {
    transform: scale(0.97);
}

/* Ocultar la flecha por defecto de datalist en navegadores webkit para mantener la limpieza */
.search-bar input::-webkit-calendar-picker-indicator {
    opacity: 0;
}
/* Cursos destacados*/
.cursos-destacados {
    padding: 80px 0;
    background-color: #FAFAFA;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.2rem;
    position: relative;
}
.section-title::after {
    content: '';
    width: 60px;
    height: 4px;
    background: #F3E5AB;
    display: block;
    margin: 10px auto; 
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: 0.3s;
}
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.card-img {
    height: 230px;
    background-size: cover;
    background-position: center;
    position: relative;
}
/* Si usas una etiqueta <img class="card-img"> dentro de la tarjeta */
.card img.card-img,
img.card-img {
    display: block;
    width: 100%;
    height: 230px;
    object-fit: cover;
}
.card-body {
    padding: 20px;
}
.card-body h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #000000;
}
.price {
    font-size: 1.4rem;
    font-weight: 800;
    color: #000;
    margin-bottom: 20px;
}
.specs {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #666;
    border-top: 1px solid #fff;
    padding-top: 20px;
}
.specs i {
    color: #d4af37;
    margin-right: 5px;
}
.category {
    display: inline-block;
    background: #e67e22; /* Color naranja para destacar */
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 10px;
    font-weight: bold;
}
.btn-info {
    width: 100%;
    padding: 12px;
    background-color: #D4AF37;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-info:hover {
    background-color: #F3E5AB;
}
/* Footer */
footer {
    background-color: #1C1C1C;
    color: #FAFAFA;
    padding: 60px 0 20px;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.footer-section {
    margin-bottom: 30px;
    flex: 1;
    min-width: 280px;
}
.footer-section h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    border-left: 4px solid #000;
    padding-left: 10px;
}
.footer-section p {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-bottom: 10px;
}
.socials {
    margin-top: 15px;
}
.socials a {
    color: #fff;
    font-size: 1.6rem;
    margin-right: 20px;
    opacity: 0.8;
    transition: 0.3s;
}
.socials a:hover {
    opacity: 1;
    color: #F3E5AB;
}
.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 20px;
    margin-top: 20px;
    font-size: 0.9rem;
    opacity: 0.7;
}
.whatsapp-link {
    text-decoration: none;
    color: #D4AF37; /* Verde WhatsApp */
    font-weight: bold;
    transition: color 0.3s;
}
.whatsapp-link:hover {
    color: #128C7E; /* Verde oscuro al pasar el mouse */
}
/* =======================================================
ESTILOS PREMIUM PARA LAS SUGERENCIAS PERSONALIZADAS
======================================================= */

/* Posicionamiento relativo para que las sugerencias floten alineadas al buscador */
.search-bar {
    position: relative;
}

/* Caja contenedora de sugerencias */
.suggestions-container {
    position: absolute;
    top: 105%; /* Se despliega justo debajo de la barra */
    left: 20px;
    width: calc(100% - 40px); /* Alineada al ancho interno */
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    max-height: 250px;
    overflow-y: auto;
    z-index: 9999; /* Por encima de cualquier imagen o texto */
    display: none; /* Se oculta por defecto */
    text-align: left;
}

/* Cada opción de curso individual */
.suggestion-item {
    padding: 12px 20px;
    font-size: 0.95rem;
    color: #333333;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
    font-family: "Montserrat", sans-serif;
}

.suggestion-item:last-child {
    border-bottom: none;
}

/* Efecto al pasar el mouse por encima de una sugerencia (Usa tu dorado sutil) */
.suggestion-item:hover {
    background-color: #F3E5AB; /* Tu color crema corporativo */
    color: #000000;
}
/* =======================================================
ESTILOS GENERALES DEL BOTÓN DE MENÚ (Oculto en PC)
======================================================= */
.menu-toggle {
    display: none;        /* Esto hace que desaparezca al 100% en computadoras */
    background: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: #444444;       
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1002;
    padding: 0;
    margin: 0;
}

/* =======================================================
RESPONSIVE: DISPOSITIVOS MÓVILES (Celulares y Tablets)
======================================================= */
@media (max-width: 768px) {
    header {
        position: absolute;
        padding: 10px 20px;
    }

    .navbar {
        width: 100%;
        height: 60px;
        padding: 0;
    }

    .navbar img {
        height: 50px; 
    }

    /* Aquí activamos el botón SOLO para pantallas móviles */
    .menu-toggle {
        display: block !important;   
        margin-right: 15px;
    }

    /* Forzamos a que el icono de Font Awesome sea blanco y visible */
    .menu-toggle i {
        color: #ffffff !important;
        font-size: 1.8rem;
        display: block;
    }

    /* Menú desplegable lateral Premium */
    .nav-links {
        display: none; /* Lo ocultamos por defecto en celular para que no estorbe */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        right: -100%; 
        width: 75%;  
        height: 100vh;
        background-color: rgba(28, 28, 28, 0.98); 
        gap: 25px;
        transition: right 0.4s ease;
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    }

    /* Cuando JavaScript agregue la clase .active, se mostrará y se deslizará */
    .nav-links.active {
        display: flex;
        right: 0;
    }

    .nav-links li {
        margin: 0;
    }

    .nav-links a {
        color: #ffffff;
        font-size: 1.3rem;
    }

    /* Ocultamos el número de teléfono para que no estorbe en la cabecera del celular */
    .contact-info .whatsapp-link {
        display: none; 
    }
    
    .contact-info {
        display: flex;
        align-items: center;
    }

    /* Ajustes adaptables del Hero */
    .hero h1 {
        font-size: 2rem;
        padding: 0 15px;
    }
    
    .hero p {
        font-size: 1rem;
        padding: 0 20px;
    }

    .search-bar form {
        width: 90%;
        margin: 0 auto;
    }
    
    .search-bar input[type="text"] {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .search-bar button[type="submit"] {
        padding: 0 20px;
        font-size: 0.9rem;
    }
}



