/* ==========================================================================
   VARIABLES Y CONFIGURACIÓN GLOBAL
   ========================================================================== */
:root {
    /* Colores principales */
    --primary-color: #5c6bc0; /* Azul-violeta, color principal de la marca */
    --primary-dark: #3949ab; /* Versión más oscura para hover */
    --secondary-color: #4db6ac; /* Verde azulado, color secundario de acento */
    --secondary-dark: #26a69a; /* Versión más oscura para hover */
    
    /* Colores neutrales */
    --text-color: #2c3e50; /* Color principal para texto */
    --text-light: #546e7a; /* Color secundario para textos menos importantes */
    --text-muted: #78909c; /* Color para textos poco importantes */
    --bg-color: #ffffff; /* Fondo principal (blanco) */
    --bg-light: #f5f7fa; /* Fondo alternativo claro */
    --bg-dark: #263238; /* Fondo oscuro para footer y secciones destacadas */
    
    /* Colores de acento y estados */
    --accent-color: #ff7043; /* Color de acento para elementos destacados */
    --success-color: #4caf50; /* Verde para mensajes de éxito */
    --warning-color: #ff9800; /* Naranja para advertencias */
    --error-color: #f44336; /* Rojo para errores */
    
    /* Espaciado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 4rem;
    
    /* Bordes y sombras */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    --box-shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.08);
    --box-shadow-md: 0 4px 10px rgba(0, 0, 0, 0.1);
    --box-shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.12), 0 4px 6px rgba(0, 0, 0, 0.06);
    
    /* Tipografía */
    --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-family-heading: 'Montserrat', 'Inter', sans-serif;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;
    
    /* Tamaños de fuente */
    --font-size-xs: 0.75rem;   /* 12px */
    --font-size-sm: 0.875rem;  /* 14px */
    --font-size-base: 1rem;    /* 16px */
    --font-size-md: 1.125rem;  /* 18px */
    --font-size-lg: 1.25rem;   /* 20px */
    --font-size-xl: 1.5rem;    /* 24px */
    --font-size-2xl: 2rem;     /* 32px */
    --font-size-3xl: 2.5rem;   /* 40px */
    --font-size-4xl: 3rem;     /* 48px */
    
    /* Transiciones */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
    
    /* Ancho máximo de contenedores */
    --container-max-width: 1200px;
    --container-narrow-width: 900px;
}

/* ==========================================================================
   RESET Y ESTILOS BASE
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-normal);
}

a:hover {
    color: var(--primary-dark);
}

ul, ol {
    list-style-position: inside;
}

/* Utilidades generales */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-narrow {
    max-width: var(--container-narrow-width);
}

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

.center-button {
    text-align: center;
    margin-top: var(--spacing-lg);
}

/* Encabezados */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    font-weight: var(--font-weight-bold);
    line-height: 1.3;
    color: var(--text-color);
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: var(--font-size-3xl);
}

h2 {
    font-size: var(--font-size-2xl);
}

h3 {
    font-size: var(--font-size-xl);
}

h4 {
    font-size: var(--font-size-lg);
}

h5 {
    font-size: var(--font-size-md);
}

h6 {
    font-size: var(--font-size-base);
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-top: calc(var(--spacing-sm) * -1);
    margin-bottom: var(--spacing-lg);
    font-size: var(--font-size-md);
}

/* Botones */
.btn-primary, .btn-secondary, .btn-tertiary {
    display: inline-block;
    font-weight: var(--font-weight-medium);
    text-align: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    font-size: var(--font-size-base);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    color: white;
}

.btn-tertiary {
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid var(--text-light);
}

.btn-tertiary:hover {
    background-color: var(--bg-light);
    color: var(--text-color);
}

/* ==========================================================================
   HEADER Y NAVEGACIÓN
   ========================================================================== */
header {
    background-color: white;
    box-shadow: var(--box-shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) var(--spacing-md);
}

.logo img {
    height: 50px;
    width: auto;
}

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

nav ul li {
    margin-left: var(--spacing-md);
}

nav ul li a {
    color: var(--text-color);
    font-weight: var(--font-weight-medium);
    padding: 0.5rem;
    position: relative;
}

nav ul li a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform var(--transition-normal);
}

nav ul li a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

nav ul li a.active {
    color: var(--primary-color);
}

nav ul li a.active::after {
    transform: scaleX(1);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.menu-toggle span {
    height: 3px;
    width: 100%;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: all var(--transition-normal);
}

/* ==========================================================================
   SECCIONES DE PÁGINA DE INICIO
   ========================================================================== */

/* Sección Hero */
.hero {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(92, 107, 192, 0.05) 0%, rgba(77, 182, 172, 0.05) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
    color: var(--text-color);
}

.hero-content p {
    font-size: var(--font-size-lg);
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
    max-width: 80%;
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-md);
}

