/* ============================================
   YENG - Estilos Principales
   Paleta: Negro y Dorado (OKLCH: 0.65 0.10 75)
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Playfair Display', serif;
    background-color: #0a0a0a;
    color: #e8e8e8;
    line-height: 1.6;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   COLORES PRINCIPALES
   ============================================ */

:root {
    --color-dark: #0a0a0a;
    --color-darker: #000000;
    --color-gold: #d4af37;
    --color-gold-light: #e8d5b7;
    --color-text: #e8e8e8;
    --color-text-secondary: #b0b0b0;
    --color-border: #2a2a2a;
}

/* ============================================
   PORTAL DE ENTRADA
   ============================================ */

.portal-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.portal-section.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.portal-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    z-index: -1;
}

.portal-content {
    text-align: center;
    z-index: 10;
    animation: portalFadeIn 1.2s ease-out;
}

@keyframes portalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.portal-logo {
    margin-bottom: 2rem;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.logo-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.3));
}

.portal-title {
    font-size: 5rem;
    font-weight: 700;
    color: var(--color-gold);
    letter-spacing: 4px;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
}

.portal-subtitle {
    font-size: 1.5rem;
    color: var(--color-text);
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

.portal-divider {
    width: 100px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--color-gold), transparent);
    margin: 2rem auto;
}

.portal-phrases {
    margin: 2rem 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.portal-phrase {
    font-size: 1.3rem;
    color: var(--color-gold);
    font-style: italic;
    font-weight: 400;
    line-height: 1.8;
}

.portal-button {
    background: linear-gradient(135deg, var(--color-gold), #c9a961);
    color: #000;
    border: none;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    margin: 2rem 0;
    transition: all 0.3s ease;
    font-family: 'Playfair Display', serif;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

.portal-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
}

.portal-button:active {
    transform: translateY(-1px);
}

.portal-footer-text {
    font-size: 1rem;
    color: var(--color-text-secondary);
    font-style: italic;
    font-weight: 400;
    margin-top: 2rem;
}

/* ============================================
   CONTENIDO PRINCIPAL
   ============================================ */

.main-content {
    transition: opacity 0.8s ease;
    display: none;
}

.main-content.hidden {
    display: none;
}

/* ============================================
   HEADER Y NAVEGACIÓN
   ============================================ */

.header {
    position: sticky;
    top: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    z-index: 100;
    padding: 1.5rem 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.header-logo:hover {
    opacity: 0.8;
}

.header-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.header-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-gold);
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--color-text);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-gold);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--color-gold);
}

.nav-link:hover:after {
    width: 100%;
}

/* ============================================
   CONTENEDOR GENERAL
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.grid-image {
    display: flex;
    justify-content: center;
}

.section-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.1);
    transition: all 0.3s ease;
}

.section-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 80px rgba(212, 175, 55, 0.2);
}

/* ============================================
   SECCIONES
   ============================================ */

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.text-center {
    text-align: center;
}

.section-text {
    font-size: 1.1rem;
    color: var(--color-text);
    line-height: 1.8;
}

.section-text p {
    margin-bottom: 1.5rem;
}

.italic-accent {
    font-style: italic;
    color: var(--color-gold);
    font-weight: 600;
}

.emphasis {
    color: var(--color-gold);
    font-weight: 600;
}

/* ============================================
   FORMACIÓN DESTACADA
   ============================================ */

.formation-highlight {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05), rgba(212, 175, 55, 0.02));
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 3rem 0;
    margin: 3rem 0;
}

.formation-highlight-content {
    text-align: center;
}

