/* Reset y Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Paleta de colores según guía de marca */
    --color-light-blue: #AAD7D9;
    --color-medium-teal: #77ACB3;
    --color-light-beige: #E5E1DA;
    --color-cream: #FBF9F1;
    
    /* Colores principales */
    --primary-color: #77ACB3;
    --primary-dark: #5a8a91;
    --primary-light: #AAD7D9;
    --secondary-color: #AAD7D9;
    --accent-color: #77ACB3;
    
    /* Colores de fondo */
    --bg-light: #FBF9F1;
    --bg-white: #ffffff;
    --bg-cream: #FBF9F1;
    --bg-beige: #E5E1DA;
    --bg-dark: #77ACB3;
    
    /* Colores de texto */
    --text-dark: #2a2a2a;
    --text-medium: #4a4a4a;
    --text-light: #6a6a6a;
    --text-white: #ffffff;
    --text-cream: #FBF9F1;
    
    /* Bordes y sombras */
    --border-color: #E5E1DA;
    --border-light: #FBF9F1;
    --border-cream: #E5E1DA;
    --shadow-sm: 0 2px 8px rgba(119, 172, 179, 0.08);
    --shadow-md: 0 4px 16px rgba(119, 172, 179, 0.12);
    --shadow-lg: 0 8px 32px rgba(119, 172, 179, 0.16);
    --shadow-xl: 0 12px 48px rgba(119, 172, 179, 0.2);
    
    /* Transiciones */
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
}

body {
    font-family: 'Fraunces', serif;
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Fuente alternativa moderna (similar a TT CHOCOLATES) */
.font-modern {
    font-family: 'Chivo', sans-serif;
}

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

/* Navegación */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(251, 249, 241, 0.85);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    box-shadow: 0 4px 20px rgba(119, 172, 179, 0.12);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(229, 225, 218, 0.5);
}

.navbar.scrolled {
    box-shadow: 0 6px 24px rgba(119, 172, 179, 0.18);
    background: rgba(251, 249, 241, 0.92);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-img {
    height: 60px;
    width: auto;
    transition: var(--transition);
    object-fit: contain;
}

.logo-img:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.logo-text {
    color: var(--primary-color);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    font-family: 'Fraunces', serif;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-medium);
    font-weight: 400;
    transition: var(--transition);
    position: relative;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.875rem;
    font-family: 'Chivo', sans-serif;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: var(--transition);
}

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

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

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FBF9F1 0%, #E5E1DA 25%, #AAD7D9 60%, #77ACB3 100%);
    color: var(--text-dark);
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(119, 172, 179, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(170, 215, 217, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 20%, rgba(229, 225, 218, 0.2) 0%, transparent 40%);
    pointer-events: none;
    animation: gradientShift 15s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.05);
    z-index: 1;
}

/* Elementos gráficos decorativos según guía de marca */
.graphic-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

/* Rectángulo redondeado horizontal */
.graphic-rectangle {
    position: absolute;
    top: 15%;
    left: 8%;
    width: 140px;
    height: 45px;
    background: #77ACB3;
    border-radius: 25px;
    opacity: 0.7;
    animation: float 8s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(119, 172, 179, 0.3);
}

/* Hexágonos superpuestos */
.graphic-hexagons {
    position: absolute;
    top: 25%;
    right: 10%;
    width: 150px;
    height: 150px;
}

.hexagon-1 {
    position: absolute;
    width: 110px;
    height: 110px;
    opacity: 0.6;
    animation: float 7s ease-in-out infinite;
    filter: drop-shadow(0 2px 8px rgba(170, 215, 217, 0.4));
}

.hexagon-2 {
    position: absolute;
    width: 110px;
    height: 110px;
    top: 15px;
    left: 15px;
    opacity: 0.5;
    animation: float 7s ease-in-out infinite 0.5s;
    filter: drop-shadow(0 2px 8px rgba(170, 215, 217, 0.3));
}

