/* --- Fuentes Premium --- */
/* Cinzel para elegancia/títulos, Manrope para legibilidad moderna */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Manrope:wght@300;400;500;600;700&display=swap');

/* --- Variables (Paleta "Tierra y Madera") --- */
:root {
    /* Colores Principales */
    --primary: #3D3A36;        /* Gris Volcánico / Carbón Cálido */
    --primary-hover: #262422;  /* Negro Suave */
    --accent: #C07754;         /* Terracota / Ladrillo suave */
    --accent-hover: #A56040;
    
    /* Textos */
    --text-main: #2C2C2C;      /* Gris Oscuro */
    --text-light: #666666;     /* Gris Medio */
    --text-white: #FFFFFF;
    
    /* Fondos */
    --bg-white: #FFFFFF;
    --bg-surface: #F9F8F6;     /* Arena/Crema muy suave */
    --bg-dark: #2A2826;        /* Fondo Footer */

    /* UI Elements */
    --border: #E0E0E0;
    --border-accent: #C07754;
    
    /* Sombras (Más modernas y difusas) */
    --shadow-soft: 0 10px 40px -10px rgba(0,0,0,0.08);
    --shadow-card: 0 4px 20px rgba(0,0,0,0.06);
    
    /* Bordes */
    --radius: 6px;             /* Borde sutil, no muy redondo */
    --radius-lg: 12px;
    
    /* Tipografía */
    --font-heading: 'Cinzel', serif; 
    --font-body: 'Manrope', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* --- Tipografía --- */
h1, h2, h3, h4, .logo span, .overline {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}
h2 { font-size: 2.25rem; color: var(--primary); margin-bottom: 1rem; }
p { font-size: 1rem; color: var(--text-light); }

.overline {
    display: block; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 2px;
    color: var(--accent); font-weight: 700; font-family: var(--font-body); margin-bottom: 10px;
}
.overline-light {
    display: block; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 2px;
    color: rgba(255,255,255,0.7); font-weight: 600; font-family: var(--font-body); margin-bottom: 10px;
}

/* --- Utilidades --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 900px; }
.section { padding: 80px 0; }
.bg-surface { background-color: var(--bg-surface); }
.text-center { text-align: center; }
.text-light { color: var(--text-light); font-weight: 400; font-size: 0.9rem; }
.hidden { display: none !important; }
.block { display: block; }
a { text-decoration: none; color: inherit; transition: 0.3s ease; }

/* --- Botones --- */
.btn-primary, .btn-submit, .btn-secondary {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 16px 32px; border-radius: var(--radius);
    font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
    cursor: pointer; transition: all 0.3s; text-transform: uppercase; letter-spacing: 0.5px;
}

.btn-primary, .btn-submit {
    background-color: var(--accent); color: white; border: none;
}
.btn-primary:hover, .btn-submit:hover { 
    background-color: var(--accent-hover); transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(192, 119, 84, 0.3);
}

.btn-secondary {
    background-color: transparent; border: 1px solid white; color: white;
}
.btn-secondary:hover { background-color: white; color: var(--primary); }

.btn-primary-small {
    background-color: var(--primary); color: white;
    padding: 10px 20px; border-radius: var(--radius); 
    font-weight: 600; font-size: 0.85rem;
}
.btn-primary-small:hover { background-color: var(--primary-hover); }

/* --- Navbar --- */
.navbar {
    position: fixed; top: 0; width: 100%; height: 80px; z-index: 100;
    background-color: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s;
    display: flex; align-items: center;
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.05); }

.navbar-container { width: 100%; display: flex; justify-content: space-between; align-items: center; }

.logo {
    display: flex; align-items: center; gap: 10px; 
    font-size: 1.4rem; color: var(--primary); cursor: pointer;
}
.logo svg { stroke-width: 1.5px; color: var(--accent); }
.logo span { font-weight: 700; }

.desktop-menu { display: flex; align-items: center; gap: 32px; }
.desktop-menu a:not(.btn-primary-small) { 
    font-size: 0.9rem; font-weight: 500; color: var(--text-main); position: relative;
}
.desktop-menu a:not(.btn-primary-small):hover { color: var(--accent); }

.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; color: var(--primary); }

