/* ================================================================
   TARJETA DIGITAL PROFESIONAL – Lic. Humberto
   Diseño mobile-first, premium, dark luxury
   ================================================================ */

/* ========== VARIABLES ========== */
:root {
  /* Base palette */
  --bg-primary: #0a0f1a;
  --bg-secondary: #0f1524;
  --bg-card: #141c2e;
  --bg-elevated: #1a2340;

  /* Gold system */
  --gold-50: #fdf8ef;
  --gold-100: #f5e6c4;
  --gold-200: #e8cc8a;
  --gold-300: #d4b06a;
  --gold-400: #c5a059;
  --gold-500: #b8924d;
  --gold-600: #9a7b3d;
  --gold-700: #7a612f;
  --gold-gradient: linear-gradient(135deg, #d4b06a 0%, #c5a059 40%, #9a7b3d 100%);
  --gold-text-gradient: linear-gradient(135deg, #e8cc8a 0%, #c5a059 50%, #d4b06a 100%);

  /* Text */
  --text-white: #ffffff;
  --text-primary: #f0ebe0;
  --text-secondary: #b0a899;
  --text-muted: #6b6560;

  /* Accents */
  --whatsapp: #25d366;
  --whatsapp-dark: #1eba59;
  --blue-accent: #4a7dff;

  /* Borders */
  --border-gold: rgba(197, 160, 89, 0.2);
  --border-gold-strong: rgba(197, 160, 89, 0.4);
  --border-subtle: rgba(255, 255, 255, 0.06);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 4px 20px rgba(197, 160, 89, 0.15);

  /* Typography */
  --font-display: 'Cinzel', serif;
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100dvh;
  overflow-x: hidden;
  display: flex;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* ========== FONDOS DECORATIVOS ========== */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 600px 400px at 20% 10%, rgba(197, 160, 89, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse 500px 500px at 85% 80%, rgba(197, 160, 89, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 300px 300px at 50% 50%, rgba(74, 125, 255, 0.03) 0%, transparent 70%),
    linear-gradient(180deg, var(--bg-primary) 0%, #060a14 100%);
  pointer-events: none;
}

.bg-grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  pointer-events: none;
}

/* ========== APP SHELL ========== */
.app-shell {
  width: 100%;
  max-width: 480px;
  padding: 0 var(--space-md);
  padding-bottom: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
}

/* ========== HERO ========== */
.hero {
  width: 100%;
  padding: var(--space-2xl) 0 var(--space-lg);
  text-align: center;
  position: relative;
}

.hero__ornament-top,
.hero__ornament-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.hero__ornament-bottom {
  margin-top: var(--space-md);
  margin-bottom: 0;
}

.ornament-line {
  display: block;
  width: 60px;
  height: 1px;
  background: var(--gold-gradient);
  opacity: 0.5;
}

.ornament-icon {
  color: var(--gold-400);
  font-size: 1.5rem;
  filter: drop-shadow(0 2px 10px rgba(197, 160, 89, 0.3));
}

.ornament-diamond {
  width: 8px;
  height: 8px;
  background: var(--gold-400);
  transform: rotate(45deg);
  opacity: 0.7;
}

/* Monogram */
.hero__monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin-bottom: var(--space-md);
}

.hero__monogram span {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  background: var(--gold-text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.mono-sep {
  width: 2px;
  height: 36px;
  background: var(--gold-gradient);
  opacity: 0.5;
  margin: 0 4px;
}

.hero__name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-white);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero__role {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  font-style: italic;
  color: var(--gold-200);
  letter-spacing: 2px;
  margin-bottom: var(--space-md);
}

.hero__tags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.tag {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 6px 14px;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-full);
  background: rgba(197, 160, 89, 0.05);
}

.tag-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-400);
}

/* ========== CARD SHOWCASE ========== */
.card-showcase {
  width: 100%;
  position: relative;
}

