* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --accent-color: #80b423;
    --green-primary: #80b423;
    --green-dark: #6a9a1d;
    --green-light: #9bc73a;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #ecf0f1;
    --white: #ffffff;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 50px rgba(0, 0, 0, 0.15);
}

body {
    font-family: "Montserrat", Arial, sans-serif;
    background: #f9f9f9;
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}


/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Hero Section */
.hero {
    position: relative;
    background: url('https://www.kalearte.com/wp-content/themes/newKalearte/img/carousel/vitoria.jpg') no-repeat center center;
    background-size: cover;
    color: white;
    padding: 100px 0 80px;
    /* Increased padding slightly for better look */
    text-align: center;
    overflow: hidden;
    margin-top: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    /* Dark overlay */
    z-index: 0;
}

.hero-text-overlay {
    background: rgba(55, 54, 54, 0.53);
    padding: 10px 20px;
    border-radius: 5px;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -1px;
    animation: fadeInUp 0.8s ease;
}

.hero p {
    font-size: 22px;
    opacity: 0.95;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

/* Page Header */
.page-header {
    position: relative;
    background: linear-gradient(135deg, #80b423 0%, #6a9a1d 100%);
    color: white;
    padding: 80px 0 60px;
    overflow: hidden;
    margin-top: 0;
}

/* Hero con imagen de fondo */
.hero.has-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hero.has-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(128, 180, 35, 0.85) 0%, rgba(106, 154, 29, 0.85) 100%);
    z-index: 1;
}

.hero.has-image .hero-content {
    position: relative;
    z-index: 2;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,144C960,149,1056,139,1152,122.7C1248,107,1344,85,1392,74.7L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.page-header-content {
    position: relative;
    z-index: 1;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: white;
    text-decoration: none;
    margin-bottom: 30px;
    font-weight: 500;
    opacity: 0.9;
    transition: all 0.3s;
    font-size: 16px;
}

.back-link:hover {
    opacity: 1;
    transform: translateX(-5px);
}

.page-header h1 {
    font-size: 48px;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: -1px;
}

.page-header .description {
    font-size: 20px;
    opacity: 0.95;
    max-width: 800px;
    font-weight: 300;
    line-height: 1.6;
}

/* Main Content */
.main-content {
    padding: 80px 30px;
}

/* Temáticas Grid */
.tematicas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 20px;
    justify-content: center;
}

.tematica-card {
    position: relative;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    min-height: 380px;
    align-items: center;
    /* Centrar todo horizontalmente */
    text-align: center;
}

.tematica-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.tematica-image-container {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    background: #f0f0f0;
}

.tematica-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.tematica-card:hover .tematica-image-container img {
    transform: scale(1.05);
}

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    background: #e1e8ed;
}

.tematica-card-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.tematica-card h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: 700;
}

.btn-card {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, #80b423 0%, #6a9a1d 100%);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(128, 180, 35, 0.3);
}

.tematica-card:hover .btn-card {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(128, 180, 35, 0.4);
}

/* Visitas List */
.visitas-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 20px;
}

.visita-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s;
    border: 1px solid #e0e0e0;
}

.visita-card:hover {
    box-shadow: var(--shadow-hover);
}

.visita-row {
    display: flex;
    align-items: stretch;
    min-height: 200px;
}

.visita-image {
    width: 300px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.visita-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.visita-card:hover .visita-image img {
    transform: scale(1.05);
}

.no-image-visita {
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #ccc;
}

.visita-content {
    flex: 1;
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.visita-content h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
}

.visita-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.6;
}

.visita-meta {
    display: flex;
    gap: 15px;
}

.capacidad {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: 600;
    color: var(--text-light);
    font-size: 14px;
    border: 1px solid #e0e0e0;
    margin-bottom: 0;
}

.precio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
    border: 1px solid #e0e0e0;
    margin-bottom: 0;
}

.visita-actions {
    width: 200px;
    border-left: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    flex-shrink: 0;
}

.visita-actions .btn {
    border-radius: 6px;
    padding: 12px 25px;
    font-size: 15px;
    width: auto;
    background: linear-gradient(135deg, #80b423 0%, #6a9a1d 100%);
    box-shadow: none;
}

.visita-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(128, 180, 35, 0.3);
}

