:root {
    --primary-color: #3498db;
    --primary-dark: #2980b9;
    --secondary-color: #2ecc71;
    --accent-color: #f39c12;
    --text-color: #333;
    --text-light: #777;
    --bg-color: #fff;
    --bg-light: #f8f9fa;
    --bg-dark: #34495e;
    --border-color: #e0e0e0;
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
    --font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --container-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

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

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

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

ul {
    list-style: none;
}

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

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

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

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

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

.cta-center {
    text-align: center;
    margin: 40px 0;
}

/* Header */
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;
}

.logo {
    display: flex;
    align-items: center;
}

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

nav ul {
    display: flex;
}

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

nav ul li a {
    font-weight: 600;
    color: var(--text-color);
    position: relative;
}

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

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

.fecha-hora {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(52, 152, 219, 0.8), rgba(41, 128, 185, 0.9)), url('images/1.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
}

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

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
}

/* Featured Posts */
.featured-posts {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.featured-posts h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.2rem;
    position: relative;
}

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

.post-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(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.post-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.post-content {
    padding: 20px;
}

.post-content h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

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

/* Newsletter */
.newsletter {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.newsletter h2 {
    margin-bottom: 20px;
    font-size: 2rem;
}

.newsletter p {
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 1rem;
}

.newsletter-form button {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    background-color: var(--bg-dark);
}

.newsletter-form button:hover {
    background-color: var(--text-color);
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
    background-color: white;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.2rem;
    position: relative;
}

.testimonials h2:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 15px auto 0;
}

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

.testimonial-card {
    background: var(--bg-light);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
}

.testimonial-card:before {
    content: '"';
    font-size: 5rem;
    color: rgba(0, 0, 0, 0.05);
    position: absolute;
    top: -15px;
    left: 10px;
}

.testimonial-card p {
    margin-bottom: 15px;
    font-style: italic;
}

.testimonial-card h4 {
    color: var(--text-color);
    font-weight: 600;
}

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

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

.footer-info .footer-logo {
    max-width: 150px;
    margin-bottom: 15px;
}

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

.footer-links h3:after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
    margin-top: 8px;
}

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

.footer-links ul li a {
    color: #ddd;
}

.footer-links ul li a:hover {
    color: white;
}

.footer-contact h3 {
    position: relative;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-contact h3:after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
    margin-top: 8px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.footer-contact p svg {
    margin-right: 10px;
}

.social-media {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

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

.social-media a svg {
    fill: white;
}

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

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

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #333;
    color: white;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    display: none;
}

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

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

.cookie-more-info {
    font-size: 0.9rem;
}

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

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

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 550px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close-modal, .close-thanks {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #777;
}

.close-modal:hover, .close-thanks:hover {
    color: #333;
}

.thanks-content {
    text-align: center;
    padding: 20px 0;
}

.thanks-content svg {
    margin-bottom: 20px;
}

.thanks-content h2 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

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

/* Feedback Form */
#feedback-form {
    display: grid;
    gap: 20px;
}

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

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

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

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

.checkbox-group input {
    width: auto;
    margin-right: 10px;
}

/* Page Banner */
.page-banner {
    background: linear-gradient(rgba(52, 152, 219, 0.9), rgba(41, 128, 185, 0.9)), url('images/2.jpg');
    background-size: cover;
    background-position: center;
    padding: 60px 0;
    text-align: center;
    color: white;
}

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

.page-banner p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

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

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-content h2 {
    margin-bottom: 20px;
    font-size: 2rem;
    position: relative;
}

.about-content h2:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin-top: 10px;
}

.about-content p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.7;
}

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

.team {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.team h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.2rem;
    position: relative;
}

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

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

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

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

.team-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

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

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

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

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

.values h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.2rem;
    position: relative;
}

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

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

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

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

.value-icon {
    margin-bottom: 20px;
    color: var(--primary-color);
}

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

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

.cta-section {
    padding: 60px 0;
    background: linear-gradient(rgba(46, 204, 113, 0.9), rgba(39, 174, 96, 0.9)), url('images/3.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 30px;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.cta-buttons .btn-outline {
    border-color: white;
    color: white;
}

.cta-buttons .btn-outline:hover {
    background-color: white;
    color: var(--secondary-color);
}

/* Blog Page */
.blog-filters {
    padding: 30px 0;
    background-color: white;
    border-bottom: 1px solid var(--border-color);
}

.blog-filters .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-group {
    display: flex;
    align-items: center;
}

.filter-group label {
    margin-right: 10px;
    font-weight: 600;
}

.filter-group select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
}

.search-bar {
    display: flex;
    width: 300px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
}

.search-bar button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
}

.search-bar button:hover {
    color: var(--primary-color);
}

.blog-posts {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.blog-posts .post-card {
    display: grid;
    grid-template-columns: 1fr 2fr;
    margin-bottom: 30px;
}

.blog-posts .post-img {
    height: 100%;
}

.blog-posts .post-content {
    padding: 25px;
}

.blog-posts .post-content h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.blog-posts .post-content p {
    margin-bottom: 20px;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    padding: 15px 25px 0;
    font-size: 0.9rem;
}

.post-category {
    color: var(--primary-color);
    font-weight: 600;
}

.post-date {
    color: var(--text-light);
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-comments {
    font-size: 0.9rem;
    color: var(--text-light);
}

.pagination {
    padding: 30px 0 60px;
    background-color: var(--bg-light);
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-color);
    font-weight: 600;
    transition: var(--transition);
}

.page-link.active, .page-link:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-dots {
    font-weight: 600;
    margin: 0 5px;
}

.page-next {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-weight: 600;
    color: var(--text-color);
    transition: var(--transition);
}

.page-next span {
    margin-right: 8px;
}

.page-next:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Contact Page */
.contact-info {
    padding: 60px 0;
    background-color: white;
}

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

.contact-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

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

.contact-icon {
    margin-bottom: 20px;
    color: var(--primary-color);
}

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

.contact-card p {
    margin-bottom: 5px;
    color: var(--text-light);
}

.contact-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.contact-form-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

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

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

#contact-form {
    display: grid;
    gap: 20px;
}

.map-section {
    padding: 60px 0;
    background-color: white;
}

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

.faq-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

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

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

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

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

.faq-question {
    padding: 20px;
    cursor: pointer;
    position: relative;
}

.faq-question:after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
}

.faq-item.active .faq-question:after {
    content: '−';
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .blog-posts .post-card {
        grid-template-columns: 1fr;
    }

    .blog-posts .post-img {
        height: 300px;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }
}

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

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    header .container {
        flex-direction: column;
    }

    .logo {
        margin-bottom: 15px;
    }

    nav ul {
        margin-bottom: 15px;
    }

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

    .post-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input,
    .newsletter-form button {
        border-radius: var(--border-radius);
        width: 100%;
    }

    .newsletter-form input {
        margin-bottom: 10px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links h3:after,
    .footer-contact h3:after {
        margin: 8px auto 0;
    }

    .footer-contact p {
        justify-content: center;
    }

    .blog-filters .container {
        flex-direction: column;
        align-items: stretch;
    }

    .filters {
        flex-direction: column;
    }

    .search-bar {
        width: 100%;
    }
}

@media (max-width: 480px) {
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 5px 10px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .contact-form-container {
        padding: 20px;
    }
}
