/* Variables para temas */
:root {
    --primary-color: #4a6fa5;
    --secondary-color: #6389c3;
    --accent-color: #f3a953;
    --text-color: #333333;
    --text-light: #777777;
    --background-color: #ffffff;
    --background-alt: #f5f7fa;
    --border-color: #e2e8f0;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --error-color: #dc3545;
    --footer-background: #2c3e50;
    --footer-text: #f5f7fa;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Tema oscuro */
[data-theme="dark"] {
    --primary-color: #5a82c0;
    --secondary-color: #7da0dd;
    --accent-color: #ffc066;
    --text-color: #e0e0e0;
    --text-light: #b0b0b0;
    --background-color: #1a1a2e;
    --background-alt: #262640;
    --border-color: #3a3a5c;
    --footer-background: #0f172a;
    --footer-text: #e2e8f0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    transition: var(--transition);
}

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

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

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

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

p {
    margin-bottom: 1rem;
}

ul, ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

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

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

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

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

.btn-secondary:hover {
    background-color: rgba(74, 111, 165, 0.1);
}

/* Contenedor general */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header y navegación */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: var(--background-color);
    box-shadow: var(--shadow);
}

.logo img {
    max-height: 60px;
}

.theme-switcher button {
    background-color: var(--background-alt);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 8px 16px;
    font-size: 0.9rem;
}

nav {
    background-color: var(--primary-color);
    padding: 0 20px;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav a {
    display: block;
    color: white;
    padding: 15px 20px;
    font-weight: 500;
    transition: var(--transition);
}

nav a:hover, nav a.active {
    background-color: var(--secondary-color);
}

/* Hero section */
.hero {
    background-color: var(--background-alt);
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/hero.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 20px;
    margin-bottom: 60px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.hero .slogan {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-style: italic;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 15px 30px;
    border-radius: var(--border-radius);
    font-weight: 700;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    background-color: #e09341;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    color: white;
}

/* Page Banner (for inner pages) */
.page-banner {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 60px;
}

.page-banner h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-banner .slogan {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    font-style: italic;
}

/* Secciones principales */
main {
    padding-bottom: 60px;
}

section {
    margin-bottom: 60px;
}

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

section h2:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 20px auto 0;
}

/* Posts destacados */
.featured-posts {
    background-color: var(--background-alt);
    padding: 60px 0;
}

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

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

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

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

.post-card h3 {
    font-size: 1.2rem;
    margin: 20px 20px 10px;
}

.post-card p {
    margin: 0 20px 20px;
    color: var(--text-light);
}

.read-more {
    display: block;
    text-align: center;
    padding: 10px 20px;
    margin: 0 20px 20px;
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    font-weight: 500;
}

.read-more:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* Servicios */
.services {
    padding: 60px 0;
}

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

.service-card {
    background-color: var(--background-alt);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.service-card .icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(74, 111, 165, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    margin-bottom: 20px;
}

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

/* Testimonios */
.testimonials {
    background-color: var(--background-alt);
    padding: 60px 0;
}

.testimonial-slider {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.testimonial {
    background-color: var(--background-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    max-width: 500px;
    position: relative;
}

.testimonial:before {
    content: '"';
    font-size: 5rem;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: serif;
}

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

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

.client img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.client h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background-color: var(--footer-background);
    color: var(--footer-text);
    padding: 60px 20px 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo, .footer-links, .footer-contact, .footer-social {
    margin-bottom: 30px;
    min-width: 250px;
}

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

footer h4 {
    color: white;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

footer h4:after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
    margin-top: 10px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

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

.footer-links a {
    color: var(--footer-text);
    transition: var(--transition);
}

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

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

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

.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);
    color: var(--footer-text);
    border-radius: 50%;
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.legal-links a {
    color: var(--footer-text);
    font-size: 0.9rem;
}

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

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--background-color);
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 9999;
    display: none;
}

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

.cookie-content p {
    margin-bottom: 15px;
}

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

.cookie-content a {
    font-size: 0.9rem;
    text-decoration: underline;
}

/* Blog Page */
.blog-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.blog-post {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

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

.post-content {
    padding: 20px;
}

.post-content h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-align: left;
}

.post-content h2:after {
    display: none;
}

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

.read-more-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    margin-top: 15px;
}

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

/* Blog Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background-color: var(--background-color);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

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

.sidebar-widget h3:after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
    margin-top: 10px;
}

.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.category-list a:hover {
    background-color: var(--background-alt);
}

.popular-posts {
    list-style: none;
    padding: 0;
}

.popular-posts li {
    margin-bottom: 15px;
}

.popular-posts a {
    display: flex;
    align-items: center;
    gap: 15px;
}

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

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.subscribe-form input {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.subscribe-form button {
    background-color: var(--primary-color);
    color: white;
    padding: 10px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.subscribe-form button:hover {
    background-color: var(--secondary-color);
}

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

/* About Page */
.about-intro {
    margin-bottom: 60px;
}

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

.about-text h2 {
    text-align: left;
}

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

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

.team-grid, .values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

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

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

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

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

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

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

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    transition: var(--transition);
}

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

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

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