.hero-image {
    flex: 1;
    max-width: 50%;
}

.hero-image img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-md);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform var(--transition-slow);
}

.hero-image img:hover {
    transform: perspective(1000px) rotateY(0deg);
}

/* Sección de características */
.features {
    padding: var(--spacing-xl) 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.feature-card {
    padding: var(--spacing-lg);
    background-color: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-md);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    color: white;
}

.feature-icon svg {
    width: 30px;
    height: 30px;
}

.feature-card h3 {
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-lg);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Sección de últimas publicaciones */
.latest-posts {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-light);
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.post-card {
    background-color: white;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--box-shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-md);
}

.post-image {
    overflow: hidden;
    height: 200px;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

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

.post-content {
    padding: var(--spacing-md);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-content h3 {
    font-size: var(--font-size-md);
    margin-bottom: var(--spacing-sm);
    line-height: 1.4;
}

.post-content h3 a {
    color: var(--text-color);
    transition: color var(--transition-normal);
}

.post-content h3 a:hover {
    color: var(--primary-color);
}

.post-excerpt {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
}

.read-more {
    font-weight: var(--font-weight-medium);
    color: var(--primary-color);
    align-self: flex-start;
    transition: color var(--transition-normal);
}

.read-more:hover {
    color: var(--primary-dark);
}

/* Sección de testimonios */
.testimonials {
    padding: var(--spacing-xl) 0;
}

.testimonial-slider {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
}

.testimonial-card {
    background-color: white;
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-sm);
    position: relative;
}

.quote-icon {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    width: 30px;
    height: 30px;
    color: var(--primary-color);
    opacity: 0.2;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

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

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: var(--spacing-sm);
    object-fit: cover;
}

.testimonial-author h4 {
    margin-bottom: 0;
    font-size: var(--font-size-base);
}

.testimonial-author p {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}

/* Sección de datos curiosos */
.fun-fact {
    padding: var(--spacing-lg) 0;
    background-color: var(--bg-light);
}

.fact-card {
    background-color: white;
    border-radius: var(--border-radius-md);
    padding: var(--spacing-lg);
    box-shadow: var(--box-shadow-sm);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    border-left: 4px solid var(--primary-color);
}

.fact-card h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.fact-card p {
    color: var(--text-light);
    font-size: var(--font-size-md);
}

/* Sección de newsletter */
.newsletter {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-dark);
    color: white;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-content h2 {
    color: white;
    margin-bottom: var(--spacing-sm);
}

.newsletter-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-lg);
}

.newsletter-form {
    display: flex;
    gap: var(--spacing-sm);
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-md);
    border: none;
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
}

.newsletter-form input:focus {
    outline: 2px solid var(--primary-color);
}

.privacy-note {
    margin-top: var(--spacing-md);
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.6);
}

.privacy-note a {
    color: white;
    text-decoration: underline;
}

.privacy-note a:hover {
    color: var(--secondary-color);
}

/* ==========================================================================
   PÁGINA DE BLOG
   ========================================================================== */
.page-header {
    background-color: var(--bg-dark);
    color: white;
    text-align: center;
    padding: var(--spacing-lg) 0;
    position: relative;
}

.page-header h1 {
    color: white;
    margin-bottom: var(--spacing-xs);
}

.page-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--font-size-md);
    max-width: 600px;
    margin: 0 auto;
}

.blog-content {
    padding: var(--spacing-xl) 0;
}

.blog-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-xl);
}

.blog-posts {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.search-container {
    margin-bottom: var(--spacing-lg);
}

.search-form {
    display: flex;
    background-color: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-sm);
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.search-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
}

.search-form input:focus {
    outline: none;
}

.search-form button {
    background-color: var(--primary-color);
    border: none;
    color: white;
    padding: 0 1.5rem;
    cursor: pointer;
    transition: background-color var(--transition-normal);
}

.search-form button:hover {
    background-color: var(--primary-dark);
}

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

.featured-post {
    display: flex;
    background-color: white;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--box-shadow-sm);
    margin-bottom: var(--spacing-lg);
}

.featured-image {
    width: 40%;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.featured-post:hover .featured-image img {
    transform: scale(1.05);
}

.featured-content {
    padding: var(--spacing-lg);
    flex: 1;
}

.post-category {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    font-size: var(--font-size-xs);
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-sm);
    margin-bottom: var(--spacing-sm);
    font-weight: var(--font-weight-medium);
}