/* Menú Móvil */
.mobile-menu {
    display: none; flex-direction: column;
    position: absolute; top: 80px; left: 0; width: 100%;
    background: white; border-top: 1px solid var(--border);
    padding: 0; box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.mobile-menu.active { display: flex; }
.mobile-menu a { 
    padding: 18px 24px; color: var(--text-main); font-weight: 500; 
    border-bottom: 1px solid #f0f0f0;
}
.mobile-menu a.highlight { background-color: var(--bg-surface); color: var(--accent); font-weight: 700; }

/* --- Hero --- */
.hero {
  position: relative;
  height: 90vh;
  padding-top: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center; 
}

.hero-bg .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, 
    rgba(0,0,0,0.1) 0%, 
    rgba(0,0,0,0.3) 40%, 
    rgba(0,0,0,0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  max-width: 900px;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* Empuja el contenido al fondo en escritorio */
  text-align: center;
  color: white;
}

.hero-content .badge {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  display: inline-block;
  align-self: center;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 7vw, 4rem);
  line-height: 1.1;
  margin-bottom: 15px;
  text-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.hero-content p {
  font-size: 1.15rem;
  margin-bottom: 35px;
  color: rgba(255,255,255,0.95);
  font-weight: 400;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 30px;
}

/* --- Ajuste específico para Celulares --- */
@media (max-width: 768px) {
  .hero {
    height: 95vh; /* Un poco más alto para dar aire */
  }

  .hero-content {
    /* Aumentamos el padding superior para despejar el logo de la pared */
    padding-top: 280px !important; 
    justify-content: flex-end;
    padding-bottom: 60px;
  }

  .hero-content h1 {
    font-size: 2.1rem; /* Un poco más pequeño para que no ocupe tantas líneas */
    margin-bottom: 10px;
  }

  .hero-content p {
    font-size: 1rem;
    margin-bottom: 25px;
    line-height: 1.4;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
    gap: 12px;
  }
  
  /* Ajuste del degradado en móvil para que sea más oscuro abajo */
  .hero-bg .overlay {
    background: linear-gradient(to bottom, 
      rgba(0,0,0,0) 0%, 
      rgba(0,0,0,0.2) 30%, 
      rgba(0,0,0,0.8) 90%);
  }
}

/* --- Detalles / Experiencia --- */
.details-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 60px; align-items: start; }
.details-header { margin-bottom: 40px; border-left: 3px solid var(--accent); padding-left: 20px; }
.subtitle { font-size: 1rem; margin-top: 8px; color: var(--text-light); }

.features-list { margin-top: 40px; }
.feature-item { display: flex; gap: 20px; margin-bottom: 30px; }
.icon-box { 
    width: 50px; height: 50px; background: var(--bg-surface); 
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; color: var(--accent); flex-shrink: 0;
}
.feature-item h3 { font-size: 1.1rem; font-weight: 700; color: var(--primary); margin-bottom: 4px; font-family: var(--font-body); }

/* Booking Card */
.booking-card {
    background: white; padding: 32px; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft); border: 1px solid rgba(0,0,0,0.03);
    position: sticky; top: 100px;
}
.card-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; border-bottom: 1px solid var(--border); padding-bottom: 20px; }
.price { font-size: 1.5rem; font-weight: 700; color: var(--primary); display: block; font-family: var(--font-heading); }
.period { font-size: 0.85rem; color: var(--text-light); font-weight: 400; }
.rating { font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: 4px; }
.rating svg { fill: var(--primary); width: 16px; height: 16px; }

.card-benefits { list-style: none; margin-bottom: 24px; }
.card-benefits li { display: flex; gap: 10px; margin-bottom: 12px; font-size: 0.9rem; color: var(--text-light); }
.card-benefits li svg { width: 18px; color: var(--accent); }

.whatsapp-link { 
    display: flex; justify-content: center; gap: 10px; margin-top: 20px; 
    color: var(--text-light); font-size: 0.85rem; align-items: center;
}

/* --- Galería Grid --- */
.section-header { max-width: 700px; margin: 0 auto 40px; }
.gallery-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 280px); gap: 16px;
}
.gallery-item { position: relative; cursor: pointer; overflow: hidden; border-radius: var(--radius); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,0.3); opacity: 0;
    transition: 0.3s; display: flex; align-items: center; justify-content: center; color: white;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.main { grid-column: span 2; grid-row: span 2; }

