/* =========================================================
   ARSAI DIGITAL - TARJETAS VIRTUALES · ETAPA 1
   Hoja independiente de styles.css (no altera la tienda)
   1. Variables y base  2. Portada  3. Perfil y botones
   4. Enlaces  5. Pie  6. Responsive y accesibilidad
   ========================================================= */

:root {
  --petroleo: #142b39;
  --petroleo-profundo: #10232f;
  --petroleo-claro: #347b80;
  --arena: #e8dbd0;
  --acento: #b9896f;
  --fondo: #f2f5f3;
  --blanco: #ffffff;
  --texto-suave: #657982;
  --linea: #e4ebea;
  --sombra: 0 24px 64px rgba(16, 35, 47, .13);
}

/* 1. VARIABLES Y BASE */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--fondo); color: var(--petroleo); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; font: inherit; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--petroleo-claro); outline-offset: 4px; }
.skip-link { position: absolute; top: -80px; left: 16px; z-index: 100; padding: 10px 16px; background: #fff; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.site { min-height: 100svh; padding: 50px 18px 30px; }
.profile-shell { width: 100%; max-width: 500px; margin: 0 auto; }
.demo-notice { background: #fff9ea; color: #75532b; border: 1px solid #f1dfbd; border-radius: 10px; padding: 12px 15px; margin-bottom: 15px; font-size: 12px; line-height: 1.5; text-align: center; }
.profile { background: var(--blanco); border: 1px solid #e4e9e8; border-radius: 22px; overflow: hidden; box-shadow: var(--sombra); }

/* 2. PORTADA */
.profile__cover { position: relative; height: 210px; padding: 27px 30px; color: white; background: radial-gradient(circle at 84% 7%, rgba(76, 143, 143, .48), transparent 43%), linear-gradient(125deg, #102b3a 0%, #224c56 100%); overflow: hidden; }
.profile__cover::after { content: ""; position: absolute; width: 225px; height: 225px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 50%; right: -34px; top: 30px; box-shadow: 0 0 0 35px rgba(255, 255, 255, .035), 0 0 0 70px rgba(255, 255, 255, .025); }
.profile__eyebrow { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 9px; font-size: 10px; font-weight: 800; letter-spacing: .17em; color: #d6e9e7; }
.profile__status-dot { width: 6px; height: 6px; border-radius: 50%; background: #8bc9b6; box-shadow: 0 0 0 4px #8bc9b61f; }
.profile__cover-mark { position: absolute; top: 33px; right: 43px; color: rgba(255, 255, 255, .08); font-family: Georgia, serif; font-size: 150px; font-style: italic; line-height: 1; }
.profile__cover-logo { position: absolute; right: 30px; bottom: 28px; z-index: 1; font-size: 13px; font-weight: 850; letter-spacing: .21em; }
.profile__cover-logo span { margin-left: 7px; padding: 5px 6px; background: #f4f6f11c; border-radius: 4px; font-size: 9px; font-weight: 750; letter-spacing: .06em; }

/* 3. PERFIL, BOTONES Y MENSAJES */
.profile__content { padding: 0 30px 32px; }
.profile__photo-wrap { position: relative; z-index: 2; width: 112px; height: 112px; border-radius: 50%; overflow: hidden; margin: -56px 0 19px; background: var(--arena); border: 5px solid white; box-shadow: 0 9px 22px rgba(16, 35, 47, .15); }
.profile__photo { width: 100%; height: 100%; object-fit: cover; }
.profile__identity { padding-bottom: 5px; }
.profile__category { display: inline-block; margin-bottom: 11px; color: #9c7059; font-size: 10px; font-weight: 850; letter-spacing: .14em; }
.profile__identity h1 { margin: 0 0 6px; font-size: clamp(26px, 5vw, 33px); font-weight: 850; line-height: 1.16; letter-spacing: -.04em; overflow-wrap: anywhere; }
.profile__position { margin: 0; font-size: 14px; font-weight: 650; color: #365864; }
.profile__company { margin: 5px 0 0; color: #889ba0; font-size: 12px; font-weight: 650; }
.profile__description { margin: 18px 0 0; max-width: 420px; color: var(--texto-suave); font-size: 13px; line-height: 1.8; }
.profile__buttons { display: grid; grid-template-columns: 1.15fr .85fr; gap: 10px; margin-top: 26px; }
.button { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; border-radius: 10px; padding: 12px 13px; border: 1px solid transparent; font-size: 13px; font-weight: 800; transition: transform .2s ease, background-color .2s ease; }
.button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.button:hover:not(:disabled) { transform: translateY(-2px); }
.button:disabled { cursor: not-allowed; opacity: .6; }
.button--primary { background: var(--petroleo); color: white; }
.button--primary:hover:not(:disabled) { background: #245162; }
.button--secondary { background: #f2f6f5; color: var(--petroleo); border-color: #e3ecea; }
.button--secondary:hover:not(:disabled) { background: #e7eeeb; }
.profile__feedback { min-height: 19px; margin: 12px 0 0; color: #477b74; font-size: 11px; line-height: 1.5; }

/* 4. ENLACES EXTERNOS */
.profile__links { margin-top: 31px; padding-top: 23px; border-top: 1px solid var(--linea); }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.section-title h2 { margin: 0; font-size: 14px; font-weight: 850; letter-spacing: -.015em; }
.section-title span { color: #a0afb2; font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.links-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.link-tile { display: flex; align-items: center; gap: 9px; min-height: 59px; padding: 11px 12px; border: 1px solid #e2eae8; border-radius: 10px; background: #fcfdfc; font-size: 12px; font-weight: 750; transition: border-color .2s, box-shadow .2s, transform .2s; }
.link-tile:hover { border-color: #accbc4; box-shadow: 0 7px 20px #142b3910; transform: translateY(-2px); }
.link-tile__icon { width: 29px; height: 29px; display: grid; place-items: center; flex-shrink: 0; border-radius: 8px; background: #e9f2ef; color: #33736e; font-size: 19px; font-weight: 750; }
.link-tile__icon--green { background: #e3f5e9; color: #178653; }
.link-tile__arrow { margin-left: auto; color: #8ba3a7; font-size: 14px; }

/* 5. PIE DE PAGINA */
.powered-by { padding: 19px 0 2px; text-align: center; }
.powered-by a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: #718991; font-size: 11px; }
.powered-by img { width: 25px; height: 25px; object-fit: contain; }
.powered-by strong { color: #315863; font-size: 11px; font-weight: 850; letter-spacing: .04em; }
.powered-by a:hover strong { text-decoration: underline; }

/* 6. MOVILES, ACCESIBILIDAD */
@media (max-width: 540px) {
  body { background: white; }
  .site { padding: 0; }
  .profile-shell { max-width: none; }
  .profile { border: 0; border-radius: 0; box-shadow: none; }
  .demo-notice { border-radius: 0; margin: 0; }
  .profile__cover { height: 199px; padding: 24px; }
  .profile__cover-logo { right: 24px; }
  .profile__content { padding: 0 23px 30px; }
  .profile__identity h1 { font-size: 29px; }
  .link-tile { padding: 10px; }
  .powered-by { padding-bottom: 25px; background: #fff; }
}
@media (max-width: 350px) {
  .profile__buttons { grid-template-columns: 1fr; }
  .links-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