/* Forma ondulada con líneas paralelas */
.graphic-waves {
    position: absolute;
    bottom: 20%;
    left: 5%;
    width: 200px;
    height: 70px;
    opacity: 0.6;
    animation: float 9s ease-in-out infinite;
    filter: drop-shadow(0 2px 6px rgba(170, 215, 217, 0.3));
}

.graphic-waves svg {
    width: 100%;
    height: 100%;
}

/* Forma tipo burst/pop */
.graphic-burst {
    position: absolute;
    top: 50%;
    right: 15%;
    width: 100px;
    height: 100px;
}

.burst-shape {
    position: absolute;
    border: 2.5px solid #AAD7D9;
    opacity: 0.5;
    animation: rotate 10s linear infinite;
    filter: drop-shadow(0 2px 6px rgba(170, 215, 217, 0.3));
}

.burst-1 {
    width: 40px;
    height: 60px;
    top: 0;
    left: 30px;
    border-radius: 5px;
    transform: rotate(15deg);
}

.burst-2 {
    width: 50px;
    height: 40px;
    top: 30px;
    left: 10px;
    border-radius: 8px;
    transform: rotate(-20deg);
}

.burst-3 {
    width: 45px;
    height: 50px;
    top: 50px;
    left: 40px;
    border-radius: 6px;
    transform: rotate(35deg);
}

/* Forma tipo splash/hoja */
.graphic-splash {
    position: absolute;
    bottom: 15%;
    right: 8%;
    width: 120px;
    height: 120px;
}

.splash-shape {
    position: absolute;
    background: #77ACB3;
    opacity: 0.6;
    border-radius: 50% 30% 40% 60%;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 3px 12px rgba(119, 172, 179, 0.4);
}

.splash-1 {
    width: 50px;
    height: 60px;
    top: 0;
    left: 20px;
    transform: rotate(-25deg);
}

.splash-2 {
    width: 45px;
    height: 55px;
    top: 30px;
    left: 0;
    transform: rotate(15deg);
    animation-delay: 0.3s;
}

.splash-3 {
    width: 40px;
    height: 50px;
    top: 60px;
    left: 35px;
    transform: rotate(-40deg);
    animation-delay: 0.6s;
}

.splash-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #77ACB3;
    border-radius: 50%;
    top: 80px;
    left: 50px;
    opacity: 0.7;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 2rem;
    animation: fadeInUp 1s ease;
    margin: 0 auto;
    text-align: center;
    width: 100%;
}

.hero-title {
    font-size: 5.5rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: 12px;
    color: #2a2a2a;
    font-family: 'Fraunces', serif;
    text-transform: uppercase;
    position: relative;
    padding: 30px 0;
    display: inline-block;
}

/* Líneas decorativas para el logo (según guía - más fieles al manual) */
.hero-title::before,
.hero-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 1.5px;
    background: #77ACB3;
}

.hero-title::before {
    top: 0;
}

.hero-title::after {
    bottom: 0;
}

.hero-subtitle {
    font-size: 1rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
    font-weight: 300;
    letter-spacing: 6px;
    text-transform: uppercase;
    font-family: 'Chivo', sans-serif;
    opacity: 0.9;
}

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

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-indicator span {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

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

/* Botones */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: 'Chivo', sans-serif;
}

.btn-primary {
    background: #77ACB3;
    color: var(--text-white);
    font-weight: 500;
    box-shadow: var(--shadow-md);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.875rem;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: #5a8a91;
}

.btn-secondary {
    background: transparent;
    color: #77ACB3;
    border: 2px solid #77ACB3;
}

.btn-secondary:hover {
    background: #77ACB3;
    color: var(--text-white);
    transform: translateY(-3px);
}

.btn-small {
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
}

/* Secciones */
section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-title {
    font-size: 3rem;
    font-weight: 300;
    color: var(--text-dark);
    margin-bottom: 1rem;
    letter-spacing: 8px;
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    font-family: 'Fraunces', serif;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-medium);
    font-weight: 300;
    margin-top: 2rem;
    line-height: 1.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Sobre Lexis */
.about {
    background: var(--bg-cream);
}

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