.featured-content h2 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-xs);
}

.featured-content h2 a {
    color: var(--text-color);
    transition: color var(--transition-normal);
}

.featured-content h2 a:hover {
    color: var(--primary-color);
}

.post-meta {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-sm);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: var(--spacing-lg);
    gap: var(--spacing-xs);
}

.pagination a, .pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-md);
    font-weight: var(--font-weight-medium);
    transition: all var(--transition-normal);
}

.pagination a {
    background-color: white;
    color: var(--text-color);
    box-shadow: var(--box-shadow-sm);
}

.pagination a:hover {
    background-color: var(--primary-color);
    color: white;
}

.pagination a.active {
    background-color: var(--primary-color);
    color: white;
}

.pagination a.next {
    width: auto;
    padding: 0 var(--spacing-sm);
    gap: var(--spacing-xs);
}

.pagination a.next svg {
    width: 16px;
    height: 16px;
}

/* Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.sidebar-widget {
    background-color: white;
    border-radius: var(--border-radius-md);
    padding: var(--spacing-lg);
    box-shadow: var(--box-shadow-sm);
}

.sidebar-widget h3 {
    margin-bottom: var(--spacing-md);
    position: relative;
    padding-bottom: var(--spacing-xs);
}

.sidebar-widget h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.categories ul {
    list-style-type: none;
}

.categories ul li {
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.categories ul li:last-child {
    border-bottom: none;
}

.categories ul li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
    color: var(--text-color);
    transition: color var(--transition-normal);
}

.categories ul li a:hover {
    color: var(--primary-color);
}

.categories ul li a span {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}

.popular-posts ul {
    list-style-type: none;
}

.popular-posts ul li {
    margin-bottom: var(--spacing-sm);
}

.popular-posts ul li:last-child {
    margin-bottom: 0;
}

.popular-posts ul li a {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-xs) 0;
}

.popular-posts ul li a img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
}

.popular-posts ul li a div h4 {
    font-size: var(--font-size-base);
    margin-bottom: var(--spacing-xs);
    color: var(--text-color);
    transition: color var(--transition-normal);
}

.popular-posts ul li a:hover div h4 {
    color: var(--primary-color);
}

.popular-posts ul li a div p {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.tag-cloud a {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background-color: var(--bg-light);
    border-radius: var(--border-radius-sm);
    color: var(--text-light);
    font-size: var(--font-size-sm);
    transition: all var(--transition-normal);
}

.tag-cloud a:hover {
    background-color: var(--primary-color);
    color: white;
}

.sidebar-form {
    display: flex;
    gap: var(--spacing-xs);
}

.sidebar-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-md);
    border: 1px solid #e0e0e0;
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
}

.sidebar-form input:focus {
    outline: 2px solid var(--primary-color);
    border-color: transparent;
}

/* ==========================================================================
   PÁGINA DE RECURSOS GRATUITOS
   ========================================================================== */
.resources-intro {
    padding: var(--spacing-xl) 0;
}

.resources-intro .container {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.intro-content {
    flex: 1;
}

.intro-content h2 {
    margin-bottom: var(--spacing-md);
}

.intro-content p {
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
}

.intro-image {
    flex: 1;
}

.intro-image img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-md);
}

.resources-grid {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-light);
}

.resource-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
}

.resource-card {
    display: flex;
    background-color: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-sm);
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-md);
}

.resource-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 80px;
    background-color: var(--primary-color);
    color: white;
    padding: var(--spacing-md);
}

.resource-icon svg {
    width: 40px;
    height: 40px;
}

.resource-content {
    padding: var(--spacing-md);
    flex: 1;
}

.resource-content h3 {
    margin-bottom: var(--spacing-sm);
}

.resource-content p {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.resource-details {
    list-style-type: none;
    margin-bottom: var(--spacing-md);
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}

.resource-details li {
    margin-bottom: var(--spacing-xs);
}

.audio-resources {
    padding: var(--spacing-xl) 0;
}

.audio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
}

.audio-card {
    background-color: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-sm);
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.audio-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-md);
}

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

.audio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

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

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.play-button svg {
    width: 30px;
    height: 30px;
    color: var(--primary-color);
}

.play-button:hover {
    background-color: white;
    transform: translate(-50%, -50%) scale(1.1);
}

.audio-content {
    padding: var(--spacing-md);
}

.audio-content h3 {
    margin-bottom: var(--spacing-sm);
}

.audio-content p {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.audio-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}

.download-link {
    color: var(--primary-color);
    font-weight: var(--font-weight-medium);
    transition: color var(--transition-normal);
}

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

