/* Variables globales */
:root {
    --primary-color: #4a6bff;
    --primary-dark: #3a51c5;
    --secondary-color: #ff6b4a;
    --text-color: #333333;
    --text-light: #666666;
    --light-bg: #f8f9fa;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --container-width: 1200px;
    --font-main: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

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

html {
    font-size: 62.5%; /* 1rem = 10px */
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

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

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

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, .btn {
    cursor: pointer;
    display: inline-block;
    font-family: var(--font-main);
    font-weight: 500;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1.2rem 2.4rem;
    border: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-align: center;
    font-size: 1.6rem;
}

button:hover, .btn:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 2rem;
    color: var(--text-color);
}

h1 {
    font-size: 4.2rem;
}

h2 {
    font-size: 3.2rem;
}

h3 {
    font-size: 2.4rem;
}

p {
    margin-bottom: 1.6rem;
}

/* Contenedor */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header y navegación */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1.5rem 0;
}

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

.logo img {
    height: 5rem;
    width: auto;
}

nav ul {
    display: flex;
    gap: 3rem;
}

nav a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 1.8rem;
    position: relative;
    padding: 0.5rem 0;
}

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

nav a:hover:after, nav a.active:after {
    width: 100%;
}

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

/* Hero section */
.hero {
    background: linear-gradient(135deg, #4a6bff 0%, #8091ff 100%);
    color: var(--white);
    padding: 10rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 5.6rem;
    margin-bottom: 2rem;
    color: var(--white);
}

.hero p {
    font-size: 2rem;
    max-width: 70rem;
    margin: 0 auto 4rem;
}

/* Sección de "¿Qué aprenderás aquí?" */
.learn-section {
    padding: 8rem 0;
    background-color: var(--light-bg);
}

.learn-section h2 {
    text-align: center;
    margin-bottom: 5rem;
}

.learn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 3rem;
}

