:root {
    --primary-color: #2E8B57;
    --secondary-color: #FF6B35;
    --accent-color: #FFD166;
    --text-color: #333;
    --bg-color: #ffffff;
    --card-bg: #f8f9fa;
    --border-color: #e9ecef;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --hover-color: #0097CC;
    --hover-shadow: rgba(0, 151, 204, 0.4);
}

[data-theme="oscuro"] {
    --primary-color: #4CAF50;
    --secondary-color: #FF9800;
    --accent-color: #FFC107;
    --text-color: #f8f9fa;
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --border-color: #333;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --hover-color: #0097CC;
    --hover-shadow: rgba(0, 151, 204, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: var(--transition);
}

/* Header y Navegación */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--bg-color);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 50px;
    transition: var(--transition);
}

.nav-menu {
    display: flex;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-color);
    min-width: 200px;
    box-shadow: var(--shadow);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    list-style: none;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 0.8rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.dropdown-menu li a:hover {
    background: var(--primary-color);
    color: white;
}

/* Toggle del tema */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
}

.theme-toggle:hover {
    background: var(--card-bg);
}

/* WhatsApp Chatbot */
.whatsapp-chat {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../uploads/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 80px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s both;
}

/* ===== BOTÓN BASE ===== */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

/* ===== HOVER GLOBAL DE BOTONES — azul del logo ===== */
.btn:hover,
a.btn:hover,
button.btn:hover {
    background: var(--hover-color) !important;
    color: white !important;
    border-color: var(--hover-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--hover-shadow);
    opacity: 1 !important;
}

/* ===== BOTONES DENTRO DE CARDS — sin conflicto de transform ===== */
.destino-card .btn:hover,
.actividad-card .btn:hover,
.card .btn:hover,
.event-card .btn:hover {
    background: var(--hover-color) !important;
    color: white !important;
    border-color: var(--hover-color) !important;
    transform: none !important;
    box-shadow: 0 4px 12px var(--hover-shadow);
    opacity: 1 !important;
}

/* ===== BOTONES BOOTSTRAP — corrige hover blanco ===== */
.btn-primary:hover,
.btn-success:hover,
.btn-outline-primary:hover,
.btn-outline-success:hover {
    background-color: var(--hover-color) !important;
    border-color: var(--hover-color) !important;
    color: white !important;
    opacity: 1 !important;
}

/* ===== BOTONES DE FORMULARIO (lupa, submit) ===== */
button[type="submit"]:hover,
input[type="submit"]:hover {
    background-color: var(--hover-color) !important;
    border-color: var(--hover-color) !important;
    color: white !important;
    opacity: 1 !important;
}

/* Secciones */
.section {
    padding: 5rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Tarjetas de Destinos */
.destinos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.destino-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.destino-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.destino-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.destino-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.destino-content {
    padding: 1.5rem;
}

/* Carrusel */
.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    min-width: 100%;
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-control:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-control.prev {
    left: 0;
    border-radius: 0 5px 5px 0;
}

.carousel-control.next {
    right: 0;
    border-radius: 5px 0 0 5px;
}

/* Actividades Grid */
.actividades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.actividad-card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.actividad-card:hover {
    transform: translateY(-3px);
}

.actividad-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.actividad-content {
    padding: 1rem;
}

/* Footer */
.footer {
    background: var(--card-bg);
    color: var(--text-color);
    padding: 3rem 0 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.footer-section p,
.footer-section ul li,
.footer-section span {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    word-break: break-word;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--hover-color);
    transform: translateY(-2px);
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background: var(--bg-color);
    color: var(--text-color);
    min-width: 0;
    max-width: 100%;
}

.newsletter-form button {
    white-space: nowrap;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Botón volver arriba */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease both;
}

/* Responsive */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 3px 0;
    transition: var(--transition);
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-color);
        flex-direction: column;
        transition: var(--transition);
        padding: 2rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 1rem;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .actividades-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer {
        padding: 2rem 0 1rem;
    }

    .newsletter-form {
        flex-direction: row;
    }

    .newsletter-form input {
        font-size: 14px;
    }

    .back-to-top {
        bottom: 80px;
        right: 15px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 1.5rem 0 1rem;
    }

    .footer-container {
        padding: 0 1rem;
        gap: 1.5rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }

    .social-links {
        justify-content: center;
    }

    .back-to-top {
        bottom: 70px;
        right: 10px;
    }
}

/* ============================================
   ESTILOS ESPECÍFICOS PARA VALORES CORPORATIVOS
   ============================================ */
.valores-section .valor-card {
    background: transparent;
    border-radius: 0;
    padding: 1.5rem 1rem;
    box-shadow: none;
    text-align: center;
}

.valores-section .valor-card:hover {
    transform: translateY(-5px);
    background: transparent;
    box-shadow: none;
}

.valores-section .valor-icon-circle {
    width: 80px;
    height: 80px;
    background: rgba(46, 139, 87, 0.12);
    margin: 0 auto 1.2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.valores-section .valor-icon-circle i {
    font-size: 2rem;
    color: var(--primary-color);
    margin: 0;
}

.valores-section .valor-card:hover .valor-icon-circle {
    background: var(--primary-color);
    transform: scale(1.05);
}

.valores-section .valor-card:hover .valor-icon-circle i {
    color: white;
}

.valores-section .valor-card h4 {
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.valores-section .valor-card p {
    color: #555;
    font-size: 0.85rem;
    line-height: 1.5;
    max-width: 280px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .valores-section .valor-icon-circle {
        width: 70px;
        height: 70px;
    }

    .valores-section .valor-icon-circle i {
        font-size: 1.7rem;
    }

    .valores-section .valor-card h4 {
        font-size: 1.1rem;
    }

    .valores-section .valor-card p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .valores-section .valor-icon-circle {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }

    .valores-section .valor-icon-circle i {
        font-size: 1.5rem;
    }
}

/* ============================================
   CORRECCIÓN HOVER BOTONES PÁGINA DE EVENTOS
   Afecta: "Más Info", "Ver eventos actuales",
   "Cambiar Mes", "Contáctanos", pills de meses,
   lupa de búsqueda
   ============================================ */

/* Clase propia de eventos.php */
.btn-detalle:hover {
    background: var(--hover-color) !important;
    color: white !important;
    border-color: var(--hover-color) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px var(--hover-shadow) !important;
    opacity: 1 !important;
}

/* Pills de meses disponibles y botones outline */
.btn.btn-outline-primary:hover,
a.btn-outline-primary:hover,
.btn.btn-outline-secondary:hover,
a.btn-outline-secondary:hover {
    background-color: var(--hover-color) !important;
    border-color: var(--hover-color) !important;
    color: white !important;
    opacity: 1 !important;
}

/* Lupa y cualquier botón submit */
.btn.btn-primary:hover,
button.btn-primary:hover,
button[type="submit"].btn:hover,
button[type="submit"]:hover {
    background-color: var(--hover-color) !important;
    border-color: var(--hover-color) !important;
    color: white !important;
    opacity: 1 !important;
}

/* Botón "Contáctanos" que usa accent-color como fondo inline */
a.btn-detalle[style*="accent-color"]:hover,
a.btn-detalle[style*="background"]:hover {
    background: var(--hover-color) !important;
    color: white !important;
    opacity: 1 !important;
}