.testimonial-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-light);
}

/* ==========================================================================
   PÁGINA SOBRE NOSOTROS
   ========================================================================== */
.about-intro {
    padding: var(--spacing-xl) 0;
}

.about-intro .container {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.about-content {
    flex: 1;
}

.about-content h2 {
    margin-bottom: var(--spacing-md);
}

.about-content p {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.about-image {
    flex: 1;
}

.about-image img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-md);
}

blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: var(--spacing-md);
    margin: var(--spacing-lg) 0;
    font-style: italic;
    color: var(--text-light);
}

blockquote cite {
    display: block;
    margin-top: var(--spacing-sm);
    font-weight: var(--font-weight-medium);
    color: var(--text-color);
}

.mission-values {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-light);
}

.mission-content {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.mission-card {
    flex: 1;
    background-color: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-sm);
    padding: var(--spacing-lg);
    text-align: center;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.mission-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-md);
}

.mission-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto var(--spacing-md);
}

.mission-icon svg {
    width: 35px;
    height: 35px;
}

.mission-card h3 {
    margin-bottom: var(--spacing-sm);
}

.mission-card p {
    color: var(--text-light);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.value-card {
    background-color: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-sm);
    padding: var(--spacing-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-md);
    background-color: var(--primary-color);
}

.value-card:hover h4, .value-card:hover p {
    color: white;
}

.value-card h4 {
    margin-bottom: var(--spacing-xs);
    font-size: var(--font-size-md);
    color: var(--primary-color);
    transition: color var(--transition-normal);
}

.value-card p {
    color: var(--text-light);
    transition: color var(--transition-normal);
}

.team-section {
    padding: var(--spacing-xl) 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
}

.team-card {
    background-color: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-sm);
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-md);
}

.team-image {
    height: 300px;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

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

.team-details {
    padding: var(--spacing-md);
}

.team-details h3 {
    margin-bottom: 0;
    font-size: var(--font-size-lg);
}

.team-role {
    color: var(--primary-color);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--spacing-sm);
}

.team-details p {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-light);
    transition: all var(--transition-normal);
}

.social-links a svg {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    transition: color var(--transition-normal);
}

.social-links a:hover {
    background-color: var(--primary-color);
}

.social-links a:hover svg {
    color: white;
}

.certifications {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-light);
}

.certification-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
}

.certification-card {
    background-color: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-sm);
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.certification-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-md);
}

.certification-icon {
    margin-bottom: var(--spacing-md);
    color: var(--success-color);
}

.certification-icon svg {
    width: 30px;
    height: 30px;
}

.certification-card h4 {
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-md);
}

.certification-card p {
    color: var(--text-light);
}

.cta-section {
    background-color: var(--primary-color);
    color: white;
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.cta-section h2 {
    color: white;
    margin-bottom: var(--spacing-sm);
}

.cta-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
}

.cta-section .btn-primary {
    background-color: white;
    color: var(--primary-color);
}

.cta-section .btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.cta-section .btn-secondary {
    background-color: transparent;
    border: 1px solid white;
}

.cta-section .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   PÁGINA DE CONTACTO
   ========================================================================== */
.contact-section {
    padding: var(--spacing-xl) 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-xl);
}

.contact-info {
    background-color: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-sm);
    padding: var(--spacing-lg);
}

.contact-info h2 {
    margin-bottom: var(--spacing-md);
}

.contact-info > p {
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
}

.info-icon {
    margin-right: var(--spacing-md);
    color: var(--primary-color);
    min-width: 24px;
}

.info-icon svg {
    width: 24px;
    height: 24px;
}

.info-item h3 {
    margin-bottom: var(--spacing-xs);
    font-size: var(--font-size-md);
}

.info-item p {
    color: var(--text-light);
}

.info-item a {
    color: var(--primary-color);
    transition: color var(--transition-normal);
}

.info-item a:hover {
    color: var(--primary-dark);
}

.social-contact {
    margin-top: var(--spacing-lg);
}

.social-contact h3 {
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-md);
}

.social-icons {
    display: flex;
    gap: var(--spacing-sm);
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-light);
    transition: all var(--transition-normal);
}

.social-icons a svg {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: color var(--transition-normal);
}

.social-icons a:hover {
    background-color: var(--primary-color);
}

.social-icons a:hover svg {
    color: white;
}

.contact-form-container {
    background-color: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-sm);
    padding: var(--spacing-lg);
}

