/* =============================================
   VARIABLES & RESET
============================================= */
:root {
    --primary-color: #2c3e50;
    --primary-dark: #1a252f;
    --primary-light: #34495e;
    --secondary-color: #8e44ad;
    --secondary-light: #9b59b6;
    --accent-color: #e74c3c;
    --accent-light: #ff6b6b;
    --text-color: #333;
    --light-color: #f5f5f5;
    --dark-color: #1a252f;
    --gold-color: #f1c40f;
    --success-color: #2ecc71;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: var(--text-color);
    background-color: #f9f9f9;
    line-height: 1.6;
}

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

/* =============================================
   HEADER
============================================= */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
}

.logo .lex { color: var(--light-color); }
.logo .academia { color: var(--accent-color); }

nav ul {
    display: flex;
    list-style: none;
}

nav ul li { margin-left: 1.5rem; }

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s;
}

nav ul li a:hover { color: var(--accent-color); }
nav ul li a:hover::after { width: 100%; }

.auth-buttons { display: flex; gap: 0.8rem; }

/* =============================================
   BOTONES
============================================= */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(231,76,60,0.3);
}

.btn:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231,76,60,0.4);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid white;
    box-shadow: 0 4px 15px rgba(255,255,255,0.2);
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(255,255,255,0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    box-shadow: none;
}

.btn-outline:hover {
    background-color: var(--accent-color);
    color: white;
}

/* =============================================
   TÍTULO DE SECCIÓN
============================================= */
.section-title {
    text-align: center;
    margin-bottom: 3.5rem;
    color: var(--primary-color);
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--accent-color), var(--secondary-color));
    border-radius: 3px;
}

.section-title p {
    font-size: 1.1rem;
    color: #777;
    max-width: 700px;
    margin: 1.5rem auto 0;
}

/* =============================================
   HERO
============================================= */
.hero {
    background: linear-gradient(135deg, #2c3e50, #4a6491);
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    margin-top: 70px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(52,152,219,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(231,76,60,0.1) 0%, transparent 50%);
    z-index: 1;
}

.hero-content {
    max-width: 860px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
    padding: 4rem 1rem;
}


.hero h1 {
    font-size: 3.4rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.hero h1 span { color: var(--accent-light); }

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero-icons {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.04;
    overflow: hidden;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    font-size: 3rem;
    color: white;
    animation: float 10s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%       { transform: translateY(-20px) rotate(5deg); }
}

/* =============================================
   BARRA DE CONFIANZA
============================================= */
.trust-bar {
    background: white;
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.trust-bar .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #555;
    font-size: 0.95rem;
}

.trust-item i { color: var(--secondary-color); font-size: 1.2rem; }

/* =============================================
   CATEGORÍAS
============================================= */
.categories {
    padding: 6rem 0;
    background: white;
    position: relative;
}

.categories::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 90% 10%, rgba(142,68,173,0.05) 0%, transparent 60%);
    pointer-events: none;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 1.5rem;
}

.category-card {
    text-align: center;
    padding: 1.8rem 1rem;
    border-radius: 15px;
    background: var(--light-color);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: var(--primary-color);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.category-card i {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    display: block;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s;
}

.category-card:hover i { transform: scale(1.2); }
.category-card span { font-size: 0.9rem; font-weight: 600; }

/* =============================================
   CURSOS DESTACADOS
============================================= */
.courses {
    padding: 6rem 0;
    background-color: #f5f7fa;
    position: relative;
}

.courses::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(231,76,60,0.03) 0%, transparent 70%),
        linear-gradient(45deg,  rgba(52,152,219,0.03) 0%, transparent 70%);
    pointer-events: none;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.course-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.course-banner {
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.course-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 30%, rgba(255,255,255,0.3) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(0,0,0,0.1) 0%, transparent 50%);
}

.course-banner i {
    font-size: 4.5rem;
    position: relative;
    z-index: 1;
    transition: transform 0.4s;
}

.course-card:hover .course-banner i { transform: scale(1.1); }

.course-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--gold-color);
    color: var(--dark-color);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.7rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.course-content {
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.course-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.7rem;
}

.course-meta span { display: flex; align-items: center; gap: 0.3rem; }

.course-content h3 {
    color: var(--primary-color);
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
    line-height: 1.3;
    min-height: 3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-content p {
    color: #777;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.2rem;
    min-height: 4.05rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.course-price-row {
    margin-bottom: 0.8rem;
}

.course-actions {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: auto;
}

.course-price {
    font-weight: 700;
    font-size: 1.3rem;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =============================================
   DIPLOMADOS
============================================= */
.diplomados {
    padding: 6rem 0;
    background: white;
    position: relative;
    overflow: hidden;
}

.diplomados::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 50%, rgba(231,76,60,0.05) 0%, transparent 50%);
    pointer-events: none;
}

.diplomados-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 2rem;
}

.diplomado-card {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid var(--light-color);
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
    background: white;
}

.diplomado-card:hover {
    border-color: var(--secondary-color);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(142,68,173,0.1);
}