.learn-card {
    background-color: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

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

.learn-card .icon {
    width: 8rem;
    height: 8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(74, 107, 255, 0.1);
    border-radius: 50%;
    margin: 0 auto 2rem;
    color: var(--primary-color);
}

.learn-card h3 {
    margin-bottom: 1.5rem;
}

/* Artículos destacados */
.featured-posts {
    padding: 8rem 0;
}

.featured-posts h2 {
    text-align: center;
    margin-bottom: 5rem;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.post-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    background-color: var(--white);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.post-image {
    height: 20rem;
    overflow: hidden;
}

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

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

.post-content {
    padding: 2rem;
}

.post-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.read-more {
    display: inline-block;
    font-weight: 500;
    color: var(--primary-color);
    margin-top: 1rem;
    position: relative;
}

.read-more:after {
    content: '→';
    margin-left: 0.5rem;
    transition: var(--transition);
}

.read-more:hover:after {
    margin-left: 1rem;
}

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

/* Contador de tiempo */
.countdown-section {
    background: linear-gradient(135deg, #4a6bff 0%, #8091ff 100%);
    color: var(--white);
    padding: 6rem 0;
    text-align: center;
}

.countdown-section h2, .countdown-section p {
    color: var(--white);
}

.countdown-section p {
    font-size: 1.8rem;
    max-width: 60rem;
    margin: 0 auto 3rem;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.time-block {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: var(--border-radius);
    min-width: 10rem;
}

.time-block span {
    display: block;
}

.time-block span:first-child {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
}

.time-label {
    font-size: 1.4rem;
    margin-top: 0.5rem;
}

/* Newsletter */
.newsletter {
    padding: 8rem 0;
    background-color: var(--light-bg);
    text-align: center;
}

.newsletter h2 {
    margin-bottom: 1.5rem;
}

.newsletter p {
    max-width: 60rem;
    margin: 0 auto 3rem;
}

.newsletter-form {
    display: flex;
    max-width: 60rem;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 1.2rem 2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 1.6rem;
}

.newsletter-form button {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Footer */
footer {
    background-color: #232946;
    color: var(--white);
    padding: 6rem 0 2rem;
}

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

.footer-logo img {
    height: 5rem;
    margin-bottom: 1.5rem;
}

.footer-links h3, .footer-contact h3 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.footer-links ul li {
    margin-bottom: 1rem;
}

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

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

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact svg {
    margin-right: 1rem;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

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

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

/* Banner de cookies */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 2rem 0;
    display: none;
}

.cookie-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 120rem;
    margin: 0 auto;
    padding: 0 2rem;
}

.cookie-content p {
    margin-bottom: 2rem;
    text-align: center;
}

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

.btn-cookie {
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}

.btn-cookie.accept {
    background-color: var(--success-color);
    color: var(--white);
}

.btn-cookie.customize {
    background-color: var(--light-bg);
    color: var(--text-color);
}

.btn-cookie.reject {
    background-color: var(--danger-color);
    color: var(--white);
}

.cookie-policy {
    font-size: 1.4rem;
    color: var(--primary-color);
}

/* Página de cabecera (para blog, about, contact) */
.page-header {
    background: linear-gradient(135deg, #4a6bff 0%, #8091ff 100%);
    color: var(--white);
    padding: 6rem 0;
    text-align: center;
}

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

.page-header p {
    font-size: 1.8rem;
    max-width: 60rem;
    margin: 0 auto;
}

/* Página de blog */
.blog-content {
    padding: 8rem 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(35rem, 1fr));
    gap: 4rem;
}

.blog-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

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

.blog-img {
    height: 25rem;
}

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

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

.blog-text {
    padding: 2.5rem;
    background-color: var(--white);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-text .date {
    color: var(--text-light);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.blog-text h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.blog-text p {
    margin-bottom: 2rem;
    flex-grow: 1;
}

/* Página de about */
.about-content {
    padding: 8rem 0;
}

.about-intro {
    text-align: center;
    max-width: 80rem;
    margin: 0 auto 6rem;
}

.mission-vision {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 4rem;
    margin-bottom: 8rem;
}

.mission, .vision {
    background-color: var(--light-bg);
    padding: 4rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

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

.values {
    margin-bottom: 8rem;
}

.values h2 {
    text-align: center;
    margin-bottom: 5rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 3rem;
}

.value-item {
    text-align: center;
    padding: 3rem;
    border-radius: var(--border-radius);
    background-color: var(--white);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.value-item .icon {
    margin: 0 auto 2rem;
    width: 8rem;
    height: 8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(74, 107, 255, 0.1);
    border-radius: 50%;
    color: var(--primary-color);
}

.team-section h2 {
    text-align: center;
    margin-bottom: 5rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 4rem;
}

.team-member {
    text-align: center;
    transition: var(--transition);
}

.team-member img {
    width: 20rem;
    height: 20rem;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 2rem;
    box-shadow: var(--shadow);
}

.team-member h3 {
    margin-bottom: 0.5rem;
}

.team-member p:first-of-type {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.team-member .social-icons {
    justify-content: center;
    margin-top: 1.5rem;
}

.team-member .social-icons a {
    width: 3.5rem;
    height: 3.5rem;
}

.testimonials {
    background-color: var(--light-bg);
    padding: 8rem 0;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 5rem;
}

.testimonial-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(35rem, 1fr));
    gap: 4rem;
}

.testimonial {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--shadow);
}

.testimonial-content {
    margin-bottom: 2rem;
    position: relative;
}

.testimonial-content:before {
    content: '"';
    font-size: 5rem;
    color: rgba(74, 107, 255, 0.1);
    position: absolute;
    top: -2rem;
    left: -1rem;
}

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

.testimonial-author img {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    margin-right: 1.5rem;
}

.testimonial-author h4 {
    margin-bottom: 0.2rem;
}

.testimonial-author p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* Página de contacto */
.contact-content {
    padding: 8rem 0;
}

.contact-info-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(35rem, 1fr));
    gap: 6rem;
}

.contact-info h2, .contact-form h2 {
    margin-bottom: 3rem;
}

.contact-info p {
    margin-bottom: 3rem;
}

.info-item {
    display: flex;
    margin-bottom: 3rem;
}

.info-item .icon {
    margin-right: 2rem;
    width: 5rem;
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(74, 107, 255, 0.1);
    border-radius: 50%;
    color: var(--primary-color);
}

.info-item h3 {
    margin-bottom: 0.5rem;
}

.social-media h3 {
    margin-top: 4rem;
}

.contact-form form {
    display: grid;
    gap: 2rem;
}

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

.form-group label {
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.form-group input, .form-group textarea {
    padding: 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-main);
    font-size: 1.6rem;
}

.form-group.checkbox {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.form-group.checkbox input {
    width: auto;
}

.btn-submit {
    margin-top: 2rem;
    width: 100%;
}

.map-section {
    padding: 0 0 8rem;
}

.map-section h2 {
    text-align: center;
    margin-bottom: 4rem;
}

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

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

.modal-content {
    background-color: var(--white);
    padding: 4rem;
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 50rem;
    width: 90%;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 3rem;
    cursor: pointer;
    color: var(--text-light);
    line-height: 1;
}

.modal-icon {
    width: 8rem;
    height: 8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(40, 167, 69, 0.1);
    border-radius: 50%;
    color: var(--success-color);
    margin: 0 auto 3rem;
}

/* Página de post individual */
.blog-post {
    padding: 8rem 0;
}

.post-header {
    margin-bottom: 5rem;
}

.post-header h1 {
    margin-bottom: 2rem;
}

.post-meta {
    display: flex;
    gap: 2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.post-header .post-image {
    height: 50rem;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.post-header .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content {
    max-width: 80rem;
    margin: 0 auto;
}

.post-content h2 {
    margin-top: 4rem;
    font-size: 2.8rem;
}

.post-content h3 {
    font-size: 2.2rem;
    margin-top: 3rem;
}

.post-content ul, .post-content ol {
    margin-bottom: 2.5rem;
    padding-left: 2rem;
}

.post-content ul {
    list-style-type: disc;
}

.post-content ol {
    list-style-type: decimal;
}

.post-content li {
    margin-bottom: 1rem;
}

.post-content img {
    margin: 3rem auto;
    border-radius: var(--border-radius);
}

.post-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 2rem;
    margin: 3rem 0;
    font-style: italic;
}

.share-post {
    margin: 6rem 0;
    text-align: center;
}

.social-share {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-share a {
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    color: var(--white);
    font-weight: 500;
}

.social-share a svg {
    margin-right: 1rem;
}

.social-share .facebook {
    background-color: #3b5998;
}

.social-share .twitter {
    background-color: #1da1f2;
}

.social-share .linkedin {
    background-color: #0077b5;
}

.social-share .email {
    background-color: #ea4335;
}

.related-posts {
    margin-bottom: 4rem;
}

.related-posts h3 {
    text-align: center;
    margin-bottom: 3rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 3rem;
}

.related-post {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.related-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.related-post img {
    width: 100%;
    height: 15rem;
    object-fit: cover;
}

.related-post h4 {
    padding: 1.5rem;
    font-size: 1.8rem;
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 1200px) {
    html {
        font-size: 55%;
    }
}

@media (max-width: 991px) {
    .container {
        padding: 0 3rem;
    }
    
    .hero h1 {
        font-size: 4.8rem;
    }
    
    .learn-grid, .posts-grid, .blog-grid {
        grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr));
    }
}

@media (max-width: 768px) {
    html {
        font-size: 50%;
    }
    
    header .container {
        flex-direction: column;
        gap: 2rem;
    }
    
    nav ul {
        gap: 2rem;
    }
    
    .hero h1 {
        font-size: 4rem;
    }
    
    .countdown {
        flex-wrap: wrap;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: var(--border-radius);
        margin-bottom: 1.5rem;
    }
    
    .newsletter-form button {
        border-radius: var(--border-radius);
    }
    
    .contact-info-form {
        grid-template-columns: 1fr;
    }
    
    .post-header .post-image {
        height: 30rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 2rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 3.2rem;
    }
    
    .learn-grid, .posts-grid, .blog-grid, .values-grid, .team-grid {
        grid-template-columns: 1fr;
    }
    
    .social-share {
        flex-direction: column;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}
