/* Base y Reset */
:root {
    --primary-color: #D94C1A;
    --secondary-color: #2C3A47;
    --accent-color: #FFC048;
    --text-color: #333333;
    --light-text: #777777;
    --lighter-text: #999999;
    --white: #FFFFFF;
    --off-white: #F9F9F9;
    --light-gray: #F1F1F1;
    --medium-gray: #E1E1E1;
    --dark-gray: #555555;
    --border-color: #EEEEEE;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --success-color: #28a745;
    --error-color: #dc3545;
    --warning-color: #ffc107;
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    
    --border-radius: 8px;
    --box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Open+Sans:wght@300;400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    font-size: 16px;
}

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

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

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

ul, ol {
    list-style-position: inside;
    margin-bottom: 1.5rem;
}

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

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1.5rem;
}

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

/* Botones */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

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

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

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

.btn-secondary:hover {
    background-color: #1e2832;
    color: var(--white);
}

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

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

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

nav ul {
    display: flex;
    gap: 30px;
    margin: 0;
}

nav ul li {
    list-style: none;
}

nav ul li a {
    color: var(--text-color);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    padding: 8px 0;
    position: relative;
}

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

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin-bottom: 5px;
    border-radius: 3px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.hero {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 100px 0;
    background-image: linear-gradient(rgba(44, 58, 71, 0.85), rgba(44, 58, 71, 0.85)), url('images/6.jpg');
    background-size: cover;
    background-position: center;
}

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

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

.hero h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

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

/* Banner de Página */
.page-banner {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
    background-image: linear-gradient(rgba(44, 58, 71, 0.85), rgba(44, 58, 71, 0.85)), url('images/7.jpg');
    background-size: cover;
    background-position: center;
}

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

.page-banner p {
    font-size: 1.25rem;
    color: var(--accent-color);
}

/* Featured Posts / Post Grid */
.featured-posts, .blog-posts {
    padding: 80px 0;
    background-color: var(--off-white);
}

.featured-posts h2, .blog-posts h2 {
    text-align: center;
    margin-bottom: 50px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.posts-grid.full-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

.post-card {
    background-color: var(--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.15);
}

.post-image {
    height: 220px;
    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: 25px;
}

.post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 0.875rem;
    color: var(--light-text);
}

.post-card h2, .post-card h3 {
    font-size: 1.35rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.post-card p {
    margin-bottom: 20px;
    color: var(--dark-gray);
}

.read-more {
    font-weight: 600;
    font-family: var(--font-heading);
    position: relative;
    padding-right: 22px;
}

.read-more:after {
    content: "→";
    position: absolute;
    right: 0;
    transition: var(--transition);
}

.read-more:hover:after {
    right: -5px;
}

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

/* Benefits Section */
.benefits {
    padding: 80px 0;
    background-color: var(--white);
}

.benefits h2 {
    text-align: center;
    margin-bottom: 50px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.benefit-card {
    padding: 30px;
    background-color: var(--off-white);
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

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

.benefit-card .icon {
    margin: 0 auto 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: var(--white);
}

.benefit-card h3 {
    margin-bottom: 15px;
}

.benefit-card p {
    color: var(--dark-gray);
    margin-bottom: 0;
}

/* Summary Next Section */
.summary-next {
    padding: 60px 0;
    background-color: var(--secondary-color);
    color: var(--white);
}

.summary-next .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.summary h2, .next-article h3 {
    color: var(--white);
    margin-bottom: 20px;
}

.summary p {
    color: var(--off-white);
}

.countdown {
    display: flex;
    gap: 20px;
    margin: 25px 0;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: var(--border-radius);
    min-width: 70px;
}

.time-unit span:first-child {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-heading);
    margin-bottom: 5px;
    color: var(--accent-color);
}

.time-unit span:last-child {
    font-size: 0.85rem;
    color: var(--off-white);
}

.next-article p {
    color: var(--off-white);
}

/* Footer */
footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 80px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

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

.footer-logo p {
    color: var(--medium-gray);
}

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

.footer-links ul {
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
    list-style: none;
}

.footer-links a {
    color: var(--medium-gray);
}

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

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--medium-gray);
}

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

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

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

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

.footer-bottom p {
    color: var(--medium-gray);
    margin-bottom: 10px;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 15px;
    z-index: 9999;
    display: none;
}

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

