/* ========================================
   ANYKEVENTS — Shared Stylesheet
   Paleta: Aquamarina + Oscuro + Blanco
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,700;1,500&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --aqua:        #2ABFBF;
  --aqua-dark:   #1A9393;
  --aqua-deeper: #117070;
  --aqua-light:  #E0F7F7;
  --aqua-pale:   #F0FAFA;

  --ink:         #0D1F1F;
  --ink-mid:     #2A3D3D;
  --ink-muted:   #617070;
  --border:      #C8E6E6;
  --surface:     #FFFFFF;
  --bg:          #F4FAFA;
  --bg-alt:      #E8F5F5;

  --accent:      #F4845F;
  --accent-lt:   #FEF0EB;
  --gold:        #C9A84C;

  --radius:      16px;
  --radius-sm:   10px;
  --shadow:      0 4px 28px rgba(42,191,191,.12);
  --shadow-lg:   0 12px 48px rgba(42,191,191,.18);
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3 { font-family: 'Cormorant Garamond', serif; line-height:1.2; }

a { text-decoration: none; color: inherit; }
button { font-family: 'Outfit', sans-serif; }
img { display:block; max-width:100%; }

/* ===== SHARED HEADER ===== */
.site-header {
  background: var(--ink);
  position: sticky; top:0; z-index:200;
  border-bottom: 1px solid rgba(42,191,191,.2);
}
.header-inner {
  max-width:1300px; margin:0 auto;
  padding:0 28px;
  display:flex; align-items:center; gap:36px;
  height:72px;
}
.logo {
  font-family:'Cormorant Garamond',serif;
  font-size:1.6rem; font-weight:700;
  color:#fff; white-space:nowrap;
  letter-spacing:-.01em;
}
.logo em { font-style:italic; color:var(--aqua); }

.main-nav { display:flex; gap:2px; flex:1; }
.main-nav a {
  padding:7px 16px; border-radius:999px;
  color:rgba(255,255,255,.65); font-size:.9rem; font-weight:500;
  transition:.2s;
}
.main-nav a:hover, .main-nav a.active {
  background:rgba(42,191,191,.15); color:var(--aqua);
}

.header-cta { display:flex; gap:10px; align-items:center; }
.btn-ghost {
  padding:8px 20px; border-radius:999px;
  border:1.5px solid rgba(255,255,255,.25);
  color:rgba(255,255,255,.8); font-size:.875rem; font-weight:500;
  cursor:pointer; transition:.2s; background:transparent;
}
.btn-ghost:hover { border-color:var(--aqua); color:var(--aqua); }

/* ===== BOTONES UNIFICADOS ===== */
.btn {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  text-align: center;
  line-height: 1.4;
  text-decoration: none;
}
.btn-primary {
  background: var(--aqua);
  color: white;
  border-radius: 999px;
  padding: 8px 16px;
}
.btn-primary:hover { background: var(--aqua-dark); }

.btn-secondary {
  background: var(--bg-alt);
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--border); }