.value-card .icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(74, 111, 165, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 20px;
}

.cta-section {
    background-color: var(--primary-color);
    padding: 60px 20px;
    text-align: center;
    color: white;
    border-radius: var(--border-radius);
    margin-bottom: 60px;
}

.cta-section h2 {
    color: white;
    margin-bottom: 20px;
}

.cta-section h2:after {
    background-color: white;
}

.cta-section p {
    max-width: 700px;
    margin: 0 auto 30px;
}

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

.cta-section .cta-button:hover {
    background-color: var(--accent-color);
    color: white;
}

/* Contact Page */
.contact-section .container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.contact-info {
    background-color: var(--background-alt);
    padding: 30px;
    border-radius: var(--border-radius);
}

.contact-info h2 {
    text-align: left;
    margin-bottom: 30px;
}

.contact-info h2:after {
    margin-left: 0;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.info-item .icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(74, 111, 165, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0;
}

.info-item h3 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.social-contact {
    margin-top: 30px;
}

.social-contact h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.contact-form-container h2 {
    text-align: left;
}

.contact-form-container h2:after {
    margin-left: 0;
}

.contact-form-container > p {
    margin-bottom: 30px;
}

.contact-form, .consultation-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.form-group {
    flex: 1 0 calc(50% - 10px);
    margin-bottom: 20px;
}

.full-width {
    flex: 1 0 100%;
}

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

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--background-color);
    color: var(--text-color);
    transition: var(--transition);
}

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

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

.checkbox-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

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

.checkbox-item.terms {
    margin-top: 10px;
}

.form-submit {
    width: 100%;
    text-align: center;
    margin-top: 20px;
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

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

.map-section {
    margin-top: 60px;
}

.map-container {
    width: 100%;
    height: 450px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Consultas Page */
.consultation-info .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.info-text h2 {
    text-align: left;
}

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

.consultation-benefits {
    margin-top: 30px;
}

.consultation-benefits h3 {
    margin-bottom: 20px;
}

.consultation-benefits ul {
    list-style: none;
    padding: 0;
}

.consultation-benefits li {
    display: flex;
    margin-bottom: 20px;
}

.benefit-text {
    flex: 1;
}

.benefit-text h4 {
    margin-bottom: 5px;
}

.consultation-request {
    background-color: var(--background-alt);
    padding: 60px 0;
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
}

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

.testimonial-card {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.testimonial-content {
    margin-bottom: 20px;
    position: relative;
    padding-top: 30px;
}

.testimonial-content:before {
    content: '"';
    font-size: 5rem;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    top: -20px;
    left: 0;
    font-family: serif;
}

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

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
}

.testimonial-author h4 {
    margin-bottom: 5px;
}

.testimonial-author p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.faq-section {
    padding: 60px 0;
}

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

.faq-item {
    background-color: var(--background-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.faq-item h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

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

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

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

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

.modal-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 30px;
    border: none;
    border-radius: var(--border-radius);
    margin-top: 20px;
    cursor: pointer;
    transition: var(--transition);
}

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

/* Responsive Styles */
@media (max-width: 992px) {
    .blog-container, .contact-section .container, .consultation-info .container {
        grid-template-columns: 1fr;
    }
    
    .blog-post {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
    }
    
    nav a {
        padding: 12px;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .about-intro .container {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        grid-row: 1;
    }
    
    .about-text {
        grid-row: 2;
    }
    
    .footer-bottom {
        flex-direction: column;
    }
}