.about-text h3 {
    font-size: 2.25rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-weight: 300;
    line-height: 1.6;
    letter-spacing: 2px;
    font-family: 'Fraunces', serif;
}

.about-text p {
    color: var(--text-medium);
    margin-bottom: 1.25rem;
    line-height: 1.9;
    font-size: 1.05rem;
}

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

.feature-box {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 0;
    border-left: 4px solid var(--primary-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
    position: relative;
}

.feature-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(119, 172, 179, 0.04) 0%, rgba(170, 215, 217, 0.06) 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.feature-box:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 30px rgba(119, 172, 179, 0.2);
    border-left-color: var(--primary-dark);
    border-left-width: 5px;
}

.feature-box:hover::after {
    opacity: 1;
}

.feature-box h4 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-family: 'Fraunces', serif;
}

.feature-box ul {
    list-style: none;
    padding: 0;
}

.feature-box ul li {
    color: var(--text-medium);
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.7;
}

.feature-box ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1;
}

.feature-box p {
    color: var(--text-medium);
    line-height: 1.8;
    margin: 0;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 300;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.875rem;
}

.about-image {
    position: relative;
}

.video-container {
    width: 100%;
    min-height: 400px;
    max-height: 600px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-cream);
    background: var(--bg-cream);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-video {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--bg-beige) 0%, var(--color-light-blue) 50%, var(--secondary-color) 100%);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-medium);
    font-size: 1.125rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-cream);
    letter-spacing: 1px;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Cursos */
.courses {
    background: var(--bg-white);
    position: relative;
    overflow: hidden;
}

/* Elementos gráficos decorativos en sección Cursos */
.courses::before {
    content: '';
    position: absolute;
    top: 10%;
    right: 5%;
    width: 80px;
    height: 80px;
    border: 2px solid #AAD7D9;
    border-radius: 50% 30% 40% 60%;
    opacity: 0.3;
    transform: rotate(-25deg);
    pointer-events: none;
    z-index: 0;
}

.courses::after {
    content: '';
    position: absolute;
    bottom: 15%;
    left: 3%;
    width: 60px;
    height: 30px;
    background: #77ACB3;
    border-radius: 20px;
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
}

.exam-section {
    text-align: center;
    margin-top: 3rem;
    padding: 3rem 2rem;
    background: var(--bg-white);
    border-radius: 0;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-cream);
    position: relative;
    overflow: hidden;
}

.exam-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.exam-text {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.exam-button {
    text-decoration: none;
    font-size: 1.125rem;
    padding: 1rem 2.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.course-card {
    background: var(--bg-cream);
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-cream);
    position: relative;
}

.course-card::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 50px;
    height: 50px;
    border: 2px solid #AAD7D9;
    border-radius: 50% 30% 40% 60%;
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.course-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(119, 172, 179, 0.05) 0%, rgba(170, 215, 217, 0.08) 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.course-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 12px 40px rgba(119, 172, 179, 0.25);
    border-color: var(--primary-color);
}

.course-card:hover::before {
    opacity: 0.5;
    transform: rotate(20deg) scale(1.3);
}

.course-card:hover::after {
    opacity: 1;
}

.course-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.course-image .image-placeholder {
    height: 100%;
    background: linear-gradient(135deg, var(--bg-beige) 0%, var(--color-light-blue) 100%);
    font-weight: 400;
    font-size: 1.25rem;
    color: var(--text-medium);
    letter-spacing: 2px;
}

.course-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.course-card:hover .course-img {
    transform: scale(1.05);
}

/* Imagen alta: centrar y enfocar la parte superior */
.course-img-tall {
    object-position: center top;
}

.course-content {
    padding: 1.5rem;
}

.course-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Fraunces', serif;
}

.course-description {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.course-info {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 2;
}

.course-footer .btn {
    position: relative;
    z-index: 3;
    pointer-events: auto;
}

.course-price {
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--primary-color);
    letter-spacing: 1px;
}

/* Servicios */
.services {
    background: var(--bg-cream);
    position: relative;
    overflow: hidden;
}

