/* Reset y Fuente Elegante */
* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Lato:wght@300;400;700&display=swap');

body { font-family: 'Lato', sans-serif; background-color: #fcfbf9; color: #333; }

:root {
    --olive-dark: #3b4d3b;
    --olive-light: #5d725d;
    --gold: #c9a84c;
    --gold-light: #e8d5a3;
    --blush: #f0d6d6;
    --white: #ffffff;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.bg-light { background-color: #fbf9f6; }
.section-block { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-family: 'Playfair Display', serif; font-size: 2.8rem; color: var(--olive-dark); font-weight: 700; }
.title-underline { width: 80px; height: 3px; background: var(--gold); margin: 15px auto 0; border-radius: 5px; }

/* NAVBAR */
.navbar { background: var(--white); padding: 15px 0; box-shadow: 0 4px 15px rgba(59, 77, 59, 0.05); position: sticky; top: 0; z-index: 1000; }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-brand-logo { max-height: 50px; }
.nav-brand-name { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 700; color: var(--olive-dark); letter-spacing: 1px; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--olive-dark); font-weight: 500; transition: color 0.3s; font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; }
.nav-links a:hover { color: var(--gold); }
.btn-nav-login { background: var(--olive-dark); color: #fff !important; padding: 8px 25px; border-radius: 30px; transition: 0.3s !important; }
.btn-nav-login:hover { background: var(--gold); transform: scale(1.05); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--olive-dark); }

/* HERO (PORTADA ESTÁTICA) */
.hero-section { 
    background: linear-gradient(rgba(59, 77, 59, 0.7), rgba(59, 77, 59, 0.5)), 
                url('https://images.unsplash.com/photo-1544441893-675973e31985?auto=format&fit=crop&w=1920&q=80'); 
    background-size: cover; background-position: center; 
    color: #fff; padding: 150px 20px; text-align: center; 
}
.hero-content h1 { font-family: 'Playfair Display', serif; font-size: 3.5rem; margin-bottom: 20px; }
.hero-content p { font-size: 1.2rem; margin-bottom: 30px; color: #f0f0f0; }
.btn-hero { background: var(--gold); color: #fff; padding: 15px 35px; text-decoration: none; font-weight: bold; border-radius: 30px; transition: 0.3s; display: inline-block; }
.btn-hero:hover { background: #fff; color: var(--olive-dark); transform: translateY(-3px); }

/* QUIÉNES SOMOS */
.mision-vision-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.mv-card { background: var(--white); padding: 40px; border-radius: 15px; text-align: center; box-shadow: 0 10px 25px rgba(59, 77, 59, 0.05); transition: 0.3s; border: 1px solid #f0ebe3; }
.mv-card:hover { transform: translateY(-5px); border-color: var(--gold); }
.mv-icon { color: var(--gold); font-size: 2.5rem; margin-bottom: 15px; }
.mv-card h3 { font-family: 'Playfair Display', serif; font-size: 1.8rem; margin-bottom: 15px; color: var(--olive-dark); }
.mv-card p { color: #555; line-height: 1.6; }

/* CONTACTO Y HORARIOS */
.contact-schedule-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 900px; margin: 0 auto; align-items: start; }
.contact-schedule-box { background: var(--white); padding: 40px; border-radius: 20px; box-shadow: 0 5px 20px rgba(0,0,0,0.03); border: 1px solid #f0ebe3; text-align: center; }
.schedule-title { font-family: 'Playfair Display', serif; font-size: 2.5rem; color: var(--olive-dark); margin-bottom: 20px; }
.schedule-block { background: #fbf9f6; padding: 15px; border-radius: 15px; margin-bottom: 15px; border-left: 4px solid var(--gold); }
.schedule-block p { font-weight: 700; color: var(--olive-dark); font-size: 1.1rem; }
.schedule-block span { color: var(--gold); font-weight: 400; }
.contact-item { margin-top: 20px; }
.contact-item i { color: var(--gold); margin-right: 10px; }
.contact-item a { color: var(--olive-dark); text-decoration: none; font-weight: 500; }
.contact-item a:hover { color: var(--gold); }

/* FOOTER */
.main-footer { background-color: var(--olive-dark); color: #e0e0e0; padding: 40px 20px; width: 100%; margin-top: 60px; border-top: 4px solid var(--gold); }
.footer-content { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.footer-logo { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 700; color: #fff; letter-spacing: 1px; }
.developer-credits { margin-top: 5px; font-size: 1rem; color: var(--gold); }
.footer-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 25px; margin-top: 10px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; width: 100%; }
.footer-contact a { color: #ddd; text-decoration: none; transition: color 0.3s ease; }
.footer-contact a:hover { color: var(--gold); }

/* RESPONSIVIDAD */
@media (max-width: 992px) { .mision-vision-grid { grid-template-columns: 1fr; } .contact-schedule-grid { grid-template-columns: 1fr; } }
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }
    .nav-toggle { display: block; }
    .nav-links { display: none; width: 100%; flex-direction: column; padding-top: 20px; gap: 15px; align-items: center; }
    .nav-links.active { display: flex; }
    .contact-schedule-grid { grid-template-columns: 1fr; }
}

/* Reset y Fuente Elegante */
* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Lato:wght@300;400;700&display=swap');

body { font-family: 'Lato', sans-serif; background-color: #fcfbf9; color: #333; }

:root {
    --olive-dark: #3b4d3b;
    --olive-light: #5d725d;
    --gold: #c9a84c;
    --gold-light: #e8d5a3;
    --blush: #f0d6d6;
    --white: #ffffff;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.bg-light { background-color: #fbf9f6; }
.section-block { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-family: 'Playfair Display', serif; font-size: 2.8rem; color: var(--olive-dark); font-weight: 700; }
.title-underline { width: 80px; height: 3px; background: var(--gold); margin: 15px auto 0; border-radius: 5px; }

/* NAVBAR */
.navbar { background: var(--white); padding: 15px 0; box-shadow: 0 4px 15px rgba(59, 77, 59, 0.05); position: sticky; top: 0; z-index: 1000; }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-brand-logo { max-height: 50px; }
.nav-brand-name { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 700; color: var(--olive-dark); letter-spacing: 1px; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--olive-dark); font-weight: 500; transition: color 0.3s; font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; }
.nav-links a:hover { color: var(--gold); }
.btn-nav-login { background: var(--olive-dark); color: #fff !important; padding: 8px 25px; border-radius: 30px; transition: 0.3s !important; }
.btn-nav-login:hover { background: var(--gold); transform: scale(1.05); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--olive-dark); }

/* HERO (PORTADA ESTÁTICA) */
.hero-section { 
    background: linear-gradient(rgba(59, 77, 59, 0.7), rgba(59, 77, 59, 0.5)), 
                url('img/logo.jpg') center/cover no-repeat; 
    background-size: cover; background-position: center; 
    color: #fff; padding: 150px 20px; text-align: center; 
}
.hero-content h1 { font-family: 'Playfair Display', serif; font-size: 3.5rem; margin-bottom: 20px; }
.hero-content p { font-size: 1.2rem; margin-bottom: 30px; color: #f0f0f0; }
.btn-hero { background: var(--gold); color: #fff; padding: 15px 35px; text-decoration: none; font-weight: bold; border-radius: 30px; transition: 0.3s; display: inline-block; }
.btn-hero:hover { background: #fff; color: var(--olive-dark); transform: translateY(-3px); }

/* QUIÉNES SOMOS */
.mision-vision-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.mv-card { background: var(--white); padding: 40px; border-radius: 15px; text-align: center; box-shadow: 0 10px 25px rgba(59, 77, 59, 0.05); transition: 0.3s; border: 1px solid #f0ebe3; }
.mv-card:hover { transform: translateY(-5px); border-color: var(--gold); }
.mv-icon { color: var(--gold); font-size: 2.5rem; margin-bottom: 15px; }
.mv-card h3 { font-family: 'Playfair Display', serif; font-size: 1.8rem; margin-bottom: 15px; color: var(--olive-dark); }
.mv-card p { color: #555; line-height: 1.6; }

/* CARRUSEL DE PRODUCTOS (NUEVO) */
.product-carousel-section { padding: 60px 0; background: #fbf9f6; }
.carousel-container { position: relative; max-width: 1000px; margin: 0 auto; overflow: hidden; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.carousel-track { display: flex; transition: transform 0.5s ease-in-out; }
.carousel-slide { min-width: 100%; box-sizing: border-box; position: relative; }
.carousel-slide img { width: 100%; height: 500px; object-fit: cover; display: block; }
.carousel-caption { position: absolute; bottom: 20px; left: 20px; background: rgba(255,255,255,0.8); padding: 15px 25px; border-radius: 10px; color: var(--olive-dark); font-weight: bold; font-size: 1.2rem; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.7); border: none; color: var(--olive-dark); padding: 15px; cursor: pointer; border-radius: 50%; font-size: 1.5rem; transition: 0.3s; z-index: 10; }
.carousel-btn:hover { background: var(--gold); color: #fff; }
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }
.carousel-dots { text-align: center; margin-top: 15px; }
.dot { display: inline-block; width: 12px; height: 12px; margin: 0 5px; background: #ccc; border-radius: 50%; cursor: pointer; transition: 0.3s; }
.dot.active { background: var(--gold); transform: scale(1.2); }

/* CONTACTO Y HORARIOS */
.contact-schedule-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 900px; margin: 0 auto; align-items: start; }
.contact-schedule-box { background: var(--white); padding: 40px; border-radius: 20px; box-shadow: 0 5px 20px rgba(0,0,0,0.03); border: 1px solid #f0ebe3; text-align: center; }
.schedule-title { font-family: 'Playfair Display', serif; font-size: 2.5rem; color: var(--olive-dark); margin-bottom: 20px; }
.schedule-block { background: #fbf9f6; padding: 15px; border-radius: 15px; margin-bottom: 15px; border-left: 4px solid var(--gold); }
.schedule-block p { font-weight: 700; color: var(--olive-dark); font-size: 1.1rem; }
.schedule-block span { color: var(--gold); font-weight: 400; }
.contact-item { margin-top: 20px; }
.contact-item i { color: var(--gold); margin-right: 10px; }
.contact-item a { color: var(--olive-dark); text-decoration: none; font-weight: 500; }
.contact-item a:hover { color: var(--gold); }
.map-container { margin-top: 30px; border-radius: 15px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.map-container iframe { width: 100%; height: 300px; border: 0; }

/* FOOTER */
.main-footer { background-color: var(--olive-dark); color: #e0e0e0; padding: 40px 20px; width: 100%; margin-top: 60px; border-top: 4px solid var(--gold); }
.footer-content { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.footer-logo { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 700; color: #fff; letter-spacing: 1px; }
.developer-credits { margin-top: 5px; font-size: 1rem; color: var(--gold); }
.footer-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 25px; margin-top: 10px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; width: 100%; }
.footer-contact a { color: #ddd; text-decoration: none; transition: color 0.3s ease; }
.footer-contact a:hover { color: var(--gold); }

/* RESPONSIVIDAD */
@media (max-width: 992px) { .mision-vision-grid { grid-template-columns: 1fr; } .contact-schedule-grid { grid-template-columns: 1fr; } }
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }
    .nav-toggle { display: block; }
    .nav-links { display: none; width: 100%; flex-direction: column; padding-top: 20px; gap: 15px; align-items: center; }
    .nav-links.active { display: flex; }
    .contact-schedule-grid { grid-template-columns: 1fr; }
    .carousel-slide img { height: 300px; }
}

/* ==========================================
   ESTILOS PARA EL LOGIN DEL DASHBOARD (MYSTICA)
   ========================================== */
.login-wrapper { display: flex; justify-content: center; align-items: center; height: 100vh; background: #fcfbf9; }
.login-box { background: #fff; padding: 40px; border-radius: 20px; box-shadow: 0 15px 35px rgba(0,0,0,0.1); width: 100%; max-width: 400px; border: 2px solid #e8d5a3; text-align: center; }
.logo-login h2 { font-family: 'Playfair Display', serif; color: #3b4d3b; margin: 20px 0; }
.back-to-home { color: #3b4d3b; text-decoration: none; display: block; margin-bottom: 20px; font-weight: 500; transition: 0.3s; }
.back-to-home:hover { color: #c9a84c; }
.input-group { position: relative; margin-bottom: 15px; text-align: left; }
.input-group i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #999; }
.input-group input { width: 100%; padding: 12px 12px 12px 45px; border: 1px solid #ddd; border-radius: 10px; font-size: 1rem; outline: none; transition: 0.3s; box-sizing: border-box; }
.input-group input:focus { border-color: #c9a84c; }
#login-btn { width: 100%; padding: 12px; background: #3b4d3b; color: white; border: none; border-radius: 10px; font-weight: bold; font-size: 1rem; cursor: pointer; transition: 0.3s; }
#login-btn:hover { background: #c9a84c; }
.error-msg { color: #e74c3c; margin-top: 15px; text-align: center; font-weight: bold; }

/* Ojito para ver contraseña */
.toggle-password-icon { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); cursor: pointer; color: #999; }

/* ==========================================
   ESTILOS PARA LOS MODALES (DASHBOARD MYSTICA)
   ========================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: none; /* Se oculta por defecto */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    border-top: 5px solid var(--gold);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal-small {
    max-width: 500px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.modal-header h2 {
    font-family: 'Playfair Display', serif;
    color: var(--olive-dark);
    margin: 0;
}

.btn-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    transition: 0.2s;
}

.btn-close:hover {
    color: #e74c3c;
}

.modal-body {
    padding: 10px 0;
}

/* Estilos para el formulario dentro del modal */
#enlace-form .form-group {
    margin-bottom: 15px;
}

#enlace-form .form-group label {
    display: block;
    font-weight: 600;
    color: var(--olive-dark);
    margin-bottom: 5px;
}

#enlace-form .form-group input,
#enlace-form .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    box-sizing: border-box;
}

#enlace-form .form-group input:focus,
#enlace-form .form-group select:focus {
    border-color: var(--gold);
    outline: none;
}

/* Botones de acción dentro de la lista del admin */
.admin-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid #f0ebe3;
    border-radius: 10px;
    margin-bottom: 10px;
    background: #f9f9f9;
    transition: 0.2s;
}

.admin-item:hover {
    border-color: var(--gold);
}

.admin-actions button {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    margin-left: 5px;
    border-radius: 5px;
}

.btn-edit {
    color: var(--olive-dark);
}
.btn-edit:hover {
    background: #f0f7f0;
}

.btn-delete {
    color: #e74c3c;
}
.btn-delete:hover {
    background: #fdedec;
}

#admin-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}