.contact-form-container h2 {
    margin-bottom: var(--spacing-md);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

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

.form-group label {
    margin-bottom: var(--spacing-xs);
    color: var(--text-color);
    font-weight: var(--font-weight-medium);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.75rem;
    border-radius: var(--border-radius-md);
    border: 1px solid #e0e0e0;
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    transition: all var(--transition-normal);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(92, 107, 192, 0.2);
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-xs);
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: var(--font-weight-normal);
    color: var(--text-muted);
}

.checkbox-group a {
    color: var(--primary-color);
    transition: color var(--transition-normal);
}

.checkbox-group a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.map-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-light);
}

.map-container {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--box-shadow-sm);
}

.faq-section {
    padding: var(--spacing-xl) 0;
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.faq-card {
    background-color: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-sm);
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    cursor: pointer;
    transition: background-color var(--transition-normal);
    position: relative;
}

.faq-question:hover {
    background-color: var(--bg-light);
}

.faq-question h3 {
    margin-bottom: 0;
    font-size: var(--font-size-md);
}

.faq-toggle {
    font-size: var(--font-size-xl);
    color: var(--primary-color);
    font-weight: var(--font-weight-bold);
    transition: transform var(--transition-normal);
}

.faq-question.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 var(--spacing-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal), padding var(--transition-normal);
}

.faq-question.active + .faq-answer {
    padding: 0 var(--spacing-md) var(--spacing-md);
    max-height: 300px;
}

.faq-answer p {
    color: var(--text-light);
}

/* Modal de agradecimiento */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-lg);
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modal-appear 0.3s ease;
}

@keyframes modal-appear {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-modal {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color var(--transition-normal);
}

.close-modal:hover {
    color: var(--text-color);
}

.modal-body {
    padding: var(--spacing-lg);
    text-align: center;
}

.success-icon {
    width: 70px;
    height: 70px;
    background-color: var(--success-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto var(--spacing-md);
}

.success-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

.modal-body h3 {
    margin-bottom: var(--spacing-sm);
}

.modal-body p {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.modal-note {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
}

.close-btn {
    min-width: 120px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    background-color: var(--bg-dark);
    color: white;
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

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

.footer-column h3 {
    color: white;
    margin-bottom: var(--spacing-md);
    position: relative;
    padding-bottom: var(--spacing-xs);
}

.footer-column h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-logo {
    margin-bottom: var(--spacing-md);
}

.footer-logo img {
    height: 50px;
    width: auto;
}

.footer-column p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--spacing-md);
}

.footer-column svg {
    width: 18px;
    height: 18px;
    margin-right: var(--spacing-xs);
}

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

.footer-links li {
    margin-bottom: var(--spacing-xs);
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-normal);
}

.footer-links li a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-sm);
}

.legal-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    list-style-type: none;
    flex-wrap: wrap;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--font-size-xs);
    transition: color var(--transition-normal);
}

.legal-links a:hover {
    color: var(--secondary-color);
}

/* ==========================================================================
   BANNER DE COOKIES
   ========================================================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: var(--box-shadow-lg);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform var(--transition-slow);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--spacing-md);
}

.cookie-content p {
    margin-bottom: var(--spacing-md);
}

.cookie-buttons {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    flex-wrap: wrap;
}

.cookie-more-info {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

.cookie-more-info a {
    text-decoration: underline;
}

/* ==========================================================================
   MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
    h1 {
        font-size: var(--font-size-2xl);
    }
    
    h2 {
        font-size: var(--font-size-xl);
    }
    
    .hero-content h1 {
        font-size: var(--font-size-3xl);
    }
    
    .hero-content p {
        font-size: var(--font-size-md);
    }
    
    .mission-content {
        flex-direction: column;
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        order: 2;
    }
    
    .contact-form-container {
        order: 1;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-wrap: wrap;
    }
    
    nav {
        width: 100%;
        margin-top: var(--spacing-sm);
        display: none;
    }
    
    nav.active {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        margin: 0;
    }
    
    nav ul li a {
        display: block;
        padding: var(--spacing-sm) 0;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero .container {
        flex-direction: column;
        gap: var(--spacing-lg);
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-content p {
        max-width: 100%;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .hero-image {
        max-width: 100%;
    }
    
    .blog-layout {
        grid-template-columns: 1fr;
    }
    
    .about-intro .container,
    .resources-intro .container {
        flex-direction: column-reverse;
    }
    
    .featured-post {
        flex-direction: column;
    }
    
    .featured-image {
        width: 100%;
        height: 200px;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .legal-links {
        gap: var(--spacing-sm);
    }
    
    .cookie-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: var(--font-size-2xl);
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .team-card,
    .resource-card,
    .certification-card {
        width: 100%;
    }
}