/* Elementos gráficos decorativos en sección Servicios */
.services::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 2%;
    width: 100px;
    height: 100px;
    border: 2px solid #AAD7D9;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    opacity: 0.25;
    pointer-events: none;
    z-index: 0;
    animation: float 10s ease-in-out infinite;
}

.services::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: 4%;
    width: 70px;
    height: 70px;
    border: 2px solid #AAD7D9;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
    animation: float 8s ease-in-out infinite 1s;
}

.service-category {
    background: var(--bg-white);
    padding: 3.5rem;
    border-radius: 0;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-cream);
    border-left: 5px solid var(--primary-color);
    width: 100%;
    max-width: 100%;
    overflow: visible;
    position: relative;
    z-index: 1;
}

.service-category::before {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 30px;
    background: linear-gradient(135deg, #77ACB3 0%, #AAD7D9 100%);
    border-radius: 25px;
    opacity: 0.2;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(119, 172, 179, 0.2);
}

.service-category::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(119, 172, 179, 0.03) 0%, rgba(170, 215, 217, 0.05) 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.service-category:hover {
    box-shadow: 0 8px 32px rgba(119, 172, 179, 0.2);
    transform: translateY(-8px);
    border-left-color: var(--primary-dark);
    border-left-width: 6px;
}

.service-category:hover::before {
    opacity: 0.35;
    transform: scale(1.15) rotate(5deg);
}

.service-category:hover::after {
    opacity: 1;
}

.service-category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.service-category-title {
    font-size: 2.25rem;
    font-weight: 300;
    color: var(--text-dark);
    margin: 0;
    letter-spacing: 6px;
    text-transform: uppercase;
    font-family: 'Fraunces', serif;
}

.service-category-badge {
    background: var(--primary-color);
    color: var(--text-white);
    padding: 0.5rem 1.25rem;
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.service-category-description {
    color: var(--text-dark);
    line-height: 1.9;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 400;
    margin-top: 1.5rem;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: block;
}

.interpretation-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.interpretation-item {
    padding: 1.25rem;
    background: var(--bg-light);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    color: var(--text-dark);
    line-height: 1.7;
    transition: var(--transition);
}

.interpretation-item:hover {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    transform: translateX(5px);
}

.interpretation-item strong {
    color: var(--primary-color);
    font-weight: 600;
}

.educational-features {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.feature-item {
    padding: 1.25rem;
    background: var(--bg-light);
    border-radius: 10px;
    color: var(--text-dark);
    font-weight: 500;
    border-left: 4px solid var(--secondary-color);
    transition: var(--transition);
}

.feature-item:hover {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    transform: translateX(5px);
}

/* Testimonios */
.testimonials {
    background: var(--bg-white);
    position: relative;
    overflow: hidden;
}

/* Elementos gráficos decorativos en sección Testimonios */
.testimonials::before {
    content: '';
    position: absolute;
    top: 15%;
    right: 3%;
    width: 90px;
    height: 60px;
    background: #77ACB3;
    border-radius: 50% 30% 40% 60%;
    opacity: 0.15;
    transform: rotate(20deg);
    pointer-events: none;
    z-index: 0;
    animation: float 9s ease-in-out infinite;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-card {
    background: var(--bg-cream);
    padding: 2.5rem;
    border-radius: 0;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-cream);
    position: relative;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(119, 172, 179, 0.05) 0%, rgba(170, 215, 217, 0.08) 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.testimonial-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 10px 35px rgba(119, 172, 179, 0.22);
    border-color: var(--primary-color);
}

.testimonial-card:hover::before {
    opacity: 1;
}

.testimonial-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    overflow: hidden;
}

.testimonial-image .image-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 0.875rem;
    font-weight: 400;
    box-shadow: var(--shadow-sm);
    letter-spacing: 1px;
}

.testimonial-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    box-shadow: var(--shadow-sm);
}

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