.card-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(ellipse, rgba(197, 160, 89, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.card-frame {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow:
    var(--shadow-lg),
    0 0 0 1px var(--border-gold),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
  line-height: 0;
  cursor: pointer;
}

.card-frame:active {
  transform: scale(0.97);
}

.card-frame img {
  width: 100%;
  border-radius: var(--radius-lg);
}

/* Zoom hint overlay */
.card-frame__zoom-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  background: rgba(10, 15, 26, 0.55);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 2;
  border-radius: var(--radius-lg);
}

.card-frame:hover .card-frame__zoom-hint,
.card-frame:focus-visible .card-frame__zoom-hint {
  opacity: 1;
}

/* Show briefly on mobile with touch */
.card-frame__zoom-hint i {
  font-size: 1.3rem;
  color: var(--gold-300);
}

.card-frame__zoom-hint span {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-100);
  letter-spacing: 1px;
}

/* ========== CARD MODAL / LIGHTBOX ========== */
.card-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.card-modal.active {
  opacity: 1;
  visibility: visible;
}

.card-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 15, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.card-modal__close {
  position: absolute;
  top: max(env(safe-area-inset-top, 12px), 16px);
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.card-modal__close:active {
  transform: scale(0.9);
  background: rgba(255, 255, 255, 0.15);
}

.card-modal__body {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 520px;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  transform: translateY(30px) scale(0.95);
  transition: transform 0.45s var(--ease-spring);
}

.card-modal.active .card-modal__body {
  transform: translateY(0) scale(1);
}

.card-modal__img-wrapper {
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow:
    0 25px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px var(--border-gold-strong),
    var(--shadow-gold);
  line-height: 0;
}

.card-modal__img-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.card-modal__actions {
  display: flex;
  gap: var(--space-sm);
  width: 100%;
}

.card-modal__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px var(--space-md);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold-200);
  border: 1px solid var(--border-gold);
}

.card-modal__btn:active {
  transform: scale(0.96);
  background: rgba(255, 255, 255, 0.12);
}

.card-modal__btn--wa {
  background: var(--whatsapp);
  color: #fff;
  border-color: transparent;
}

.card-modal__btn--wa:active {
  background: var(--whatsapp-dark);
}

.card-modal__btn i {
  font-size: 1rem;
}

/* ========== SECTION TITLE ========== */
.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold-200);
  margin-bottom: var(--space-lg);
  white-space: nowrap;
}

.section-title__line {
  display: block;
  flex: 1;
  max-width: 50px;
  height: 1px;
  background: var(--gold-gradient);
  opacity: 0.4;
}

/* ========== SERVICES ========== */
.services {
  width: 100%;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

.service-chip {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 14px var(--space-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all 0.3s var(--ease-out);
}

.service-chip:active {
  transform: scale(0.97);
}

.service-chip i {
  font-size: 1rem;
  color: var(--gold-400);
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.service-chip span {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.3px;
}

/* ========== CONTACT ========== */
.contact {
  width: 100%;
}

.contact__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-md);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.2s ease;
  cursor: pointer;
}

.contact-item:not(:last-child) {
  border-bottom: 1px solid var(--border-subtle);
}

.contact-item:active {
  background: rgba(197, 160, 89, 0.08);
}

.contact-item__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(197, 160, 89, 0.1);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item__icon i {
  font-size: 0.95rem;
  color: var(--gold-300);
}

.contact-item__icon--wa {
  background: rgba(37, 211, 102, 0.1);
  border-color: rgba(37, 211, 102, 0.25);
}

.contact-item__icon--wa i {
  color: var(--whatsapp);
}

.contact-item__info {
  flex: 1;
  min-width: 0;
}

.contact-item__label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-item__value {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-item__arrow {
  font-size: 0.7rem;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.contact-item:active .contact-item__arrow {
  transform: translateX(3px);
}

/* ========== ACTION BUTTONS ========== */
.actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  width: 100%;
  padding: 16px var(--space-lg);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.25s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.action-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 100%);
  pointer-events: none;
}

.action-btn:active {
  transform: scale(0.97);
}

.action-btn i {
  font-size: 1.15rem;
}

/* Primary: WhatsApp */
.action-btn--primary {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.3);
}