.diplomado-icon {
    width: 70px;
    height: 70px;
    min-width: 70px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
}

.diplomado-info h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
    min-height: 2.86rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.diplomado-info p {
    color: #777;
    font-size: 0.875rem;
    margin-bottom: 0.8rem;
    min-height: 3.94rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.diplomado-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.tag {
    background: rgba(142,68,173,0.08);
    color: var(--secondary-color);
    font-size: 0.75rem;
    padding: 0.2rem 0.7rem;
    border-radius: 50px;
    font-weight: 500;
}

/* =============================================
   CARACTERÍSTICAS / POR QUÉ ELEGIRNOS
============================================= */
.features {
    padding: 6rem 0;
    background-color: #f5f7fa;
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    padding: 2.5rem;
    background: white;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.2) 100%);
    z-index: 0;
}

.feature-card > * { position: relative; z-index: 1; }

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.feature-card i {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s;
}

.feature-card:hover i { transform: scale(1.2); }

.feature-card h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.feature-card p { color: #777; font-size: 0.95rem; }

/* =============================================
   SOBRE NOSOTROS
============================================= */
.about {
    padding: 6rem 0;
    background: white;
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 10%, rgba(231,76,60,0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 90%, rgba(52,152,219,0.05) 0%, transparent 50%);
    pointer-events: none;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-visual {
    position: relative;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    overflow: hidden;
}

.about-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 30%, rgba(255,255,255,0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(0,0,0,0.1) 0%, transparent 50%);
}

.about-visual-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 2rem;
    width: 100%;
    height: 100%;
}

.visual-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 2.5rem;
    transition: transform 0.3s, color 0.3s;
}

.visual-icon:hover { transform: scale(1.2); color: white; }

.about-content h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 15px;
}

.about-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--accent-color), var(--secondary-color));
    border-radius: 3px;
}

.about-content p { color: #555; margin-bottom: 1.2rem; }

.about-points { list-style: none; margin: 1.5rem 0 2rem; }

.about-points li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    color: #555;
}

.about-points li i { color: var(--success-color); margin-top: 3px; }

/* =============================================
   TESTIMONIOS
============================================= */
.testimonials {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.04) 0%, transparent 50%);
    z-index: 1;
}

.testimonials .section-title,
.testimonials .section-title h2 { color: white; }

.testimonials .section-title p { color: rgba(255,255,255,0.8); }

.testimonials .section-title h2::after {
    background: linear-gradient(to right, var(--accent-color), var(--gold-color));
}

.testimonials .section-title,
.testimonials-grid { position: relative; z-index: 2; }

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: rgba(255,255,255,0.08);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.stars { color: var(--gold-color); margin-bottom: 1rem; font-size: 0.95rem; }

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.testimonial-author { display: flex; align-items: center; gap: 0.8rem; }

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
}

.author-details h4 { font-size: 0.95rem; margin-bottom: 0.1rem; }
.author-details small { opacity: 0.7; font-size: 0.8rem; }

.testimonial-quote {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 3rem;
    opacity: 0.15;
}

/* =============================================
   CONTACTO
============================================= */
.contact {
    padding: 6rem 0;
    background: #f5f7fa;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 90% 10%, rgba(142,68,173,0.05) 0%, transparent 60%),
        radial-gradient(circle at 10% 90%, rgba(231,76,60,0.05) 0%, transparent 60%);
    pointer-events: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.contact-form-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-form-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    color: var(--text-color);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(142,68,173,0.1);
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    max-height: 220px;
}

.contact-info { display: flex; flex-direction: column; justify-content: center; }

.contact-info h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 15px;
}

.contact-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--accent-color), var(--secondary-color));
    border-radius: 3px;
}

.contact-info > p { color: #555; margin-bottom: 2rem; }

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s;
}

.contact-item:hover { transform: translateX(5px); }

.contact-item-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: rgba(142,68,173,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 1.2rem;
    transition: background 0.3s, color 0.3s;
}

.contact-item:hover .contact-item-icon {
    background: var(--secondary-color);
    color: white;
}

.contact-item-text strong { display: block; color: var(--primary-color); font-size: 0.9rem; }
.contact-item-text span { color: #777; font-size: 0.9rem; }

/* =============================================
   NEWSLETTER
============================================= */
.newsletter {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.newsletter::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0,0,0,0.05) 0%, transparent 50%);
}

.newsletter-content { position: relative; z-index: 1; }

.newsletter h2 { font-size: 2rem; margin-bottom: 0.8rem; }