.testimonial-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.testimonial-location {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* Contacto */
.contact {
    background: var(--bg-cream);
    position: relative;
    overflow: hidden;
}

/* Elementos gráficos decorativos en sección Contacto */
.contact::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 5%;
    width: 120px;
    height: 50px;
    background: #77ACB3;
    border-radius: 20px;
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
    animation: float 7s ease-in-out infinite;
}

.contact::after {
    content: '';
    position: absolute;
    bottom: 15%;
    right: 8%;
    width: 80px;
    height: 80px;
    border: 2px solid #AAD7D9;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
    animation: float 10s ease-in-out infinite 0.5s;
}

.contact-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.contact-intro p {
    font-size: 1.125rem;
    color: var(--text-dark);
    line-height: 1.8;
}

.contact-content {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.contact-info {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    width: 100%;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.contact-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-item h4 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 1rem;
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.05rem;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.contact-social {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.contact-social h4 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.social-links-contact {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.social-link svg {
    width: 24px;
    height: 24px;
}

.contact-form {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 0;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-cream);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    margin-bottom: 0;
}

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

.form-group input {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-cream);
    border-radius: 0;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-cream);
    color: var(--text-dark);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-white);
    box-shadow: 0 0 0 2px rgba(119, 172, 179, 0.1);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--text-white);
    padding: 4rem 0 1.5rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-link-footer:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-3px);
}

.social-link-footer svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: var(--bg-white);
        width: 100%;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
        border-top: 1px solid var(--border-cream);
    }

    .nav-menu.active {
        left: 0;
    }

    .logo-img {
        height: 40px;
    }

    .hero-title {
        font-size: 2.75rem;
        letter-spacing: 6px;
        padding: 20px 0;
    }

    .hero-title::before,
    .hero-title::after {
        width: 100px;
    }

    .hero-subtitle {
        font-size: 0.875rem;
        letter-spacing: 3px;
    }

    .section-title {
        font-size: 2rem;
        letter-spacing: 4px;
    }

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

    section {
        padding: 4rem 0;
    }

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

    .video-container {
        min-height: 300px;
        max-height: 400px;
    }

    .about-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .feature-box {
        padding: 1.5rem;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .courses-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-category {
        padding: 2rem 1.5rem;
    }

    .interpretation-list {
        gap: 0.75rem;
    }

    .educational-features {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

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

    .contact-intro {
        margin-bottom: 2rem;
    }

    .contact-intro h3 {
        font-size: 1.5rem;
    }

    .contact-intro p {
        font-size: 1rem;
    }

.contact-form {
    padding: 2rem 1.5rem;
    gap: 1rem;
}

    .social-links-contact {
        justify-content: center;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .exam-section {
        padding: 2rem 1.5rem;
    }

    .exam-text {
        font-size: 1.125rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .logo-img {
        height: 35px;
    }

    .hero-title {
        font-size: 2rem;
        letter-spacing: 4px;
        padding: 15px 0;
    }

    .hero-title::before,
    .hero-title::after {
        width: 80px;
    }

    .hero-subtitle {
        font-size: 0.75rem;
        letter-spacing: 2px;
    }

    .section-title {
        font-size: 1.75rem;
        letter-spacing: 3px;
    }

    .section-subtitle {
        font-size: 0.875rem;
    }

    section {
        padding: 3rem 0;
    }

    .service-category-title {
        font-size: 1.5rem;
        letter-spacing: 3px;
    }

    .about-text h3 {
        font-size: 1.5rem;
    }

    .video-container {
        min-height: 250px;
        max-height: 350px;
    }

    .feature-box {
        padding: 1.25rem;
    }

    .feature-box h4 {
        font-size: 1.125rem;
    }

    .service-category-title {
        font-size: 1.5rem;
    }

    .service-category {
        padding: 1.5rem 1rem;
    }

    .course-card {
        margin-bottom: 1rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem 1rem;
    }

    .contact-intro h3 {
        font-size: 1.25rem;
    }

    .exam-section {
        padding: 1.5rem 1rem;
    }

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

    .exam-button {
        font-size: 0.875rem;
        padding: 0.875rem 1.5rem;
    }
}

