/*
Theme Name: CongresoIB
Theme URI: https://congresoib.com
Author: Victor
Description: Tema profesional para Asesoría de Tesis Perú
Version: 1.0
*/

/************************************************************
   ESTILO GENERAL
************************************************************/
body {
    font-family: 'Inter', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f3f6fc;
    color: #1c1e21;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: #0f1e45;
    margin-bottom: 15px;
}

p {
    font-size: 16px;
    margin-bottom: 15px;
    color: #333;
}

a {
    text-decoration: none;
}

section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    padding: 0 20px;
}

.section-header p {
    font-size: 17px;
    opacity: 0.8;
}

/************************************************************
   🔵 TOPBAR PROFESIONAL
************************************************************/
.topbar {
    background: #00163a;
    color: #ffffff;
    padding: 6px 0;
    font-size: 14px;
    letter-spacing: 0.2px;
    text-align: right;
    padding-right: 25px;
}

.topbar a {
    color: #ffd84d;
    font-weight: 600;
    text-decoration: none;
    margin-left: 15px;
}

.topbar a:hover {
    text-decoration: underline;
}

/************************************************************
   🔵 HEADER PRINCIPAL + LOGO + MENÚ
************************************************************/
.site-header {
    background: #ffffff;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: 0.25s ease;
}

/* Contenedor del logo + menú + botón WhatsApp */
.header-container {
    max-width: 1350px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 10px 25px;
}

/* LOGO: reducido para que deje espacio al menú */
.site-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.site-logo img {
    display: block;
    max-height: 44px;   /* ALTURA DEL LOGO */
    max-width: 220px;   /* ANCHO MÁXIMO DEL LOGO */
    width: auto;
    height: auto;
}

/* MENÚ ocupa el resto del espacio, alineado a la derecha */
.main-menu {
    flex: 1;
}

.main-menu ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    gap: 34px;
    margin: 0;
    padding: 0;
}

.main-menu ul li {
    position: relative;
}

.main-menu ul li a {
    color: #002054;
    text-decoration: none;
    font-weight: 600;
    font-size: 17px;
    padding-bottom: 4px;
    transition: 0.25s ease;
}

.main-menu ul li a:hover {
    color: #004aad;
}

.main-menu ul li a::after {
    content: "";
    width: 0;
    height: 2px;
    background: #004aad;
    position: absolute;
    left: 0;
    bottom: -3px;
    transition: 0.3s;
}

.main-menu ul li a:hover::after {
    width: 100%;
}

/* Botón WhatsApp del header se mantiene como está */
.header-cta {
    background: #ffd84d;
    color: #000;
    padding: 12px 22px;
    border-radius: 10px;
    font-weight: 800;
    text-decoration: none;
    border: 2px solid #ffd84d;
    font-size: 17px;
    transition: 0.25s ease;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 8px;
}
.header-cta:hover {
    background: #ffcc00;
    border-color: #ffcc00;
    transform: translateY(-2px);
}

/* Menú móvil (se mantiene igual) */
@media (max-width: 950px) {
    .main-menu ul {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
        font-size: 28px;
        cursor: pointer;
        color: #002054;
    }

    .mobile-menu.open {
        display: block;
        background: #ffffff;
        padding: 20px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    }

    .mobile-menu ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-menu ul li {
        padding: 12px 0;
        border-bottom: 1px solid #e6e6e6;
    }

    .mobile-menu ul li a {
        color: #002054;
        font-size: 18px;
        font-weight: 600;
    }

    .header-cta {
        display: none;
    }
}

/************************************************************
   🔵 MENÚ PRINCIPAL PROFESIONAL
************************************************************/
.main-menu ul {
    list-style: none;
    display: flex;
    gap: 34px;
    margin: 0;
    padding: 0;
}

.main-menu ul li {
    position: relative;
}

.main-menu ul li a {
    color: #002054;
    text-decoration: none;
    font-weight: 600;
    font-size: 17px;
    padding-bottom: 4px;
    transition: 0.25s ease;
}

.main-menu ul li a:hover {
    color: #004aad;
}

.main-menu ul li a::after {
    content: "";
    width: 0;
    height: 2px;
    background: #004aad;
    position: absolute;
    left: 0;
    bottom: -3px;
    transition: 0.3s;
}

.main-menu ul li a:hover::after {
    width: 100%;
}

