/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red: #e8201a;
  --red-dark: #b91c1c;
  --red-glow: rgba(232, 32, 26, 0.35);
  --card-bg: rgba(255, 255, 255, 0.93);
  --card-border: rgba(255, 255, 255, 0.6);
  --text-dark: #1a1a1a;
  --text-mid: #4a4a4a;
  --text-light: #888;
  --btn-bg: #ffffff;
  --btn-hover: #fff0ee;
  --btn-border: rgba(0,0,0,0.1);
  --shadow-card: 0 30px 80px rgba(0,0,0,0.28), 0 0 0 1px rgba(255,255,255,0.4);
  --shadow-btn: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-btn-hover: 0 8px 30px rgba(232, 32, 26, 0.2);
  --radius-card: 28px;
  --radius-btn: 16px;
  --font: 'Outfit', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a0000;
  overflow-x: hidden;
  position: relative;
}

/* ===== BACKGROUND ===== */
.bg-overlay {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(232,32,26,0.45) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 20% 100%, rgba(180,10,10,0.3) 0%, transparent 60%),
    radial-gradient(ellipse 70% 60% at 80% 80%, rgba(100,5,5,0.25) 0%, transparent 60%),
    linear-gradient(160deg, #2d0505 0%, #1a0000 40%, #0d0000 100%);
  z-index: 0;
}

.bg-particles {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(232, 32, 26, 0.15);
  animation: float linear infinite;
}

@keyframes float {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.5; }
  100% { transform: translateY(-20px) scale(1); opacity: 0; }
}

/* ===== PAGE WRAPPER ===== */
.page-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 960px;
  padding: 32px 20px 48px;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

/* ===== CARD (dos columnas en desktop) ===== */
.card {
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
  padding: 40px 36px;

  /* Layout: dos columnas en desktop */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: start;

  animation: cardIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(40px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== COLUMNAS ===== */
.col-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-right: 32px;
}

.col-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-left: 32px;
}

/* ===== DIVISOR VERTICAL ===== */
.vertical-divider {
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(232,32,26,0.25) 20%, rgba(232,32,26,0.25) 80%, transparent);
  align-self: stretch;
  min-height: 200px;
}

/* ===== LOGO ===== */
.logo-wrapper {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-logo {
  width: 260px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(232, 32, 26, 0.3));
  animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 4px 16px rgba(232, 32, 26, 0.3)); }
  50%       { filter: drop-shadow(0 4px 28px rgba(232, 32, 26, 0.55)); }
}

/* ===== BIO ===== */
.profile-bio {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-mid);
  text-align: center;
  margin-bottom: 18px;
}

/* ===== SOCIAL ICON ROW ===== */
.social-icons {
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
}

.social-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.06);
}

.social-icon svg { width: 19px; height: 19px; }

.social-icon:hover {
  background: var(--red);
  color: white;
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 20px var(--red-glow);
}

/* ===== SECTION LABEL ===== */
.col-divider-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 10px;
  width: 100%;
}

/* ===== LINKS GROUP ===== */
.links-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ===== LINK BUTTON ===== */
.link-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  border-radius: var(--radius-btn);
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: var(--shadow-btn);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.link-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(232,32,26,0.04), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.link-btn:hover::before { transform: translateX(100%); }

.link-btn:hover {
  background: var(--btn-hover);
  border-color: rgba(232,32,26,0.25);
  box-shadow: var(--shadow-btn-hover);
  transform: translateY(-2px);
}

.link-btn:active { transform: translateY(0) scale(0.98); }

.link-icon {
  width: 34px;
  height: 34px;
  background: #f5f5f5;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.link-icon svg { width: 17px; height: 17px; }

.link-btn:hover .link-icon {
  background: var(--red);
  color: white;
}

.link-text { flex: 1; }

.link-arrow {
  font-size: 1rem;
  color: var(--text-light);
  transition: var(--transition);
}

.link-btn:hover .link-arrow {
  color: var(--red);
  transform: translateX(3px);
}

/* ===== LOCATION BUTTON ===== */
.location-btn .link-text-group {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.location-btn .link-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-dark);
}

.location-btn .link-subtitle {
  font-size: 0.76rem;
  font-weight: 400;
  color: var(--text-light);
  margin-top: 1px;
}

.location-icon { color: var(--red); }
.location-icon svg { fill: var(--red); }

/* ===== HOURS CARD ===== */
.hours-card {
  width: 100%;
  background: linear-gradient(135deg, #fff7f7 0%, #fff3f3 100%);
  border: 1px solid rgba(232, 32, 26, 0.15);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 2px 12px rgba(232, 32, 26, 0.07);
  animation: slideDown 0.4s ease both;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hours-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}

.hours-clock-icon {
  width: 13px;
  height: 13px;
  fill: var(--red);
  flex-shrink: 0;
}

.hours-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 14px;
  align-items: center;
}

.hours-grid .day {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
}

.hours-grid .time {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-mid);
}

.hours-grid .time.closed {
  font-weight: 600;
  color: var(--red);
}

/* ===== FOOTER ===== */
.card-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,0.07);
  width: 100%;
  text-align: center;
}

.card-footer p {
  font-size: 0.76rem;
  color: var(--text-light);
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  padding: 12px 20px;
  border-radius: 12px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  max-width: 320px;
}

.toast.success {
  background: rgba(34, 197, 94, 0.85);
  backdrop-filter: blur(10px);
}

.toast.error {
  background: rgba(239, 68, 68, 0.85);
  backdrop-filter: blur(10px);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE: UNA COLUMNA EN CELULAR ===== */
@media (max-width: 680px) {
  .page-wrapper {
    padding: 16px 12px 36px;
  }

  .card {
    /* Vuelve a una sola columna */
    grid-template-columns: 1fr;
    padding: 28px 18px 22px;
  }

  .col-left {
    padding-right: 0;
    border-right: none;
    padding-bottom: 24px;
    margin-bottom: 0;
  }

  .col-right {
    padding-left: 0;
    padding-top: 24px;
    border-top: 1px solid rgba(232,32,26,0.12);
  }

  /* Oculta el divisor vertical en mobile */
  .vertical-divider {
    display: none;
  }

  .main-logo { width: 234px; }
}