.cookie-buttons {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.btn-cookie {
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

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

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

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

.cookie-more-info {
    font-size: 0.9rem;
    color: var(--medium-gray);
}

.cookie-more-info a {
    color: var(--accent-color);
    text-decoration: underline;
}

/* About Page */
.about-intro {
    padding: 80px 0;
    background-color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 50px;
    margin-bottom: 60px;
}

.about-content h2 {
    margin-bottom: 25px;
}

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

.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.mission, .vision {
    padding: 30px;
    background-color: var(--off-white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.mission h2, .vision h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Team Section */
.team {
    padding: 80px 0;
    background-color: var(--off-white);
}

.team h2, .team-intro {
    text-align: center;
}

.team-intro {
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 1.2rem;
}

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

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

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

.team-member img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.team-member h3 {
    margin: 20px 0 5px;
}

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

.team-member p:nth-of-type(1) {
    color: var(--primary-color);
    font-weight: 600;
}

.team-member .social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 15px 0 20px;
}

.team-member .social-links a {
    color: var(--light-text);
}

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

/* Values Section */
.values {
    padding: 80px 0;
    background-color: var(--white);
}

.values h2 {
    text-align: center;
    margin-bottom: 50px;
}

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

.value-card {
    padding: 30px;
    background-color: var(--off-white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

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

.value-card .icon {
    margin: 0 auto 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: var(--white);
}

.value-card h3 {
    margin-bottom: 15px;
}

.value-card p {
    color: var(--dark-gray);
    margin-bottom: 0;
}

/* Contact Page */
.contact-section {
    padding: 80px 0;
    background-color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h2, .contact-form h2 {
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item .icon {
    min-width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-content h3 {
    margin-bottom: 5px;
}

.info-content p {
    color: var(--dark-gray);
    margin-bottom: 5px;
}

.social-contact h3 {
    margin: 30px 0 15px;
}

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

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

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

.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;
    margin-top: 3px;
}

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

.form-submit {
    text-align: right;
}

/* Map Section */
.map-section {
    padding: 80px 0;
    background-color: var(--off-white);
}

.map-section h2 {
    text-align: center;
    margin-bottom: 30px;
}

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

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

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

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--light-text);
}

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

.modal-content h2 {
    margin-bottom: 15px;
}

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

/* Post Content */
.post-content {
    padding: 80px 0;
    background-color: var(--off-white);
}

.post-header {
    margin-bottom: 30px;
}

.post-header h1 {
    margin-bottom: 20px;
}

.author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h3 {
    margin-bottom: 0;
    font-size: 1.1rem;
}

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

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

.post-body {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 40px;
}

.post-body h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.post-body h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.post-body ul, .post-body ol {
    margin-left: 20px;
}

.quote-box {
    background-color: var(--off-white);
    padding: 30px;
    border-left: 5px solid var(--primary-color);
    margin: 30px 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.quote-box blockquote {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 10px;
}

.quote-box cite {
    font-style: normal;
    color: var(--light-text);
}

.author-note {
    background-color: var(--off-white);
    padding: 25px;
    border-radius: var(--border-radius);
    margin-top: 40px;
}

.author-note h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 40px;
}

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

.tag-label, .share-label {
    font-weight: 600;
}

.tag {
    display: inline-block;
    padding: 5px 12px;
    background-color: var(--light-gray);
    color: var(--dark-gray);
    border-radius: 20px;
    font-size: 0.85rem;
    transition: var(--transition);
}

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

.share {
    display: flex;
    align-items: center;
    gap: 15px;
}

.share-btn {
    color: var(--dark-gray);
    transition: var(--transition);
}

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

.related-posts h3 {
    margin-bottom: 25px;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

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

.related-card:hover {
    transform: translateY(-5px);
}

.related-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.related-card h4 {
    padding: 15px 15px 10px;
    font-size: 1.1rem;
}

.related-card .read-more {
    display: block;
    padding: 0 15px 15px;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .posts-grid, .benefits-grid, .values-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 40px;
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .posts-grid, .benefits-grid, .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .summary-next .container, .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .mission-vision {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    nav ul {
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        display: none;
    }
    
    nav ul.show {
        display: flex;
    }
    
    .posts-grid.full-grid {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .post-footer {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .posts-grid, .benefits-grid, .values-grid {
        grid-template-columns: 1fr;
    }
    
    .countdown {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .post-body {
        padding: 25px;
    }
}