@media (max-width: 900px) {
    .visita-row {
        flex-direction: column;
    }

    .visita-image {
        width: 100%;
        height: 200px;
    }

    .visita-actions {
        width: 100%;
        border-left: none;
        border-top: 1px solid #e0e0e0;
        padding: 20px;
    }
}

/* Horarios Container */
.horarios-container {
    background: var(--bg-light);
    padding: 50px;
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }

    to {
        opacity: 1;
        max-height: 2000px;
    }
}

.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
    font-size: 16px;
}

.horarios-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.08);
}

.tab {
    padding: 15px 30px;
    background: none;
    border: none;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    position: relative;
    bottom: -2px;
}

.tab:hover {
    color: var(--primary-color);
}

.tab.active {
    color: var(--green-primary);
    border-bottom-color: var(--green-primary);
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.horarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.horario-item {
    background: white;
    padding: 30px;
    border-radius: 16px;
    border: 2px solid transparent;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.horario-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #80b423 0%, #6a9a1d 100%);
    transform: scaleY(0);
    transition: transform 0.3s;
}

.horario-item:hover {
    border-color: var(--green-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(128, 180, 35, 0.15);
}

.horario-item:hover::before {
    transform: scaleY(1);
}

.horario-fecha {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.horario-hora {
    font-size: 24px;
    color: var(--green-primary);
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.plazas-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.plazas-bar {
    flex: 1;
    height: 10px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.plazas-fill {
    height: 100%;
    transition: width 0.5s ease;
    border-radius: 10px;
}

.plazas-fill.available {
    background: linear-gradient(90deg, #4caf50 0%, #8bc34a 100%);
}

.plazas-fill.limited {
    background: linear-gradient(90deg, #ff9800 0%, #ffc107 100%);
}

.plazas-fill.full {
    background: linear-gradient(90deg, #f44336 0%, #e91e63 100%);
}

.plazas-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
}

.completo-badge {
    background: linear-gradient(135deg, #f44336 0%, #e91e63 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 35px;
    background: #80b423;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 3px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    box-shadow: 0 4px 15px rgba(128, 180, 35, 0.3);
    letter-spacing: 0.5px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(128, 180, 35, 0.4);
    background: #333;
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: #80b423;
    box-shadow: 0 4px 15px rgba(128, 180, 35, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(128, 180, 35, 0.4);
    background: #333;
}

.btn-success {
    background: #80b423;
    box-shadow: 0 4px 15px rgba(128, 180, 35, 0.3);
}

.btn-success:hover {
    box-shadow: 0 8px 25px rgba(128, 180, 35, 0.4);
    background: #333;
}

.btn-secondary {
    background: #95a5a6;
    box-shadow: 0 4px 15px rgba(149, 165, 166, 0.3);
}

.btn-full {
    width: 100%;
}

.btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.85);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 50px;
    border-radius: 24px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 100px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--bg-light);
}

.modal-header h2 {
    font-size: 32px;
    color: var(--primary-color);
    font-weight: 700;
}

.modal-close {
    font-size: 36px;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    color: var(--text-dark);
    background: var(--bg-light);
    transform: rotate(90deg);
}

/* Form */
.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 15px;
}

.required {
    color: var(--secondary-color);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s;
    background: white;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(128, 180, 35, 0.1);
}

input.error {
    border-color: var(--secondary-color);
}

.error-message {
    color: var(--secondary-color);
    font-size: 13px;
    margin-top: 8px;
    font-weight: 500;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-wrapper label {
    margin-bottom: 0;
    font-weight: 500;
    cursor: pointer;
}

/* Personas Form */
.personas-container {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 30px;
}

.personas-container>h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 20px;
}

.persona-item {
    background: white;
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 20px;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.persona-item:hover {
    border-color: var(--green-primary);
}

.persona-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--bg-light);
}

.persona-header h4 {
    color: var(--green-primary);
    font-size: 18px;
    font-weight: 700;
}

/* Alerts */
.alert {
    padding: 18px 24px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-size: 15px;
    border-left: 4px solid;
    line-height: 1.6;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-color: #4caf50;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-color: #f44336;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-color: #ff9800;
}

.alert-info {
    background: #e8f5e9;
    color: #2e7d32;
    border-color: var(--green-primary);
}

/* Empty State */
.empty-message {
    text-align: center;
    padding: 100px 20px;
}

.empty-message h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.empty-message p {
    color: var(--text-light);
    font-size: 18px;
}

/* Reserva Info */
.reserva-info {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 35px;
}

.reserva-info h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 700;
}

.reserva-info p {
    margin-bottom: 10px;
    color: var(--text-dark);
    font-size: 15px;
}

.reserva-info strong {
    color: var(--primary-color);
    font-weight: 600;
}

.codigo-reserva {
    background: white;
    padding: 35px;
    border-radius: 16px;
    text-align: center;
    border: 3px dashed var(--green-primary);
    margin: 30px 0;
}

.codigo-reserva h3 {
    color: var(--green-primary);
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.codigo-reserva .codigo {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 3px;
    font-family: 'Courier New', monospace;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scrollbar personalizado */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #80b423 0%, #6a9a1d 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #6a9a1d 0%, #5d8519 100%);
}

/* Reserva Búsqueda */
.reserva-busqueda {
    max-width: 600px;
    margin: 0 auto;
}

.card {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: var(--shadow);
}

.card h2 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.text-muted {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 15px;
}

.link {
    color: var(--green-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.link:hover {
    text-decoration: underline;
}

/* Reserva Detalles */
.reserva-info-detalle {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 30px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.info-row:last-child {
    border-bottom: none;
}

.info-row strong {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 15px;
}

.info-row span {
    color: var(--text-dark);
    font-size: 15px;
}

.codigo-reserva {
    font-family: 'Courier New', monospace;
    font-size: 20px;
    font-weight: 700;
    color: var(--green-primary);
    letter-spacing: 2px;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: linear-gradient(135deg, #4caf50 0%, #8bc34a 100%);
    color: white;
}

.badge-error {
    background: linear-gradient(135deg, #f44336 0%, #e91e63 100%);
    color: white;
}

.badge-info {
    background: linear-gradient(135deg, #80b423 0%, #6a9a1d 100%);
    color: white;
    font-size: 11px;
    padding: 4px 10px;
    margin-left: 10px;
}

/* Personas Reserva */
.personas-reserva {
    margin-bottom: 30px;
}

.personas-reserva h3 {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 700;
}

.personas-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.persona-item-reserva {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid var(--bg-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.persona-item-reserva:hover {
    border-color: var(--green-primary);
    box-shadow: 0 4px 15px rgba(128, 180, 35, 0.15);
}

.persona-info {
    flex: 1;
}

.persona-nombre {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.persona-nombre strong {
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 600;
}

.persona-dni {
    color: var(--text-light);
    font-size: 14px;
}

/* Botones pequeños */
.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

.btn-danger {
    background: linear-gradient(135deg, #f44336 0%, #e91e63 100%);
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.3);
}

.btn-danger:hover {
    box-shadow: 0 8px 25px rgba(244, 67, 54, 0.4);
}

/* Reserva Acciones */
.reserva-acciones {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid var(--bg-light);
}

/* Top Bar */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 1000;
    padding: 12px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s;
}

.logo-link:hover {
    transform: translateY(-2px);
}

.logo-icon {
    font-size: 24px;
}

.logo-text {
    font-weight: 700;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 15px;
    padding: 8px 16px;
    border-radius: 25px;
    transition: all 0.3s;
    background: rgba(128, 180, 35, 0.1);
}

.top-bar-link:hover {
    background: rgba(128, 180, 35, 0.2);
    transform: translateY(-2px);
}

.link-icon {
    font-size: 18px;
}

.lang-switch-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    padding: 6px 14px;
    border-radius: 25px;
    transition: all 0.3s;
    background: rgba(128, 180, 35, 0.1);
}

.lang-switch-link:hover {
    background: rgba(128, 180, 35, 0.2);
    transform: translateY(-2px);
}

.lang-current-badge {
    padding: 4px 10px;
    background: linear-gradient(135deg, #80b423 0%, #6a9a1d 100%);
    color: white;
    border-radius: 20px;
    font-weight: 700;
    font-size: 12px;
}

.lang-switch-text {
    color: var(--green-primary);
    font-weight: 600;
}

/* Ajustar contenido para la barra superior */
body {
    padding-top: 60px;
}

/* Responsive */
@media (max-width: 1024px) {
    .visita-header {
        grid-template-columns: 1fr;
    }

    .visita-image {
        height: 300px;
    }

    .visita-content {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

    .page-header h1 {
        font-size: 32px;
    }

    .tematicas-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .horarios-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 30px 25px;
    }

    .modal-header h2 {
        font-size: 24px;
    }

    .horarios-tabs {
        flex-wrap: wrap;
    }

    .tab {
        font-size: 15px;
        padding: 12px 20px;
    }

    .visita-content {
        padding: 30px 25px;
    }

    .visita-content h2 {
        font-size: 24px;
    }

    .horarios-container {
        padding: 30px 25px;
    }

    .container {
        padding: 0 20px;
    }

    .main-content {
        padding: 50px 20px;
    }

    .card {
        padding: 30px 25px;
    }

    .card h2 {
        font-size: 24px;
    }

    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .persona-item-reserva {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .persona-item-reserva .btn {
        width: 100%;
    }

    .top-bar {
        padding: 10px 0;
    }

    .top-bar-content {
        flex-wrap: wrap;
        gap: 10px;
    }

    .top-bar-right {
        flex-wrap: wrap;
        gap: 10px;
    }

    .logo-text {
        display: none;
    }

    .link-text {
        font-size: 13px;
    }

    .lang-switch-link {
        padding: 5px 10px;
        font-size: 12px;
    }
}

/* Footer Styles */
footer.revealed {
    background: #1e1e1e;
    color: #fff;
    padding: 60px 0 30px;
    margin-top: auto;
    width: 100%;
    position: relative;
    z-index: 10;
}

footer .row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    /* Changed from center to align top */
    margin: 0 -15px;
    margin-bottom: 30px;
}

footer .col-md-4 {
    width: 33.333%;
    padding: 0 15px;
    box-sizing: border-box;
    text-align: left;
    /* Default left alignment */
}

footer .col-md-12 {
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
    text-align: center;
}

footer h3 {
    color: #fff;
    font-size: 16px;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-weight: 700;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer ul li {
    margin-bottom: 15px;
}

footer ul li a {
    color: #999;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

footer ul li a:hover {
    color: #fff;
}

footer ul li i {
    font-size: 18px;
    color: #fff;
    /* Icons white as in design */
}

#social_footer {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    margin-top: 20px;
}

#social_footer ul {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

#social_footer ul li {
    margin: 0;
}

#social_footer ul li a {
    color: #fff;
    font-size: 20px;
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

#social_footer ul li a:hover {
    background: #80b423;
    color: #fff;
}

#social_footer p {
    color: #666;
    font-size: 13px;
    margin: 0;
}

@media (max-width: 768px) {
    footer .col-md-4 {
        width: 100%;
        margin-bottom: 40px;
        text-align: center;
    }

    footer .row {
        justify-content: center;
    }

    footer ul li a {
        justify-content: center;
    }
}

/* Header Grid & Menu Styles */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
    align-items: center;
}

.col-3 {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 0 15px;
}

.col-9 {
    flex: 0 0 75%;
    max-width: 75%;
    padding: 0 15px;
}

/* Logo */
#logo_home h1 {
    margin: 0;
    padding: 10px 0;
}

#logo_home a {
    display: block;
    text-decoration: none;
}

/* Main Menu */
nav.col-9 {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.main-menu {
    position: relative;
    z-index: 9;
}

.main-menu>ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.main-menu>ul>li {
    display: inline-block;
    position: relative;
    padding: 0 12px;
}

.main-menu>ul>li>a {
    color: #333;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
}

.main-menu>ul>li>a:hover {
    color: #80b423;
}

/* Submenu */
.main-menu ul li.submenu {
    position: relative;
}

.main-menu ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 99;
    text-align: left;
    list-style: none;
}

.main-menu ul li.submenu:hover>ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-menu ul ul li {
    display: block;
    padding: 0;
}

.main-menu ul ul li a {
    display: block;
    padding: 10px 20px;
    color: #555;
    font-weight: 500;
    text-decoration: none;
    font-size: 13px;
    border-bottom: 1px solid #f5f5f5;
}

.main-menu ul ul li:last-child a {
    border-bottom: none;
}

.main-menu ul ul li a:hover {
    background: #f9f9f9;
    color: #80b423;
    padding-left: 25px;
}

/* Mobile Toggle */
.cmn-toggle-switch {
    display: none;
    position: relative;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

.cmn-toggle-switch span {
    position: absolute;
    top: 50%;
    left: 0;
    width: 30px;
    height: 3px;
    background: #333;
    transform: translateY(-50%);
    text-indent: -9999px;
}

.cmn-toggle-switch span::before,
.cmn-toggle-switch span::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    background: #333;
    transition: all 0.3s;
}

.cmn-toggle-switch span::before {
    top: -8px;
}

.cmn-toggle-switch span::after {
    bottom: -8px;
}

/* Header Menu Elements */
#header_menu {
    display: none;
}

#close_in {
    display: none;
}

/* Responsive */
@media (max-width: 991px) {
    .col-3 {
        flex: 0 0 100%;
        max-width: 100%;
        text-align: center;
        margin-bottom: 15px;
    }

    .col-9 {
        flex: 0 0 100%;
        max-width: 100%;
        display: flex;
        justify-content: center;
    }

    .cmn-toggle-switch {
        display: block;
    }

    .main-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        /* Drawer max width */
        height: 100%;
        background: #fff;
        transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 9999;
        overflow-y: auto;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        padding: 0;
        display: block;
        /* Override flex */
    }

    .main-menu.active {
        right: 0;
    }

    #header_menu {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
        border-bottom: 1px solid #eee;
        background: #f8f8f8;
    }

    #header_menu img {
        height: 30px;
        width: auto;
    }

    #close_in {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 15px;
        right: 15px;
        font-size: 24px;
        color: #333;
        width: 30px;
        height: 30px;
        text-decoration: none;
        background: #eee;
        border-radius: 50%;
    }

    .main-menu>ul {
        flex-direction: column;
        align-items: stretch;
    }

    .main-menu>ul>li {
        display: block;
        padding: 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .main-menu>ul>li>a {
        padding: 15px 20px;
        font-size: 15px;
        display: flex;
        justify-content: space-between;
    }

    /* Submenu Mobile */
    .main-menu ul ul {
        position: static;
        box-shadow: none;
        padding: 0;
        background: #fcfcfc;
        display: none;
        /* JS will toggle this */
        opacity: 1;
        visibility: visible;
        transform: none;
        min-width: 0;
    }

    .main-menu ul ul li a {
        padding: 12px 30px;
        border-bottom: 1px solid #f5f5f5;
        font-size: 14px;
    }

    /* Overlay effects could be added here if needed */
}

.arrow-down {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    margin-left: 5px;
    vertical-align: middle;
    transition: transform 0.3s;
}

/* User Requested Overrides */
.main-menu>ul>li>a {
    color: #333;
    padding: 0 6px 15px 6px !important;
    font-size: 16px;
    font-weight: 600;
    text-transform: none;
    transition: all 0.3s;
}

@media only screen and (min-width: 992px) {

    /* Language Switcher */
    .lang-switcher-btn {
        display: flex !important;
        align-items: center;
        gap: 6px;
        margin-left: 10px;
        padding: 5px 12px !important;
        border-radius: 20px;
        color: #80b423 !important;
        font-weight: 700 !important;
        text-decoration: none;
        transition: all 0.3s;
        border: 1px solid transparent;
        font-size: 14px !important;
    }

    .lang-switcher-btn i {
        font-size: 16px;
    }

    .lang-switcher-btn:hover {
        color: #333 !important;
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(128, 180, 35, 0.2);
    }
}

.main-menu ul li {
    display: inline-block;
}

.main-menu ul,
.main-menu ul li,
.main-menu ul li a {
    position: relative;
    margin-bottom: 0;
    margin: 0;
    padding: 0;
}

/* Ensure body doesn't have top padding if not needed by new header */
body {
    padding-top: 0 !important;
}

/* Valid overrides for vertical themes list */
.tematicas-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
}

.tematica-card {
    display: flex;
    flex-direction: row;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.3s;
    min-height: 220px;
}

.tematica-card:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.tematica-image-container {
    width: 35%;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.tematica-image-container a {
    display: block;
    width: 100%;
    height: 100%;
}

.tematica-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.tematica-card:hover .tematica-image-container img {
    /* transform: scale(1.05); Removed as per user request */
}

.tematica-card-content {
    flex-grow: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Left alignment */
}

.tematica-card-content h2 {
    font-size: 16px;
    margin-top: 0;
    margin-bottom: 10px;
    text-transform: uppercase;
    color: #2a2a2a;
    font-weight: 700;
}

.tematica-card-content h2 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

.tematica-card-content h2 a:hover {
    color: #80b423;
}

.tematica-card-content p {
    font-size: 13px;
    line-height: 1.4;
    color: #2a2a2a;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tematica-card-action {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    border-left: 1px solid #f5f5f5;
    min-width: 200px;
    background: #fff;
}

.tematica-card-action .btn {
    padding: 10px 25px;
    font-size: 14px;
    white-space: nowrap;
}

/* Responsive Theme Cards */
@media (max-width: 768px) {
    .tematica-card {
        flex-direction: column;
        min-height: auto;
    }

    .tematica-image-container {
        width: 100%;
        height: 220px;
    }

    .tematica-card-content {
        padding: 20px;
    }

    .tematica-card-action .btn {
        width: 100%;
    }
}

/* Override .row alignment for layout grid */
.layout-grid {
    align-items: flex-start !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Help Sidebar Styles */
.sidebar-help {
    margin-bottom: 30px;
}

.box_style_2 {
    background-color: #fff;
    padding: 25px 20px 20px 20px;
    border: 1px solid #e1e8ed;
    position: relative;
    padding: 25px 20px 20px 20px;
    border: 1px solid #e1e8ed;
    position: relative;
    text-align: center;
    border-radius: 5px;
    box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.1);
    visibility: visible;
    animation-delay: 0.1s;
    animation-name: fadeIn;
    animation-duration: 1s;
    animation-fill-mode: both;
}

.box_style_2 i {
    font-size: 45px;
    color: #80b423;
    display: block;
    margin-bottom: 10px;
}

.box_style_2 h4 {
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

.box_style_2 h4 span {
    color: #80b423;
}

.box_style_2 a.phone {
    display: block;
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.box_style_2 a.phone:hover {
    color: #80b423;
}

.box_style_2 a.phone i {
    display: inline-block;
    font-size: 20px;
    margin-right: 5px;
    vertical-align: middle;
    margin-bottom: 0;
}

.box_style_2 small {
    display: block;
    color: #888;
    line-height: 1.4;
    font-size: 12px;
}

/* Layout Grid Adjustments */
.tematicas-column .tematicas-grid {
    margin-top: 0;
    /* Reset margin inside the column */
}

@media (min-width: 992px) {
    .layout-grid {
        display: flex;
        flex-direction: row;
    }

    .sidebar-help {
        flex: 0 0 30%;
        max-width: 30%;
        padding-right: 15px;
    }

    .tematicas-column {
        flex: 0 0 70%;
        max-width: 70%;
        padding-left: 15px;
    }
}

@media (max-width: 991px) {
    .layout-grid {
        flex-direction: column;
    }

    .sidebar-help,
    .tematicas-column {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0 15px;
    }

    .sidebar-help {
        order: 2;
        /* Move help box to bottom on mobile */
        margin-top: 30px;
    }

    .tematicas-column {
        order: 1;
    }
}

   

/* Hero text overlay for better readability */
.hero-text-overlay {
    background: rgba(0, 0, 0, 0.5);
    padding: 30px;
    border-radius: 8px;
    display: inline-block;
    max-width: 100%;
}

.hero-text-overlay h1,
.hero-text-overlay .description,
.hero-text-overlay .back-link {
    color: white !important;
}

.hero-text-overlay .back-link {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-text-overlay h1 {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-text-overlay .description {
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Punto de Encuentro */
.punto-encuentro {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
    padding: 12px 16px;
    background: #f8f9fa;
    border-left: 4px solid #80b423;
    border-radius: 8px;
    font-size: 15px;
}

.punto-encuentro span {
    font-size: 20px;
    flex-shrink: 0;
}

.punto-encuentro a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    flex: 1;
}

.punto-encuentro a:hover {
    color: #80b423;
    text-decoration: underline;
}

/* Acciones de persona en reservas */
.persona-item-reserva {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.persona-acciones {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-warning {
    background: #ff9800;
    color: white;
}

.btn-warning:hover {
    background: #f57c00;
}

/* Checkbox wrapper para formularios */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
}

.checkbox-wrapper input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkbox-wrapper label {
    margin: 0;
    font-weight: normal;
    cursor: pointer;
}