/* --- Servicios --- */
.amenities-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }
.amenity { 
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; 
    padding: 24px; background: white; border: 1px solid var(--border); border-radius: var(--radius);
    transition: 0.3s;
}
.amenity:hover { border-color: var(--accent); box-shadow: var(--shadow-card); transform: translateY(-3px); }
.amenity svg { width: 28px; height: 28px; color: var(--primary); stroke-width: 1.5px; }
.amenity span { font-size: 0.9rem; font-weight: 600; color: var(--text-main); }

/* --- Ubicación --- */
.grid-location { 
    display: grid; 
    grid-template-columns: 1fr 1.5fr; 
    gap: 40px; 
    align-items: center; 
}

.location-info h2 {
    margin-bottom: 1.5rem;
}

.location-points { 
    list-style: none; 
    margin-top: 25px; 
    padding: 0;
}

.location-points li { 
    display: flex; 
    align-items: flex-start; /* Alinea el icono arriba si el texto tiene dos líneas */
    gap: 15px; 
    margin-bottom: 20px; 
    font-size: 1rem;
    color: var(--text-main);
}

.location-points li i, 
.location-points li svg { 
    color: var(--accent); 
    width: 22px; 
    height: 22px; 
    flex-shrink: 0;
    margin-top: 3px;
}

.location-points li span strong {
    display: block;
    color: var(--primary);
    font-family: var(--font-body);
    font-weight: 700;
}

.location-cta {
    margin-top: 30px;
}

.map-container { 
    width: 100%; 
    height: 450px; 
    border-radius: var(--radius-lg); 
    overflow: hidden; 
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0,0,0,0.05);
}

.map-container iframe { 
    width: 100%; 
    height: 100%; 
    border: 0; 
    filter: none; 
}

/* --- Optimización Responsiva para Ubicación --- */
@media (max-width: 900px) {
    .grid-location { grid-template-columns: 1fr; gap: 40px; }
    .location-info { text-align: center; }
    .location-points li { text-align: left; }
    .location-cta { display: flex; justify-content: center; }
    .map-container { height: 350px; }
}

@media (max-width: 600px) {
    .map-container { height: 300px; }
}

/* --- Contacto (Diseño Premium) --- */
.contact-card {
    display: flex; background: white; border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-soft);
}
.contact-info {
    flex: 0.7; background: var(--primary); color: white; padding: 48px 40px;
    display: flex; flex-direction: column; justify-content: space-between;
    background-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), url('https://www.transparenttextures.com/patterns/cubes.png');
}
.contact-info h3 { color: white; margin-bottom: 16px; font-size: 1.8rem; }
.contact-info p { color: rgba(255,255,255,0.8); font-size: 0.95rem; }
.contact-methods { margin: 40px 0; }
.method { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; color: white; }
.owner-info { border-top: 1px solid rgba(255,255,255,0.2); padding-top: 24px; }
.owner-info p { font-style: italic; margin-bottom: 8px; }
.owner-info span { font-size: 0.85rem; font-weight: 700; color: var(--accent); }

.contact-form-wrapper { flex: 1; padding: 48px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-main); margin-bottom: 8px; }

/* --- NUEVOS ESTILOS DE FORMULARIO (Integrados y Limpios) --- */
.input-field {
    width: 100%; 
    padding: 12px; /* Ajustado para mejor layout */
    border: 1px solid #ddd; 
    border-radius: var(--radius);
    background: #FAFAFA; 
    font-family: var(--font-body); 
    font-size: 1rem;
    outline: none; 
    transition: 0.3s;
    box-sizing: border-box; /* Previene desborde sumando paddings */
    display: block;
}
.input-field:focus { border-color: var(--primary); background: white; }

/* Fix específico para inputs de FECHA */
input[type="date"].input-field {
    min-height: 48px;
    position: relative;
    -webkit-appearance: none;
    appearance: none;
}
input[type="date"]::before {
    content: attr(placeholder);
    width: 100%;
    color: #999;
    margin-right: 0.5em;
    display: none; 
}
input[type="date"]:invalid::before {
    display: inline-block;
}

/* Grilla de fechas base (Escritorio) */
.dates-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* --- FAQ --- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
    padding: 20px 0; cursor: pointer; list-style: none; 
    font-weight: 600; font-size: 1.1rem; color: var(--primary);
    display: flex; justify-content: space-between; align-items: center;
}
.faq-item[open] summary { color: var(--accent); }
.faq-item[open] summary svg { transform: rotate(45deg); transition: 0.3s; }
.faq-content { padding-bottom: 20px; color: var(--text-light); line-height: 1.7; }