.action-btn--primary:active {
  box-shadow: 0 2px 12px rgba(37, 211, 102, 0.3);
}

/* Secondary: Llamar */
.action-btn--secondary {
  background: var(--bg-elevated);
  color: var(--gold-200);
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-sm);
}

/* Outline: Descargar */
.action-btn--outline {
  background: transparent;
  color: var(--gold-300);
  border: 1px solid var(--border-gold-strong);
}

/* ========== MOTTO ========== */
.motto {
  width: 100%;
  text-align: center;
  padding: var(--space-lg) 0;
}

.motto__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
}

.motto__inner p {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  font-style: italic;
  color: var(--text-white);
  letter-spacing: 1px;
}

.motto__deco {
  color: var(--gold-400);
  font-size: 0.6rem;
  opacity: 0.7;
}

.motto__sub {
  margin-top: var(--space-sm);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ========== QR SECTION ========== */
.qr-section {
  width: 100%;
}

.qr-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.qr-card__header {
  text-align: center;
  padding: var(--space-lg) var(--space-lg) var(--space-md);
}

.qr-card__icon-ring {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(197, 160, 89, 0.1);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
}

.qr-card__icon-ring i {
  font-size: 1.2rem;
  color: var(--gold-300);
}

.qr-card__header h3 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-100);
  margin-bottom: var(--space-xs);
}

.qr-card__desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.qr-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 var(--space-lg) var(--space-lg);
}

/* QR Frame con esquinas */
.qr-frame {
  position: relative;
  display: inline-flex;
  padding: 14px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
  box-shadow:
    var(--shadow-sm),
    0 0 0 1px rgba(0, 0, 0, 0.05);
}

.qr-frame__corners {
  position: absolute;
  inset: -3px;
  border-radius: 19px;
  pointer-events: none;
}

.qr-frame__corners::before,
.qr-frame__corners::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: var(--gold-400);
  border-style: solid;
  border-width: 0;
}

.qr-frame__corners::before {
  top: 0;
  left: 0;
  border-top-width: 2px;
  border-left-width: 2px;
  border-top-left-radius: 19px;
}

.qr-frame__corners::after {
  bottom: 0;
  right: 0;
  border-bottom-width: 2px;
  border-right-width: 2px;
  border-bottom-right-radius: 19px;
}

/* Additional corners via the parent */
.qr-frame::before,
.qr-frame::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: var(--gold-400);
  border-style: solid;
  border-width: 0;
  z-index: 2;
}

.qr-frame::before {
  top: -3px;
  right: -3px;
  border-top-width: 2px;
  border-right-width: 2px;
  border-top-right-radius: 19px;
}

.qr-frame::after {
  bottom: -3px;
  left: -3px;
  border-bottom-width: 2px;
  border-left-width: 2px;
  border-bottom-left-radius: 19px;
}

#qrcode img,
#qrcode canvas {
  display: block;
  border-radius: var(--radius-sm);
}

.qr-frame__logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: var(--bg-primary);
  border: 2px solid var(--gold-400);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.qr-frame__logo i {
  font-size: 0.9rem;
  color: var(--gold-300);
}

.qr-card__url {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gold-200);
  letter-spacing: 0.5px;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-full);
  background: rgba(197, 160, 89, 0.08);
  border: 1px solid var(--border-gold);
  transition: all 0.2s ease;
}

.qr-card__url:active {
  background: rgba(197, 160, 89, 0.15);
}

/* ========== FOOTER ========== */
.app-footer {
  text-align: center;
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--border-subtle);
  width: 100%;
}

.footer__brand {
  margin-bottom: var(--space-sm);
}