.newsletter p {
    margin-bottom: 2rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    position: relative;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.newsletter-form button {
    position: absolute;
    right: 5px;
    top: 5px;
    padding: 0.7rem 1.5rem;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
}

.newsletter-form button:hover { background: #c0392b; }

/* =============================================
   FOOTER
============================================= */
footer {
    background: var(--dark-color);
    color: white;
    padding: 5rem 0 1.5rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 10%, rgba(231,76,60,0.05) 0%, transparent 30%),
        radial-gradient(circle at 90% 90%, rgba(52,152,219,0.05) 0%, transparent 30%);
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.footer-brand .logo { font-size: 1.6rem; margin-bottom: 1rem; display: inline-flex; }
.footer-brand p { opacity: 0.7; font-size: 0.9rem; margin-bottom: 1.5rem; line-height: 1.7; }

.footer-column h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(to right, var(--accent-color), var(--secondary-color));
    border-radius: 2px;
}

.footer-links { list-style: none; }

.footer-links li { margin-bottom: 0.7rem; transition: transform 0.3s; }
.footer-links li:hover { transform: translateX(5px); }

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.3s;
}

.footer-links a i { font-size: 0.75rem; }
.footer-links a:hover { color: var(--accent-color); }

.social-links {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.2rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

.footer-contact-item i { color: var(--accent-color); margin-top: 3px; }

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.6;
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
}

/* =============================================
   FLOATING ELEMENTS
============================================= */
.floating-elements {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

.floating-element {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0.15;
    animation: float-element 20s infinite linear;
}

@keyframes float-element {
    0%   { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10%  { opacity: 0.15; }
    90%  { opacity: 0.15; }
    100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 1024px) {
    .footer-content { grid-template-columns: 1fr 1fr; }
    .diplomados-list { grid-template-columns: 1fr; }
}

@media (max-width: 992px) {
    .hero h1 { font-size: 2.5rem; }
    .about-grid,
    .contact-grid { grid-template-columns: 1fr; }
    .header-container { flex-direction: column; text-align: center; gap: 0.8rem; }
    nav ul { margin: 0.5rem 0; flex-wrap: wrap; justify-content: center; }
    nav ul li { margin: 0.3rem 0.6rem; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .section-title h2 { font-size: 2rem; }
    .about-visual { height: 280px; }
    .newsletter-form { flex-direction: column; }
    .newsletter-form button { position: static; width: 100%; margin-top: 0.8rem; padding: 0.9rem; }
    .footer-content { grid-template-columns: 1fr; gap: 2rem; }
    .auth-buttons { justify-content: center; }
    .diplomado-card { flex-direction: column; }
    .trust-bar .container { gap: 1.5rem; }
}

/* =============================================
   AUTH PAGES (login / registro)
============================================= */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2c3e50, #4a6491);
    padding: 2rem 1rem;
    position: relative;
}

.auth-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(52,152,219,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(231,76,60,0.1) 0%, transparent 50%);
}

.auth-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.auth-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-logo .logo { font-size: 2rem; }
.auth-logo .logo .lex    { color: var(--primary-color); }
.auth-logo .logo .academia { color: var(--accent-color); }

.auth-title {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-title h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 0.4rem;
}

.auth-title p { color: #777; font-size: 0.95rem; }

/* Dos columnas en registro */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Alerts */
.alert {
    padding: 0.9rem 1.2rem;
    border-radius: 8px;
    margin-bottom: 1.4rem;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    line-height: 1.5;
}

.alert i { margin-top: 2px; flex-shrink: 0; }

.alert-error {
    background: rgba(231,76,60,0.08);
    color: #c0392b;
    border: 1px solid rgba(231,76,60,0.2);
}

.alert-success {
    background: rgba(46,204,113,0.08);
    color: #1e8449;
    border: 1px solid rgba(46,204,113,0.2);
}

/* Mostrar/ocultar contraseña */
.password-toggle { position: relative; }
.password-toggle input { padding-right: 3rem; }
.password-toggle .toggle-btn {
    position: absolute;
    right: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #aaa;
    font-size: 1rem;
    padding: 0.2rem;
    transition: color 0.2s;
}
.password-toggle .toggle-btn:hover { color: var(--primary-color); }

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: #777;
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover { text-decoration: underline; }

/* =============================================
   DASHBOARD
============================================= */

/* Dropdown usuario */
.user-dropdown {
    position: relative;
}

.user-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: transparent;
    border: 2px solid white;
    color: #fff;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255,255,255,0.2);
    user-select: none;
}

.user-dropdown-trigger:hover {
    background-color: white;
    color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(255,255,255,0.3);
}

.user-dropdown-trigger .fa-chevron-down {
    font-size: 0.75rem;
    transition: transform 0.2s;
}

.user-dropdown.open .fa-chevron-down {
    transform: rotate(180deg);
}

.user-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    background: #1a2340;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    min-width: 170px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    z-index: 9999;
}

.user-dropdown.open .user-dropdown-menu {
    display: block;
}

.user-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.1rem;
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    transition: background 0.15s;
    text-decoration: none;
}

.user-dropdown-menu a:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.user-dropdown-menu .dropdown-logout {
    border-top: 1px solid rgba(255,255,255,0.08);
    color: #e74c3c;
}

.user-dropdown-menu .dropdown-logout:hover {
    background: rgba(231,76,60,0.12);
}


/* =============================================
   RESPONSIVE AUTH
============================================= */
@media (max-width: 520px) {
    .auth-card { padding: 2rem 1.4rem; }
    .form-row  { grid-template-columns: 1fr; }
}