/* --- Footer --- */
footer { background: var(--bg-dark); color: rgba(255,255,255,0.6); padding: 60px 0 30px; }
.footer-content { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { display: flex; gap: 10px; color: white; font-size: 1.5rem; font-family: var(--font-heading); margin-bottom: 16px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a:hover { color: white; padding-left: 5px; }
.footer-social h4, .footer-links h4 { color: white; margin-bottom: 20px; font-family: var(--font-body); font-weight: 700; }
.social-icons { display: flex; gap: 16px; margin-bottom: 20px; }
.social-icons a { color: white; transition: 0.3s; }
.social-icons a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; text-align: center; font-size: 0.85rem; }

/* --- Botón Flotante --- */
.float-whatsapp {
    position: fixed; bottom: 24px; right: 24px; z-index: 90;
    background: #25D366; color: white; padding: 14px; border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2); transition: 0.3s;
}
.float-whatsapp:hover { transform: scale(1.1); }

/* --- Toast --- */
.toast-container { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 200; width: 90%; max-width: 400px; }
.toast {
    background: var(--primary); color: white; padding: 16px 24px; border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2); display: flex; align-items: center; gap: 12px;
    animation: slideUp 0.4s ease-out; font-size: 0.95rem; border-left: 4px solid var(--accent);
}
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* --- Lightbox --- */
.lightbox {
    position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,0.9);
    display: flex; justify-content: center; align-items: center;
}
.lightbox-content { position: relative; max-width: 90vw; text-align: center; }
.lightbox img { max-height: 80vh; max-width: 100%; border-radius: 4px; box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
#lightbox-caption { color: #ccc; margin-top: 10px; font-size: 0.9rem; }
.lightbox-close { position: absolute; top: 20px; right: 20px; background: none; border: none; color: white; cursor: pointer; }
.lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%); 
    background: transparent; border: none; color: white; cursor: pointer; padding: 20px;
}
.lightbox-nav.prev { left: 10px; }
.lightbox-nav.next { right: 10px; }

/* --- RESPONSIVE OPTIMIZATION (Mobile First Fixes) --- */
@media (max-width: 900px) {
    /* CORRECCIÓN MENÚ MÓVIL */
    .desktop-menu { display: none; } /* Ocultar menú de escritorio */
    .mobile-menu-btn { display: block; } /* Mostrar botón hamburguesa */
    
    .hero-content h1 { font-size: 2.8rem; }
    .details-grid { grid-template-columns: 1fr; gap: 40px; }
    .booking-card { position: static; margin-top: 20px; }
    .contact-card { flex-direction: column; }
    .grid-location { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; grid-template-rows: auto; gap: 10px; }
    .gallery-item { height: 250px; }
    .main { grid-column: span 1; grid-row: span 1; }
    .hero-buttons { flex-direction: column; gap: 10px; }
    .btn-secondary { border-color: rgba(255,255,255,0.4); }
}

@media (max-width: 600px) {
    .section { padding: 50px 0; }
    
    /* FIX DE FECHAS PARA MÓVIL APLICADO AQUÍ */
    .dates-row { 
        display: flex; 
        flex-direction: column; 
        gap: 15px; 
    }
    .form-group { width: 100%; }
    
    .contact-form-wrapper { padding: 24px; }
    .contact-info { padding: 32px 24px; }
    .amenities-grid { grid-template-columns: 1fr 1fr; }
    .hero { height: auto; min-height: 600px; }
    .hero-content { padding: 20px 16px; }
    .hero-content h1 { font-size: 2.4rem; }
    .navbar-container { padding: 0 16px; }
    .map-container { height: 300px; }
    .footer-content { grid-template-columns: 1fr; gap: 30px; }
}

/* Cambios de marca */
.logo span,
.footer-logo span {
  font-family: var(--font-heading);
}

.hero-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 28px auto 0;
  max-width: 720px;
  width: 100%;
}

.hero-mosaic img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.full-width {
  width: 100%;
}

.border-bottom {
  border-bottom: 1px solid var(--border);
}

.description-body {
  margin-top: 28px;
  display: grid;
  gap: 14px;
}

