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

:root {
    --primary-color: #4e54c8;
    --primary-color-dark: #3a3f9e;
    --secondary-color: #5cb85c;
    --text-color: #333;
    --text-light: #777;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --border-color: #e9ecef;
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f5f7fa;
}

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

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

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

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

ul {
    list-style-type: none;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
}

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

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

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

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

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

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

/* Header y navegación */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

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

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

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

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

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

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, rgba(78, 84, 200, 0.9), rgba(143, 148, 251, 0.9)), url('images/7.jpg') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 120px 20px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

/* Secciones de página */
section {
    padding: 80px 0;
}

section h2 {
    font-size: 2.2rem;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

section h2:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 15px auto 0;
}

/* Posts grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

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

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

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

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.post-content {
    padding: 20px;
}

.post-date {
    font-size: 0.85rem;
    color: var(--text-light);
    display: block;
    margin-bottom: 10px;
}

.post-content h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.post-content p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.read-more {
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.read-more:after {
    content: '\2192';
    margin-left: 5px;
    transition: margin-left 0.3s ease;
}

.read-more:hover:after {
    margin-left: 10px;
}

/* Bloque de inspiración */
.inspiration-block {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0;
}

.inspiration-block h2 {
    color: white;
}

.inspiration-block h2:after {
    background: white;
}

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

.inspiration-content blockquote {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.6;
}

.inspiration-content .author {
    font-weight: 500;
    opacity: 0.9;
}

/* Entrevista con experto */
.expert-interview {
    background-color: #f5f7fa;
}

.interview-content {
    display: flex;
    gap: 40px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.expert-photo {
    flex: 0 0 300px;
}

.expert-photo img {
    border-radius: 50%;
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.interview-text h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.interview-text p {
    margin-bottom: 15px;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding-top: 60px;
}

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

.footer-logo img {
    height: 60px;
    margin-bottom: 15px;
}

.footer-logo p {
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer-links h3,
.footer-legal h3,
.footer-social h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-links h3:after,
.footer-legal h3:after,
.footer-social h3:after {
    content: '';
    display: block;
    width: 30px;
    height: 3px;
    background: var(--primary-color);
    margin-top: 8px;
}

.footer-links ul li,
.footer-legal ul li {
    margin-bottom: 10px;
}

.footer-links ul li a,
.footer-legal ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-links ul li a:hover,
.footer-legal ul li a:hover {
    color: white;
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

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

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

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Page header */
.page-header {
    background: linear-gradient(135deg, rgba(78, 84, 200, 0.9), rgba(143, 148, 251, 0.9)), url('images/7.jpg') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 80px 20px;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Blog posts */
.blog-posts {
    background-color: #f8f9fa;
}

/* About page */
.about-intro {
    background-color: white;
}

.about-content {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-image {
    flex: 0 0 45%;
}

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

.about-text h2 {
    text-align: left;
    margin-bottom: 20px;
}

.about-text h2:after {
    margin-left: 0;
}

.about-text p {
    margin-bottom: 20px;
}

.team {
    background-color: #f8f9fa;
}

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

.team-member {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    text-align: center;
    padding-bottom: 20px;
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.team-member h3 {
    margin: 20px 0 5px;
    font-size: 1.2rem;
}

.team-member p {
    color: var(--text-light);
    padding: 0 20px;
    margin-bottom: 15px;
}

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

.team-member .social-icons {
    justify-content: center;
    margin-top: 15px;
}

.team-member .social-icons a {
    background-color: #f0f2f5;
    color: var(--text-color);
}

.values {
    background-color: white;
}

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

.value-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: var(--border-radius);
    background-color: #f8f9fa;
    transition: var(--transition);
}

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

.value-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.value-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* Contact page */
.contact-info {
    background-color: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.contact-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: var(--border-radius);
    background-color: #f8f9fa;
    transition: var(--transition);
}

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

.contact-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-card h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.contact-form {
    background-color: #f8f9fa;
}

.contact-form form {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input {
    width: auto;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
}

.map {
    padding-top: 0;
}

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

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

.modal-content {
    background-color: white;
    padding: 40px;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: modalOpen 0.4s ease;
}

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

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
}

.modal h2 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.modal p {
    margin-bottom: 25px;
}

/* Cookie banner */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-content p {
    flex: 1 1 300px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-more {
    text-decoration: underline;
    margin-top: 10px;
    display: block;
    width: 100%;
    text-align: center;
}

/* Post detail page */
.post-header {
    background: linear-gradient(135deg, rgba(78, 84, 200, 0.9), rgba(143, 148, 251, 0.9)), url('images/7.jpg') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 80px 20px;
}

.post-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.post-content {
    background-color: white;
    padding: 80px 0;
}

.post-image-featured {
    margin-bottom: 40px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.post-text {
    max-width: 800px;
    margin: 0 auto;
}

.post-text h2 {
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: left;
}

.post-text h2:after {
    margin-left: 0;
    width: 40px;
}

.post-text h3 {
    font-size: 1.4rem;
    margin-top: 30px;
    margin-bottom: 15px;
}

.post-text p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.post-text ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.post-text ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.post-text ul li:before {
    content: '\2022';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.post-image-secondary {
    margin: 30px 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.image-caption {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 10px;
}

.post-quote {
    background-color: #f8f9fa;
    padding: 30px;
    border-left: 4px solid var(--primary-color);
    margin: 30px 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.post-quote blockquote {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.quote-author {
    font-weight: 500;
    text-align: right;
}

.post-tags {
    margin: 40px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.post-tags span {
    font-weight: 600;
}

.post-tags a {
    background-color: #f0f2f5;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-color);
    transition: var(--transition);
}

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

.post-share {
    margin: 40px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.post-share span {
    font-weight: 600;
}

.post-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #f0f2f5;
    border-radius: 50%;
    color: var(--text-color);
    transition: var(--transition);
}

.post-share a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 60px 0 0;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}

.prev-post a,
.next-post a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.next-post a {
    text-align: right;
}

.related-posts {
    background-color: #f8f9fa;
}

/* Responsive styles */
@media (max-width: 991px) {
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        flex: 0 0 100%;
        margin-bottom: 30px;
    }
    
    .interview-content {
        flex-direction: column;
    }
    
    .expert-photo {
        flex: 0 0 100%;
        max-width: 250px;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .post-header h1 {
        font-size: 2rem;
    }
    
    .menu-toggle {
        display: block;
    }
    
    nav {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: white;
        display: none;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    nav.active {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        margin: 0 0 15px 0;
    }
    
    nav ul li:last-child {
        margin-bottom: 0;
    }
    
    .cookie-content {
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 576px) {
    section {
        padding: 60px 0;
    }
    
    .hero {
        padding: 80px 20px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .post-header h1 {
        font-size: 1.8rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form form {
        padding: 25px;
    }
    
    .post-meta {
        gap: 15px;
    }
    
    .post-meta span {
        font-size: 0.85rem;
    }
}