.btn-danger {
  background: #e74c3c;
  color: white;
}
.btn-danger:hover { background: #c0392b; }

.btn-outline {
  background: transparent;
  color: var(--aqua);
  border: 1.5px solid var(--aqua);
}
.btn-outline:hover { background: var(--aqua); color: white; }

.btn-logout {
  background: var(--ink-muted);
  color: white;
  padding: 10px 24px;
}
.btn-logout:hover { background: var(--ink); }

.btn-sm { font-size: 0.75rem; padding: 5px 12px; }
.btn-lg { font-size: 1rem; padding: 12px 28px; }
.btn-block { width: 100%; display: block; }

/* ===== CLASES ANTIGUAS (soportadas para compatibilidad) ===== */
.btn-editar,
.btn-borrar-tabla,
.btn-masivo,
.btn-guardar-precio,
.btn-modificar-tabla {
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.2s, color 0.2s;
    display: inline-block;
    text-align: center;
    line-height: 1.4;
    text-decoration: none;
}

.btn-editar { background: var(--bg-alt); color: var(--ink); border: 1px solid var(--border); }
.btn-editar:hover { background: var(--border); }

.btn-borrar-tabla { background: #e74c3c; color: white; }
.btn-borrar-tabla:hover { background: #c0392b; }

.btn-masivo { background: var(--aqua); color: white; }
.btn-masivo:hover { background: var(--aqua-dark); }
.btn-masivo.rojo { background: #e74c3c; }
.btn-masivo.rojo:hover { background: #c0392b; }

.btn-guardar-precio { background: var(--aqua); color: white; font-size: 0.75rem; padding: 5px 10px; }
.btn-guardar-precio:hover { background: var(--aqua-dark); }

.btn-modificar-tabla { background: var(--aqua); color: white; font-size: 0.7rem; padding: 6px 12px; }
.btn-modificar-tabla:hover { background: var(--aqua-dark); }

/* ===== DROPDOWN MENU ===== */
.dropdown {
  position: relative;
  display: inline-block;
}
.dropdown-content {
  display: none;
  position: absolute;
  background: var(--surface);
  min-width: 220px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  z-index: 10000;
  top: 100%;
  right: 0;
  margin-top: 8px;
}
.dropdown:hover .dropdown-content {
  display: block;
}
.dropdown-content a, .dropdown-content div {
  padding: 10px 16px;
  display: block;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.85rem;
  white-space: nowrap;
  transition: background 0.2s;
}
.dropdown-content a:hover {
  background: var(--aqua-light);
}
.dropdown-content div {
  color: var(--ink-muted);
  cursor: default;
}

/* ===== HAMBURGER ===== */
.hamburger { display:none; flex-direction:column; gap:5px; cursor:pointer; background:none; border:none; padding:4px; }
.hamburger span { display:block; width:22px; height:2px; background:#fff; border-radius:2px; transition:.3s; }

/* ===== MOBILE NAV ===== */
.mobile-nav {
  display:none; flex-direction:column;
  background:var(--ink); padding:16px 28px 24px;
  border-top:1px solid rgba(42,191,191,.15);
  position:fixed; top:72px; left:0; right:0; z-index:199;
}
.mobile-nav.open { display:flex; }
.mobile-nav a {
  padding:13px 0; color:rgba(255,255,255,.75);
  font-size:1rem; border-bottom:1px solid rgba(255,255,255,.06);
}
.mobile-nav a:hover { color:var(--aqua); }

/* ===== SHARED FOOTER ===== */
.site-footer {
  background:var(--ink); color:rgba(255,255,255,.6);
  padding:56px 28px 28px;
}
.footer-grid {
  max-width:1300px; margin:0 auto;
  display:grid; grid-template-columns:2fr 1fr 1fr 1fr;
  gap:40px; padding-bottom:40px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.footer-logo {
  font-family:'Cormorant Garamond',serif;
  font-size:1.5rem; color:#fff; margin-bottom:10px;
}
.footer-logo em { font-style:italic; color:var(--aqua); }
.footer-desc { font-size:.85rem; line-height:1.8; max-width:260px; }
.footer-col h5 { color:#fff; font-size:.85rem; font-weight:600; letter-spacing:.06em; text-transform:uppercase; margin-bottom:14px; }
.footer-col ul { list-style:none; display:flex; flex-direction:column; gap:9px; }
.footer-col a { font-size:.83rem; color:rgba(255,255,255,.55); transition:.2s; }
.footer-col a:hover { color:var(--aqua); }
.footer-bottom {
  max-width:1300px; margin:24px auto 0;
  display:flex; justify-content:space-between; align-items:center;
  font-size:.78rem;
}
.social-row { display:flex; gap:10px; margin-top:18px; }
.social-btn {
  width:36px; height:36px; border-radius:50%;
  background:rgba(255,255,255,.08); display:flex;
  align-items:center; justify-content:center;
  font-size:.95rem; transition:.2s; cursor:pointer;
  color:rgba(255,255,255,.7);
}
.social-btn:hover { background:var(--aqua); color:#fff; }

/* ===== SHARED UTILITIES ===== */
.container { max-width:1300px; margin:0 auto; }
.section-tag {
  display:inline-block; font-size:.72rem; font-weight:700;
  letter-spacing:.12em; text-transform:uppercase;
  color:var(--aqua); margin-bottom:10px;
}
.section-title {
  font-size:clamp(1.8rem,3.5vw,2.8rem); font-weight:700;
  margin-bottom:10px;
}
.section-sub { color:var(--ink-muted); max-width:520px; }

.chip {
  padding:5px 14px; border-radius:999px; border:1.5px solid var(--border);
  font-size:.8rem; font-weight:500; cursor:pointer; transition:.2s;
  background:var(--surface); color:var(--ink-muted);
}
.chip:hover, .chip.active { background:var(--aqua); border-color:var(--aqua); color:#fff; }

.stars { color:#F4C542; font-size:.85rem; }
.rating-n { font-size:.8rem; color:var(--ink-muted); }

.badge {
  font-size:.68rem; font-weight:700; text-transform:uppercase;
  letter-spacing:.05em; padding:3px 10px; border-radius:999px;
}
.badge-aqua { background:var(--aqua); color:#fff; }
.badge-coral { background:var(--accent); color:#fff; }
.badge-gold { background:var(--gold); color:#fff; }
.badge-outline { border:1.5px solid var(--border); color:var(--ink-muted); background:transparent; }

/* ===== MODAL FISCAL ===== */
.modal-overlay {
  display:none; position:fixed; inset:0;
  background:rgba(13,31,31,.6); z-index:500;
  align-items:center; justify-content:center; padding:16px;
  backdrop-filter:blur(4px);
}
.modal-overlay.open { display:flex; }
.modal-box {
  background:var(--surface); border-radius:var(--radius);
  padding:36px; max-width:500px; width:100%;
  position:relative; animation:popIn .25s ease;
  box-shadow:var(--shadow-lg);
}
@keyframes popIn { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
.modal-close {
  position:absolute; top:16px; right:18px;
  background:none; border:none; font-size:1.3rem;
  cursor:pointer; color:var(--ink-muted); line-height:1;
}
.modal-close:hover { color:var(--ink); }

/* ===== FORM BASICS ===== */
.form-field { margin-bottom:16px; }
.form-field label {
  display:block; font-size:.78rem; font-weight:600;
  text-transform:uppercase; letter-spacing:.06em;
  color:var(--ink-muted); margin-bottom:6px;
}
.form-field input, .form-field select, .form-field textarea {
  width:100%; padding:12px 16px;
  border:1.5px solid var(--border); border-radius:var(--radius-sm);
  font-family:'Outfit',sans-serif; font-size:.93rem;
  color:var(--ink); background:var(--bg);
  outline:none; transition:.2s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color:var(--aqua); background:var(--surface);
}
.form-field input::placeholder { color:var(--ink-muted); }

/* ===== TABLAS ===== */
.tabla {
  width:100%;
  background:var(--surface);
  border-radius:var(--radius);
  border:1px solid var(--border);
  overflow-x:auto;
}
.tabla table { width:100%; border-collapse:collapse; }
.tabla th, .tabla td { padding:12px 16px; text-align:left; border-bottom:1px solid var(--border); }
.tabla th { background:var(--bg-alt); font-weight:600; font-size:0.85rem; }

/* ===== RESPONSIVE SHARED ===== */
@media(max-width:900px){
  .footer-grid { grid-template-columns:1fr 1fr; gap:28px; }
}
@media(max-width:600px){
  .main-nav, .header-cta .btn-ghost { display:none; }
  .hamburger { display:flex; }
  .footer-grid { grid-template-columns:1fr; gap:24px; }
  .footer-bottom { flex-direction:column; gap:6px; text-align:center; }
  .dropdown-content {
    right: auto;
    left: 0;
    transform: translateX(-10%);
  }
}
.header-cta .btn {
  padding: 8px 16px !important;
  font-size: 0.9rem !important;
  line-height: 1.4 !important;
  height: auto !important;
}
.site-footer {
    border-top: 1px solid rgba(42,191,191,.2);
}