.formation-date {
    font-size: 1.2rem;
    color: var(--color-gold);
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.formation-description {
    font-size: 1.1rem;
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.formation-description p {
    margin-bottom: 1rem;
}

.formation-emphasis {
    color: var(--color-gold);
    font-weight: 600;
}

/* ============================================
   SECCIÓN QUÉ ES YENG
   ============================================ */

.section-que-es {
    padding: 5rem 0;
    border-bottom: 1px solid var(--color-border);
}

/* ============================================
   SECCIÓN LA SESIÓN
   ============================================ */

.section-sesion {
    padding: 5rem 0;
    border-bottom: 1px solid var(--color-border);
}

.session-items {
    margin: 2rem 0;
}

.session-item {
    background: rgba(212, 175, 55, 0.05);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--color-gold);
    border-radius: 4px;
}

.session-item h4 {
    color: var(--color-gold);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.session-item p {
    color: var(--color-text);
    font-size: 1rem;
}

.session-info {
    background: rgba(212, 175, 55, 0.02);
    padding: 2rem;
    border: 1px solid var(--color-border);
    margin-top: 2rem;
    border-radius: 4px;
}

.session-info p {
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.label {
    color: var(--color-gold);
    font-weight: 600;
}

/* ============================================
   SECCIÓN FORMACIONES
   ============================================ */

.section-formaciones {
    padding: 5rem 0;
    border-bottom: 1px solid var(--color-border);
}

.formation-card {
    background: rgba(212, 175, 55, 0.03);
    border: 1px solid var(--color-border);
    padding: 2.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.formation-card:hover {
    border-color: var(--color-gold);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.1);
}

.formation-card h3 {
    font-size: 1.8rem;
    color: var(--color-gold);
    margin-bottom: 0.5rem;
}

.formation-card .subtitle {
    color: var(--color-text-secondary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.formation-text {
    color: var(--color-text);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.formation-subsection {
    margin: 1.5rem 0;
}

.formation-subsection h4 {
    color: var(--color-gold);
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.formation-subsection p,
.formation-subsection ul {
    color: var(--color-text);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.formation-subsection ul {
    margin-left: 1.5rem;
}

.formation-subsection li {
    margin-bottom: 0.5rem;
}

.formation-details {
    background: rgba(212, 175, 55, 0.05);
    padding: 1.5rem;
    margin-top: 1.5rem;
    border-left: 3px solid var(--color-gold);
    border-radius: 4px;
}

.formation-details p {
    color: var(--color-text);
    font-size: 1rem;
    margin-bottom: 0.8rem;
}

.small-text {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

/* ============================================
   MENCIÓN SECUNDARIA DE FORMACIÓN
   ============================================ */

.formation-secondary {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(212, 175, 55, 0.03));
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.secondary-text {
    font-size: 1.3rem;
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.secondary-link {
    color: var(--color-gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.secondary-link:hover {
    text-decoration: underline;
}

/* ============================================
   SECCIÓN BLOG
   ============================================ */

.section-blog {
    padding: 5rem 0;
    border-bottom: 1px solid var(--color-border);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.blog-card {
    background: rgba(212, 175, 55, 0.03);
    border: 1px solid var(--color-border);
    padding: 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.blog-card:hover {
    border-color: var(--color-gold);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.15);
}

.blog-card h3 {
    font-size: 1.4rem;
    color: var(--color-gold);
    margin-bottom: 0.8rem;
}

.blog-category {
    color: var(--color-gold);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-card p {
    color: var(--color-text);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.blog-link {
    color: var(--color-gold);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.blog-link:hover {
    text-decoration: underline;
}

/* ============================================
   SECCIÓN CONTACTO
   ============================================ */

.section-contacto {
    padding: 5rem 0;
    border-bottom: 1px solid var(--color-border);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 3rem 0;
}

.contact-form-section h3 {
    font-size: 1.5rem;
    color: var(--color-gold);
    margin-bottom: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--color-text);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    background: rgba(212, 175, 55, 0.08);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.form-description {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.contact-info {
    text-align: center;
    padding: 2rem;
    background: rgba(212, 175, 55, 0.03);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    margin-top: 2rem;
}

.contact-info p {
    color: var(--color-text);
    font-size: 1rem;
}

/* ============================================
   BOTONES
   ============================================ */

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 4px;
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-gold), #c9a961);
    color: #000;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid var(--color-border);
    padding: 3rem 0;
    text-align: center;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.social-link {
    color: var(--color-gold);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
}

.social-link:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--color-gold);
    transform: translateY(-3px);
}

.footer-text {
    color: var(--color-text);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.footer-description {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

/* ============================================
   BOTÓN FLOTANTE WHATSAPP
   ============================================ */

.whatsapp-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366, #20ba5a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    z-index: 50;
}

.whatsapp-button:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-button:active {
    transform: translateY(-2px) scale(1.05);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .portal-title {
        font-size: 3rem;
    }

    .portal-subtitle {
        font-size: 1.2rem;
    }

    .portal-phrase {
        font-size: 1.1rem;
    }

    .header-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .nav-menu {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .grid-2-cols {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .section-text {
        font-size: 1rem;
    }

    .formation-date {
        font-size: 1rem;
    }

    .formation-description {
        font-size: 1rem;
    }

    .whatsapp-button {
        width: 50px;
        height: 50px;
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .whatsapp-button svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .portal-title { font-size: 1.8rem; }
    .portal-subtitle { font-size: 0.85rem; }
    .portal-phrase { font-size: 0.9rem; }
    .logo-img { width: 50px; height: 50px; }
    .portal-button { padding: 0.7rem 1.2rem; font-size: 0.85rem; }
    .header { padding: 0.6rem 0.8rem; }
    .header-logo-img { width: 35px; height: 35px; }
    .container { padding: 0 0.6rem; }
    .section-title { font-size: 1.2rem; }
    .section-text { font-size: 0.85rem; line-height: 1.4; }
    .section-image { max-width: 100%; height: auto; }
    .grid-2-cols { grid-template-columns: 1fr; gap: 1.2rem; }
    .session-item { padding: 0.8rem; margin-bottom: 0.8rem; }
    .session-title { font-size: 1rem; }
    .formation-card { padding: 1rem; margin-bottom: 1.2rem; }
    .formation-title { font-size: 1.1rem; }
    .formation-info { grid-template-columns: 1fr; gap: 0.6rem; }
    .formation-info-item { padding: 0.6rem; font-size: 0.85rem; }
    .blog-grid { grid-template-columns: 1fr; gap: 1.2rem; }
    .blog-card { padding: 1rem; }
    .blog-title { font-size: 1.05rem; }
    .blog-link { font-size: 0.85rem; }
    .contact-grid { grid-template-columns: 1fr; gap: 1.2rem; }
    .form-group { margin-bottom: 0.8rem; }
    input, textarea { font-size: 1rem; padding: 0.7rem; }
    .btn-submit { padding: 0.7rem; font-size: 0.9rem; }
    .whatsapp-button { width: 50px; height: 50px; bottom: 1rem; right: 1rem; }
    .whatsapp-button svg { width: 24px; height: 24px; }
    .footer { padding: 1.2rem 0.8rem; font-size: 0.8rem; }
}

/* ============================================
   UTILIDADES
   ============================================ */

.hidden {
    display: none !important;
}

/* ============================================
   ESTILOS PARA DISPLAY DIRECTO
   ============================================ */
.portal-section[style*="display: none"],
.main-content[style*="display: none"] {
    display: none !important;
}

.portal-section[style*="display: block"],
.main-content[style*="display: block"] {
    display: block !important;
}
