/* ============================================
   iProject3 — Tarjeta Digital
   styles.css | Versión 1.0 | Marzo 2026
   ============================================ */

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

:root {
  --navy:        #013567;
  --navy-deep:   #011f3f;
  --navy-mid:    #012a52;
  --cyan:        #00CCFF;
  --cyan-soft:   rgba(0, 204, 255, 0.12);
  --cyan-border: rgba(0, 204, 255, 0.25);
  --white:       #ffffff;
  --text-muted:  rgba(255, 255, 255, 0.55);
  --text-soft:   rgba(255, 255, 255, 0.75);
  --border-soft: rgba(255, 255, 255, 0.08);
  --green:       #25D366;
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --transition:  0.22s ease;
}

/* ---- BASE ---- */
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--navy-deep);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---- CANVAS DE PARTÍCULAS ---- */
#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

/* ---- GLOW BACKGROUND ---- */
.bg-glow {
  position: fixed;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,204,255,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ---- CARD CONTAINER ---- */
.card {
  position: relative;
  z-index: 1;
  max-width: 420px;
  margin: 0 auto;
  padding: 0 0 56px;
}

/* ---- ANIMACIONES DE ENTRADA ---- */
.animate-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- HERO ---- */
.hero {
  padding: 52px 24px 36px;
  text-align: center;
  position: relative;
}

.hero::after {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  margin-top: 32px;
  opacity: 0.5;
}

/* Avatar */
.avatar-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 22px;
}

.avatar-ring {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: conic-gradient(var(--cyan) 0%, var(--navy-mid) 40%, var(--cyan) 100%);
  animation: spin 8s linear infinite;
  z-index: 0;
}

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

.avatar-mask {
  position: relative;
  z-index: 1;
  width: 112px; height: 112px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--navy-deep);
}

.avatar-mask img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  display: block;
}

.avatar-badge {
  position: absolute;
  bottom: 3px; right: 3px;
  z-index: 2;
  width: 24px; height: 24px;
  background: var(--cyan);
  border-radius: 50%;
  border: 2px solid var(--navy-deep);
  display: flex; align-items: center; justify-content: center;
}

.avatar-badge svg { width: 11px; height: 11px; }

/* Texto hero */
.name {
  font-family: 'Syne', sans-serif;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin-bottom: 7px;
}

.name span { color: var(--cyan); }

.role {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.tagline {
  font-size: 13.5px;
  color: var(--text-soft);
  font-style: italic;
  line-height: 1.55;
}

/* ---- BOTONES DE ACCIÓN ---- */
.actions {
  padding: 28px 20px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--transition);
}

.btn:hover::after { background: rgba(255,255,255,0.06); }
.btn:active { transform: scale(0.97); }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn-whatsapp { background: var(--green); color: white; }
.btn-whatsapp:hover { background: #1ebe58; }

.btn-email {
  background: var(--cyan-soft);
  color: var(--cyan);
  border: 1px solid var(--cyan-border);
}
.btn-email:hover { background: rgba(0,204,255,0.2); }

.btn-linkedin {
  background: rgba(10,102,194,0.18);
  color: #5ba8f5;
  border: 1px solid rgba(10,102,194,0.28);
}
.btn-linkedin:hover { background: rgba(10,102,194,0.28); }

.btn-booking {
  background: rgba(255,255,255,0.06);
  color: var(--text-soft);
  border: 1px solid var(--border-soft);
}
.btn-booking:hover {
  background: rgba(255,255,255,0.11);
  border-color: rgba(255,255,255,0.18);
}

.btn-vcard {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--navy), #024a8f);
  color: var(--cyan);
  border: 1px solid var(--cyan-border);
  font-weight: 600;
  letter-spacing: 0.3px;
}
.btn-vcard:hover { border-color: var(--cyan); }

/* Toast copiar correo */
.copy-toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1B6B3A;
  color: white;
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 100;
  white-space: nowrap;
}

.copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---- SECCIÓN GENÉRICA ---- */
.section {
  margin: 28px 20px 0;
}

.section-label {
  font-family: 'Syne', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
  opacity: 0.9;
}

/* ---- SERVICIOS ---- */
.services {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  position: relative;
  overflow: hidden;
}

.service-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--cyan);
  transform: scaleY(0);
  transition: transform var(--transition);
  border-radius: 0 2px 2px 0;
}

.service-item:hover,
.service-item.active {
  border-color: var(--cyan-border);
  background: rgba(0,204,255,0.05);
}

.service-item:hover::before,
.service-item.active::before {
  transform: scaleY(1);
}

.service-icon {
  width: 38px; height: 38px;
  background: var(--cyan-soft);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition);
}

.service-item:hover .service-icon,
.service-item.active .service-icon {
  background: rgba(0,204,255,0.2);
}

.service-icon svg { width: 18px; height: 18px; }

.service-text { flex: 1; min-width: 0; }

.service-name {
  font-family: 'Syne', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 2px;
  color: var(--white);
}

.service-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Tooltip */
.service-tooltip {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease, margin 0.3s ease;
  opacity: 0;
  margin-top: 0;
}

.service-item.active .service-tooltip {
  max-height: 80px;
  opacity: 1;
  margin-top: 8px;
}

.service-tooltip-inner {
  font-size: 11.5px;
  color: var(--cyan);
  background: rgba(0,204,255,0.08);
  border-radius: 6px;
  padding: 8px 10px;
  line-height: 1.5;
  border-left: 2px solid var(--cyan);
}

.service-arrow {
  margin-left: auto;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform var(--transition), color var(--transition);
  align-self: center;
}

.service-item.active .service-arrow {
  transform: rotate(180deg);
  color: var(--cyan);
}

/* ---- SOBRE IPROJECT3 ---- */
.about-box {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.about-box::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.about-text {
  font-size: 13px;
  color: rgba(255,255,255,0.62);
  line-height: 1.68;
}

.about-text strong { color: var(--white); font-weight: 500; }

/* ---- DATOS DE CONTACTO ---- */
.contact-info {
  margin: 20px 20px 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.contact-row svg {
  width: 14px; height: 14px;
  color: var(--cyan);
  flex-shrink: 0;
}

.contact-row a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color var(--transition);
}

.contact-row a:hover { color: var(--cyan); }

/* ---- FOOTER / LOGO ---- */
.footer {
  margin: 36px 20px 0;
  text-align: center;
}

.footer-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  gap: 4px;
  transition: opacity var(--transition);
}

.footer-logo:hover { opacity: 0.8; }

.footer-logo img {
  width: 120px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(0,204,255,0.2));
  transition: filter 0.3s ease;
}

.footer-logo:hover img {
  filter: drop-shadow(0 0 12px rgba(0,204,255,0.4));
}

.footer-tagline {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
  font-style: italic;
}

/* ---- RESPONSIVE ---- */
@media (min-width: 480px) {
  .card { padding-bottom: 72px; }
  .hero { padding: 60px 32px 40px; }
  .actions { padding: 32px 24px 0; }
  .section { margin: 32px 24px 0; }
  .contact-info { margin: 22px 24px 0; }
  .footer { margin: 40px 24px 0; }
}

@media (hover: none) {
  .service-item:hover { border-color: var(--border-soft); background: rgba(255,255,255,0.04); }
  .service-item:hover::before { transform: scaleY(0); }
  .service-item:hover .service-icon { background: var(--cyan-soft); }
}