.amenities-grid {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.amenity {
  min-height: 120px;
}

.admin-body {
  background: var(--bg-surface);
  min-height: 100vh;
  font-family: var(--font-body);
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.admin-card,
.admin-panel {
  width: min(1100px, 100%);
}

.admin-card {
  background: white;
  border-radius: 18px;
  padding: 32px;
  box-shadow: var(--shadow-soft);
  max-width: 420px;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.admin-brand i {
  color: var(--accent);
}

.admin-brand h1 {
  font-size: 1.5rem;
  color: var(--primary);
}

.admin-subtitle {
  color: var(--text-light);
  margin-bottom: 24px;
}

.admin-msg {
  margin-top: 14px;
  color: #b91c1c;
  min-height: 22px;
}

.admin-panel {
  background: white;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  padding: 24px;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 22px;
}

.admin-topbar h2 {
  margin-bottom: 4px;
}

.admin-topbar p {
  margin: 0;
}

.admin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-btn {
  white-space: nowrap;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
}

.stat-card span {
  display: block;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.stat-card strong {
  font-size: 2rem;
  color: var(--primary);
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--border);
  padding: 14px 10px;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
}

.status-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  font-family: var(--font-body);
}

.mini-btn {
  border: 0;
  padding: 10px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
}

.delete-btn {
  background: #fee2e2;
  color: #991b1b;
}

@media (max-width: 900px) {
  .hero-mosaic {
    grid-template-columns: 1fr;
  }

  .admin-topbar,
  .admin-stats {
    grid-template-columns: 1fr;
    display: grid;
  }
}

@media (max-width: 600px) {
  .admin-card,
  .admin-panel {
    padding: 18px;
  }

  .hero-mosaic img {
    height: 90px;
  }
}

/* --- Limpieza y Estilo de Galería "Nuestros Espacios" --- */
#galeria .container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 40px; 
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 15px; 
    width: 100%;
    margin-top: 30px;
}

.gallery-card {
    position: relative;
    overflow: hidden;
    height: 450px !important; 
    padding: 0 !important;
    cursor: pointer;
    border-radius: 12px;
    background-color: transparent !important;
    border: none !important; 
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s ease;
}

.card-info {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top, 
        rgba(0, 0, 0, 0.9) 0%, 
        rgba(0, 0, 0, 0.4) 50%, 
        transparent 100%
    ) !important;
    
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px 20px !important;
    color: #FFFFFF !important; 
    text-align: left;
    border: none !important;
}

.card-info i {
    color: var(--accent) !important; 
    margin-bottom: 12px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.card-info span {
    font-family: 'Cinzel', serif !important;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    color: #FFFFFF !important; 
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 2px 2px 10px rgba(0,0,0,1) !important; 
}

.gallery-card:hover .card-img {
    transform: scale(1.1);
}

.gallery-card:hover .card-info {
    background: linear-gradient(
        to top, 
        rgba(0, 0, 0, 1) 0%, 
        rgba(0, 0, 0, 0.6) 60%, 
        transparent 100%
    ) !important;
}

@media (max-width: 1024px) {
    .gallery-container { grid-template-columns: repeat(2, 1fr); }
    #galeria .container { padding: 0 20px; }
}

@media (max-width: 600px) {
    .gallery-container { grid-template-columns: 1fr; }
    .gallery-card { height: 320px !important; }
}
/* 1. Forzamos el color del texto y el tamaño para que sea visible en móviles */
input[type="date"].input-field {
    color: #333333 !important; /* Cambia esto al color de tu texto (oscuro) */
    min-height: 45px; /* Asegura que el cuadro tenga buen tamaño en el táctil */
    appearance: none;
    -webkit-appearance: none;
}

/* 2. Este truco hace que, si está vacío, muestre algo parecido al placeholder 
      pero solo en móviles donde el navegador no lo pone por defecto */
input[type="date"]:invalid:before {
    content: "Seleccionar fecha ";
    color: #999;
    margin-right: 0.5em;
}

input[type="date"]:focus:before,
input[type="date"]:valid:before {
    content: "";
}

/* 3. Para Safari en iPhone: elimina el espacio extra que a veces pone el sistema */
input[type="date"]::-webkit-inner-spin-button,
input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    /* Si quieres que se vea el iconito del calendario en Android/PC: */
    filter: invert(0); 
}