.footer__mono {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 4px;
  background: var(--gold-text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.6;
}

.footer__copy {
  font-size: 0.72rem;
  color: var(--text-secondary);
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.footer__legal {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* ========== FAB WHATSAPP ========== */
.fab-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 100;
  transition: transform 0.3s var(--ease-spring);
}

.fab-whatsapp:active {
  transform: scale(0.9);
}

.fab-whatsapp__pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--whatsapp);
  animation: fabPulse 2.5s ease-out infinite;
}

@keyframes fabPulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* ========== DOWNLOAD OVERLAY ========== */
.download-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 26, 0.95);
  backdrop-filter: blur(12px);
  display: none;
  z-index: 9999;
}

.download-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.download-overlay__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.download-overlay__content p {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: var(--gold-200);
}

.spinner {
  width: 48px;
  height: 48px;
  border: 2px solid var(--border-gold);
  border-top-color: var(--gold-400);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ========== ANIMATIONS ========== */
.hero,
.card-showcase,
.services,
.contact,
.actions,
.motto,
.qr-section,
.app-footer {
  opacity: 0;
  transform: translateY(24px);
  animation: revealUp 0.8s var(--ease-out) forwards;
}

.hero            { animation-delay: 0s; }
.card-showcase   { animation-delay: 0.1s; }
.services        { animation-delay: 0.2s; }
.contact         { animation-delay: 0.25s; }
.actions         { animation-delay: 0.3s; }
.motto           { animation-delay: 0.35s; }
.qr-section      { animation-delay: 0.4s; }
.app-footer      { animation-delay: 0.45s; }

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== RESPONSIVE ========== */

/* Pantallas pequeñas (SE, etc.) */
@media (max-width: 374px) {
  .hero__name {
    font-size: 1.45rem;
    letter-spacing: 2px;
  }

  .hero__monogram span {
    font-size: 2.2rem;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .contact-item__value {
    font-size: 0.8rem;
  }

  .action-btn {
    padding: 14px var(--space-md);
    font-size: 0.82rem;
  }
}

/* Pantallas medianas (iPhone Plus, etc.) */
@media (min-width: 414px) {
  .hero__name {
    font-size: 1.9rem;
  }

  .ornament-line {
    width: 80px;
  }
}

/* Tablet / Desktop */
@media (min-width: 520px) {
  .app-shell {
    padding-top: var(--space-lg);
    gap: 36px;
  }

  .hero__name {
    font-size: 2.1rem;
    letter-spacing: 4px;
  }

  .hero__monogram span {
    font-size: 3.2rem;
  }

  .card-frame {
    border-radius: var(--radius-xl);
  }

  .card-frame img {
    border-radius: var(--radius-xl);
  }

  .service-chip {
    padding: 16px var(--space-lg);
  }

  .service-chip span {
    font-size: 0.85rem;
  }

  .action-btn {
    padding: 18px var(--space-lg);
    font-size: 0.92rem;
  }

  .qr-card__header h3 {
    font-size: 0.9rem;
  }
}

@media (min-width: 768px) {
  .app-shell {
    max-width: 520px;
  }

  .card-frame:hover {
    transform: translateY(-4px);
    box-shadow:
      0 24px 80px rgba(0, 0, 0, 0.5),
      0 0 0 1px var(--border-gold-strong),
      var(--shadow-gold);
  }

  .service-chip:hover {
    background: rgba(197, 160, 89, 0.06);
    border-color: var(--border-gold);
  }

  .contact-item:hover {
    background: rgba(197, 160, 89, 0.06);
  }

  .contact-item:hover .contact-item__arrow {
    transform: translateX(3px);
    color: var(--gold-400);
  }

  .action-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.35);
  }

  .action-btn--secondary:hover {
    transform: translateY(-2px);
    background: var(--bg-card);
    border-color: var(--border-gold-strong);
  }

  .action-btn--outline:hover {
    transform: translateY(-2px);
    background: rgba(197, 160, 89, 0.06);
  }

  .fab-whatsapp:hover {
    transform: scale(1.08);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
