:root {
    --primary-color: #2c7a36;
    /* Verde Institucional - Basado en el Logo */
    --primary-dark: #1e5224;
    --secondary-color: #e67e22;
    /* Naranja - Basado en la web original */
    --accent-color: #34495e;
    --text-color: #2c3e50;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --footer-bg: #1a1a1a;
    --footer-text: #ffffff;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --shadow-soft: 0 2px 15px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: linear-gradient(rgba(244, 246, 247, 0.85), rgba(244, 246, 247, 0.85)), url('../img/Escuelas.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* HEADER */
.main-header {
    background-color: var(--white);
    box-shadow: var(--shadow-soft);
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    margin-bottom: 0;
}

.main-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.main-logo:hover {
    transform: scale(1.05);
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    text-transform: none;
    /* Removed uppercase for a cleaner WordPress look */
    letter-spacing: 0.5px;
    padding: 0.5rem 0;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* MAIN CONTENT */
main {
    flex: 1;
    padding: 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.page-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.page-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    padding: 0 2rem;
}

.section-title {
    font-family: var(--font-heading);
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.2rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: table;
    /* To allow pseudo-elements to work well with centering */
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

/* INICIO */
/* INICIO */
.hero-content {
    text-align: center;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.hero-slogan {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    max-width: 900px;
    line-height: 1.4;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.hero-image-container {
    display: none;
    /* Hidden as requested to use as background */
}

.hero-image-container {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.hero-image:hover {
    transform: scale(1.02);
}

/* RESERVAS - CALENDAR */
.calendar-wrapper {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.calendar-header button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
    transition: color 0.3s;
}

.calendar-header button:hover {
    color: var(--secondary-color);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    text-align: center;
}

.calendar-day-name {
    font-weight: bold;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.calendar-day {
    padding: 0.8rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s;
}



.calendar-day.empty {
    cursor: default;
}

/* TIME SLOTS */
.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.time-slot {
    background: var(--white);
    border: 1px solid #ddd;
    /* Softer border */
    padding: 1rem 0.5rem;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    /* Separation between time and availability */
}

.time-slot span {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

.time-slot small {
    background-color: #eee;
    padding: 2px 8px;
    border-radius: 10px;
    color: #555;
    font-size: 0.85rem;
}

.time-slot:hover {
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
    /* Don't change background to primary on hover, keep it clean */
}

.time-slot:hover span {
    color: var(--secondary-color);
}

.time-slot.selected {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white);
}

.time-slot.selected span,
.time-slot.selected small {
    color: var(--white);
    background: transparent;
}

/* FORM */
.booking-form-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-primary,
.btn-secondary {
    padding: 0.8rem 2.2rem;
    border: none;
    letter-spacing: 0.5px;
    border-radius: 8px;
    /* Standard Kubio Roundedness */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-heading);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 4px 10px rgba(44, 122, 54, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(44, 122, 54, 0.4);
    filter: brightness(1.1);
}

.btn-secondary {
    background-color: #f1f3f5;
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
}

.hidden {
    display: none;
}

/* FOOTER */
.main-footer {
    background-color: var(--footer-bg);
    border-top: 4px solid var(--primary-color);
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--footer-text);
}

.footer-left,
.footer-right,
.footer-center {
    flex: 1;
}

.footer-center {
    text-align: center;
    line-height: 1.5;
}

.footer-contact {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

.footer-mention {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.museum-name {
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--white);
    line-height: 1.2;
}

.museum-sub {
    font-size: 0.75rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-logo-brand {
    height: 50px;
    width: auto;
}

.footer-logo-fpcn {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
    /* White logo on dark bg */
    opacity: 0.9;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .main-nav ul {
        flex-direction: column;
        gap: 1rem;
    }

    .main-footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-left,
    .footer-right,
    .footer-center {
        justify-content: center;
        flex: auto;
    }

    .hero-slogan {
        font-size: 1.5rem;
    }
}

/* NEW STYLES FOR BOOKING SELECTION */
.booking-selection {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.selection-card {
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 15px;
    padding: 2.5rem 2rem;
    width: 320px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.selection-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.selection-card:hover h3 {
    color: var(--primary-color);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.selection-card h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.selection-card p {
    color: var(--text-color);
    font-size: 0.9rem;
}

.btn-text {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.btn-text:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* PRICING CARDS */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.pricing-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease;
    text-align: center;
    border: 1px solid #eee;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.pricing-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1.5rem;
}

.pricing-header h3 {
    font-family: var(--font-heading);
    margin: 0;
    font-size: 1.2rem;
}

.pricing-body {
    padding: 2rem;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    font-family: var(--font-heading);
}

/* Highlight Card (Free) */
.pricing-card.highlight .pricing-header {
    background-color: var(--secondary-color);
}

.pricing-card.highlight .price {
    color: var(--primary-color);
}

/* Promo Card */
.pricing-card.promo {
    border: 2px solid var(--secondary-color);
}

.pricing-card.promo .pricing-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    position: relative;
}

.badge {
    background-color: var(--secondary-color);
    color: var(--white);
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-top: 0.5rem;
    display: inline-block;
    font-weight: bold;
}

.pricing-card.promo p {
    font-size: 0.95rem;
}

/* ADMIN STYLES */
.admin-form-container {
    max-width: 400px;
    margin: 0 auto;
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}

.full-width {
    width: 100%;
}

.admin-nav-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 1rem;
    flex-wrap: wrap;
}

.admin-tab {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-weight: bold;
    color: var(--primary-color);
    border-radius: 4px;
    transition: all 0.3s;
}

.admin-tab:hover {
    background-color: #eee;
}

.admin-tab.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.calendar-day.blocked {
    background-color: #f0f0f0;
    color: #999999;
    cursor: not-allowed;
    opacity: 0.8;
    pointer-events: none;
}

.calendar-day.past {
    background-color: #f5f5f5;
    color: #ccc;
    cursor: default;
    pointer-events: none;
}

.calendar-day:hover:not(.empty):not(.blocked):not(.past) {
    background-color: var(--primary-color);
    color: white;
}

.admin-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.admin-panel.active {
    display: block;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.admin-editor-box {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid #ddd;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-row input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.checkbox-group {
    display: flex;
    gap: 1.5rem;
    margin: 1rem 0;
}

.form-actions-small {
    display: flex;
    gap: 0.5rem;
}

.small {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
}

.data-list {
    display: grid;
    gap: 1rem;
}

.list-item {
    background: var(--white);
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-actions button {
    margin-left: 0.5rem;
    padding: 0.2rem 0.5rem;
    cursor: pointer;
}

.config-box {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #eee;
    margin-bottom: 2rem;
}

.config-box textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-top: 0.5rem;
}

.help-text {
    display: block;
    margin-top: 0.5rem;
    color: #666;
    font-size: 0.85rem;
}

.split-view {
    display: flex;
    gap: 2rem;
}

.block-column {
    flex: 1;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #eee;
}

.add-block-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.item-list {
    list-style: none;
    padding: 0;
}

.item-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    border-bottom: 1px solid #eee;
}

.item-list li button {
    color: red;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

.mt-2 {
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .split-view {
        flex-direction: column;
    }
}

/* PAYMENT CONFIRMATION STYLES */
.text-center {
    text-align: center;
}

.centered {
    justify-content: center !important;
}

.mb-2 {
    margin-bottom: 1rem;
}

.success-message {
    padding: 2rem 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 2rem;
}

.check-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.success-message h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.success-message p {
    font-size: 1.1rem;
    color: var(--text-color);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.payment-box {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid #ddd;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.payment-box h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.payment-box p {
    margin-bottom: 1.5rem;
    color: #666;
}

.mp-btn {
    background-color: #009ee3;
    /* Mercado Pago Blue */
    display: inline-block;
    text-decoration: none;
    transition: background-color 0.3s;
    font-weight: bold;
}

.mp-btn:hover {
    background-color: #007eb5;
}

#qr-image {
    box-shadow: var(--shadow-soft);
    border: 1px solid #ddd;
}

/* PREMIUM FORM STYLES */
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    /* Slightly more rounded */
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: var(--white);
    transition: all 0.3s ease;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23485342' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.form-group select:focus,
.form-group input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(217, 109, 15, 0.1);
    outline: none;
}

.form-group select:hover,
.form-group input:hover {
    border-color: #bbb;
}

/* Improve Form Row Layout */
.form-row {
    display: flex;
    gap: 1.5rem;
    align-items: flex-end;
    /* Align inputs */
}

/* Specific Styles for Entry Selection to make it pop */
#booking-form-entradas .form-row {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #eee;
    margin-bottom: 2rem;
}

#entry-category {
    font-size: 1.1rem;
    padding: 1rem;
    font-weight: 500;
    color: var(--primary-color);
    border: 2px solid #e0e0e0;
}

#entry-quantity {
    font-size: 1.1rem;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    /* Explicitly ensure rounded */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

#entry-category:focus,
#entry-quantity:focus {
    border-color: var(--secondary-color);
}

/* Label enhancements */
.form-group label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    /* Softer label */
    margin-bottom: 0.5rem;
}

/* Mobile adjust */
@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }

    #booking-form-entradas .form-row {
        padding: 1rem;
    }
}

/* SUMMARY VIEW */
.summary-box {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #eee;
    margin-bottom: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px dotted #ccc;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row strong {
    color: var(--primary-color);
}

.total-box {
    text-align: right;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f0f0f0;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-amount {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

/* Ticket Selection Styles */
.tickets-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.ticket-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.ticket-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    color: var(--text-color);
}

.ticket-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
}

.ticket-counter {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ticket-counter button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: white;
    cursor: pointer;
    font-weight: bold;
    color: var(--text-color);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ticket-counter button:hover {
    background: var(--light-bg);
    border-color: var(--primary-color);
}

.ticket-counter input {
    width: 40px;
    text-align: center;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    pointer-events: none;
    /* Controlled by buttons */
    background: transparent;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 2px solid #eee;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* Mobile responsive for tickets */
@media (max-width: 480px) {
    .ticket-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .ticket-counter {
        width: 100%;
        justify-content: flex-end;
    }
}