/************************************************************
   🔵 CTA WHATSAPP (HEADER)
************************************************************/
.header-cta {
    background: #ffd84d;
    color: #000;
    padding: 12px 22px;
    border-radius: 10px;
    font-weight: 800;
    text-decoration: none;
    border: 2px solid #ffd84d;
    font-size: 17px;
    transition: 0.25s ease;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-cta:hover {
    background: #ffcc00;
    border-color: #ffcc00;
    transform: translateY(-2px);
}

/************************************************************
   🔵 MENÚ MÓVIL
************************************************************/
.mobile-menu-btn {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: #002054;
}

.mobile-menu {
    display: none;
}

@media (max-width: 950px) {
    .main-menu ul {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-menu.open {
        display: block;
        background: #ffffff;
        padding: 20px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    }

    .mobile-menu ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-menu ul li {
        padding: 12px 0;
        border-bottom: 1px solid #e6e6e6;
    }

    .mobile-menu ul li a {
        color: #002054;
        font-size: 18px;
        font-weight: 600;
    }

    .header-cta {
        display: none;
    }
}

/************************************************************
   HERO – PRESENTACIÓN
************************************************************/
.hero-premium {
    background: linear-gradient(120deg, #00286e, #003b9a);
    color: #fff;
    padding: 80px 0 100px 0;
}

.hero-container {
    max-width: 1300px;
    margin: auto;
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 40px;
    padding: 0 20px;
}

.hero-content {
    align-self: center;
}

.hero-side {
    align-self: stretch;
}

.hero-title {
    font-size: 42px;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-title .keyword {
    color: #ffe05a;
    display: block;
}

.headline-2 {
    display: block;
}

.hero-subtitle {
    font-size: 20px;
    color: #e9eeff;
    margin-bottom: 25px;
}

/* Badges */
.hero-badges {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.badge-number {
    font-size: 28px;
    font-weight: 800;
    color: #ffe05a;
}

.badge-text {
    color: #e9eeff;
}

/************************************************************
   BOTONES HERO
************************************************************/
.hero-cta-group {
    margin-top: 20px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 14px 26px;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.25s ease;
}

/* Botón principal – Cotizar */
.btn-primary {
    background: #ffd84d;
    color: #000;
    border: 2px solid #ffd84d;
}
.btn-primary:hover {
    background: #ffcc00;
    border-color: #ffcc00;
    transform: translateY(-2px);
}

/* Botón secundario – Llamar gratis */
.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}
.btn-secondary:hover {
    background: #ffffff;
    color: #00286e;
    transform: translateY(-2px);
}

/* Texto “Trabajamos con estudiantes de universidades…” */
.hero-small {
    margin-top: 20px;
    font-size: 15px;
    color: #e9eeff;
    opacity: 0.9;
    max-width: 650px;
}

/************************************************************
   FORMULARIO HERO
************************************************************/
.hero-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.10);
}

.hero-card h2 {
    margin-bottom: 10px;
    font-size: 24px;
    color: #002050;
}

.cotizador-form input,
.cotizador-form select,
.cotizador-form textarea {
    width: 100%;
    padding: 13px;
    border-radius: 8px;
    border: 1px solid #ccd6e0;
    margin-bottom: 15px;
    font-size: 15px;
}

.cotizador-form button {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    background: #ffd84d;
    color: #000;
    font-size: 18px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: 0.2s ease;
}

.cotizador-form button:hover {
    background: #ffcc00;
}

/************************************************************
   SERVICIOS
************************************************************/
.services-grid {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    padding: 0 20px;
}

.service-card {
    background: #f9fbff;
    border-radius: 15px;
    padding: 30px 25px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transition: 0.25s;
}

.service-card:hover {
    transform: translateY(-6px);
}

.service-price {
    font-size: 20px;
    color: #004aad;
    font-weight: 700;
}

.service-list {
    padding-left: 18px;
    margin-bottom: 20px;
}

.btn-outline {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 10px;
    border: 2px solid #004aad;
    color: #004aad;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: 0.25s ease;
}

.btn-outline:hover {
    background: #004aad;
    color: #ffffff;
}

/************************************************************
   BENEFICIOS – TARJETAS SEO
************************************************************/
.benefits-section {
    background: #f7f9ff;
}

.benefits-grid {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 0 20px;
}

.benefit-card {
    background: #ffffff;
    padding: 30px 25px;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    text-align: center;
    transition: 0.25s;
    border-top: 4px solid #004aad;
}

.benefit-card:hover {
    transform: translateY(-6px);
}

.benefit-card h3 {
    font-size: 20px;
    color: #002054;
    margin-bottom: 10px;
}

.benefit-card p {
    color: #444;
}

/************************************************************
   TESTIMONIOS
************************************************************/
.testimonials-grid {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 0 20px;
}

.testimonial-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.testimonial-stars {
    color: #ffd84d;
    font-size: 18px;
}

/************************************************************
   BLOQUE SEO LARGO – ANCHO CONTROLADO
************************************************************/
.seo-text {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/************************************************************
   PREGUNTAS FRECUENTES
************************************************************/
.faq-list {
    max-width: 900px;
    margin: auto;
    padding: 0 25px;
}

.faq-list details {
    background: #fff;
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #d7e1ef;
}

.faq-list summary {
    font-weight: 700;
    font-size: 17px;
}

/************************************************************
   FOOTER
************************************************************/
.site-footer {
    background: #001a4d;
    color: #ffffff;
    padding: 50px 0 20px 0;
}

.footer-container {
    max-width: 1300px;
    margin: auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    padding: 0 20px;
}

.footer-description p {
    font-size: 15px;
    opacity: 0.85;
}

.footer-contact a {
    color: #ffd84d;
    font-weight: 700;
}

@media(max-width: 800px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/************************************************************
   BOTÓN WHATSAPP FLOTANTE
************************************************************/
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #25d366;
    color: #ffffff;
    padding: 14px 22px;
    font-size: 18px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    z-index: 99999;
}

.whatsapp-float:hover {
    background: #1ebe5f;
}

/************************************************************
   RESPONSIVE HERO / GRIDS
************************************************************/
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
    }

    .hero-side {
        order: -1;
    }

    .services-grid,
    .benefits-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    .services-grid,
    .benefits-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 32px;
    }
}

/************************************************************
   RESPONSIVE HERO – ORDEN CORRECTO EN MÓVIL
************************************************************/
@media (max-width: 768px) {

    /* El héroe se apila en una sola columna */
    .hero-container {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    /* 1️⃣ PRIMERO el texto */
    .hero-content {
        order: 1 !important;
    }

    /* 2️⃣ DESPUÉS el formulario */
    .hero-side {
        order: 2 !important;
        margin-top: 10px;
    }
}
