/* Variables globales */
:root {
    --primary-color: #1a5276;
    --secondary-color: #2e86c1;
    --accent-color: #f39c12;
    --text-color: #333;
    --text-color-light: #666;
    --background-color: #fff;
    --background-alt: #f9f9f9;
    --border-color: #e0e0e0;
    --success-color: #27ae60;
    --error-color: #e74c3c;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Playfair Display', serif;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 4px;
    --container-width: 1200px;
}

/* Importaciones de fuentes (se cargarán desde CDN) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

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

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;
}

ul, ol {
    list-style: none;
}

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

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

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

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

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

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

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

.btn-cookie {
    padding: 8px 16px;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    font-family: var(--font-primary);
    background-color: var(--background-color);
    color: var(--text-color);
    font-size: 0.875rem;
}

.btn-cookie:hover {
    background-color: var(--background-alt);
}

.btn-complaints {
    background-color: transparent;
    border: none;
    color: var(--text-color-light);
    cursor: pointer;
    font-size: 0.875rem;
    text-decoration: underline;
    transition: var(--transition);
}

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

/* Header y navegación */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    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: 30px;
}

nav ul li:first-child {
    margin-left: 0;
}

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

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

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

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

.font-size-control {
    margin-left: 20px;
}

#reduce-font {
    background-color: transparent;
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.875rem;
    transition: var(--transition);
}

#reduce-font:hover {
    background-color: var(--background-alt);
}

/* Sección Hero */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/1.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 120px 0;
    position: relative;
}

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

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Tours destacados */
.featured-tours {
    padding: 80px 0;
}

.featured-tours h2,
.why-us h2,
.testimonials h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

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

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

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

.tour-card h3 {
    padding: 20px 20px 10px;
}

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

.tour-card .btn-secondary {
    margin: 0 20px 20px;
}

/* Sección Why Us */
.why-us {
    background-color: var(--background-alt);
    padding: 80px 0;
}

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

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

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

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(26, 82, 118, 0.1);
    border-radius: 50%;
    margin: 0 auto 20px;
}

.feature-icon svg {
    color: var(--primary-color);
}

.feature h3 {
    margin-bottom: 10px;
}

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

/* Sección de Testimonios */
.testimonials {
    padding: 80px 0;
}

.testimonial-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 0;
    scrollbar-width: none;
}

.testimonial-slider::-webkit-scrollbar {
    display: none;
}

.testimonial {
    flex: 0 0 calc(50% - 15px);
    min-width: 300px;
}

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

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

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

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

.testimonial-author h4 {
    margin-bottom: 0;
    font-size: 1rem;
}

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

/* Sección CTA */
.cta {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 80px 0;
}

.cta h2,
.cta p {
    color: white;
}

.cta h2 {
    margin-bottom: 1rem;
}

.cta p {
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

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

/* Footer */
footer {
    background-color: #1a3141;
    color: white;
    padding: 60px 0 20px;
}

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

.footer-column h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-column p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

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

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

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

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

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

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

.social-links svg {
    width: 18px;
    height: 18px;
    color: white;
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin-bottom: 0;
}

.footer-bottom .btn-complaints {
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom .btn-complaints:hover {
    color: white;
}

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

.cookie-banner.show {
    display: block;
}

.cookie-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

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

.cookie-link {
    margin-left: 10px;
    font-size: 0.875rem;
}

/* Modal de quejas */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    overflow: auto;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

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

/* Formulario de quejas */
#complaints-form {
    margin-top: 20px;
}

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

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

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

.form-group textarea {
    resize: vertical;
}

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

/* Página de Blog */
.blog-header,
.about-header,
.contact-header {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 80px 0;
}

.blog-header h1,
.about-header h1,
.contact-header h1 {
    color: white;
}

.blog-header p,
.about-header p,
.contact-header p {
    max-width: 600px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
}

.blog-posts {
    padding: 80px 0;
}

.blog-post {
    margin-bottom: 80px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
}

.blog-post:last-child {
    margin-bottom: 0;
}

.post-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

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

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

.post-excerpt h3 {
    margin-top: 25px;
    margin-bottom: 15px;
}

.post-excerpt p {
    margin-bottom: 15px;
}

.post-content .btn-secondary {
    margin-top: 20px;
}

/* Página Sobre Nosotros */
.about-story,
.our-values,
.our-team,
.our-approach {
    padding: 80px 0;
}

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

.about-image img,
.approach-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.about-text h2,
.approach-text h2 {
    margin-bottom: 20px;
}

.our-values {
    background-color: var(--background-alt);
}

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

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

.value-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(26, 82, 118, 0.1);
    border-radius: 50%;
    margin: 0 auto 20px;
}

.value-icon svg {
    color: var(--primary-color);
}

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

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

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

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

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

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

.team-member p {
    padding: 0 15px 20px;
    margin-bottom: 0;
}

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

.approach-text ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.approach-text ul li {
    margin-bottom: 10px;
}

/* Página de Contacto */
.contact-info {
    padding: 80px 0;
}

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

.contact-methods {
    margin-bottom: 40px;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.method-icon {
    flex: 0 0 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(26, 82, 118, 0.1);
    border-radius: 50%;
    margin-right: 15px;
}

.method-icon svg {
    color: var(--primary-color);
}

.method-details h3 {
    margin-bottom: 5px;
}

.method-details p {
    margin-bottom: 5px;
}

.detail-note {
    font-size: 0.875rem;
    color: var(--text-color-light);
}

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

.contact-form-container {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-form-container h2 {
    margin-bottom: 20px;
}

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

.full-width {
    grid-column: span 2;
}

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

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

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-container input {
    width: auto;
}

.faq {
    background-color: var(--background-alt);
    padding: 80px 0;
}

.faq h2 {
    text-align: center;
    margin-bottom: 40px;
}

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

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

.faq-item h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

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

.thank-you-message {
    text-align: center;
    padding: 20px 0;
}

.thank-you-message svg {
    color: var(--success-color);
    margin-bottom: 20px;
}

/* Media queries para responsive */
@media (max-width: 992px) {
    .blog-post {
        grid-template-columns: 1fr;
    }
    
    .about-content,
    .approach-content {
        grid-template-columns: 1fr;
    }
    
    .about-image,
    .approach-image {
        margin-bottom: 30px;
    }
    
    .contact-columns {
        grid-template-columns: 1fr;
    }
    
    .contact-column:first-child {
        order: 2;
    }
    
    .contact-column:last-child {
        order: 1;
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 15px 10px;
    }
    
    .font-size-control {
        margin: 15px 0 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .feature-grid,
    .values-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        grid-template-columns: 1fr;
    }
    
    .full-width {
        grid-column: span 1;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .testimonial {
        flex: 0 0 100%;
    }
    
    .testimonial-slider {
        padding-bottom: 30px;
    }
    
    .cookie-content {
        flex-direction: column;
    }
    
    .cookie-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cookie-link {
        text-align: center;
        margin: 10px 0 0;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero, .tour-card, .feature, .testimonial, .blog-post, .team-member, .faq-item {
    animation: fadeIn 0.6s ease-out;
}
