/* ─── FUENTES ─── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500&display=swap');

/* ─── VARIABLES ─── */
:root {
  --bg:        #07101f;
  --bg2:       #0b1829;
  --bg3:       #0f1e35;
  --text:      #FBF9FF;
  --text-dim:  rgba(251,249,255,0.55);
  --border:    rgba(251,249,255,0.1);
  --border-hover: rgba(251,249,255,0.3);
  --accent:    #2563eb;
}

/* ─── RESET ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ─── HEADER ─── */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 52px;
  background: rgba(7, 16, 31, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(251,249,255,0.05);
  transition: padding 0.3s;
}

#header.scrolled {
  padding: 12px 52px;
}

.logo img {
  height: 38px;
  width: auto;
}

/* NAV PILLS */
nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
}

nav ul li a {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.025em;
  color: var(--text);
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

nav ul li a:hover,
nav ul li a.active {
  background: rgba(251,249,255,0.09);
  border-color: var(--border-hover);
}

/* HAMBURGER */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 300;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.menu-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── HERO ─── */
#inicio {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('');
  background-size: cover;
  background-position: center;
  z-index: 0;
  transform: scale(1.04);
  transition: transform 8s ease-out;
}

.hero-bg.loaded { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 16, 31, 0.58);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 24px;
  max-width: 900px;
}

.hero-content h1 {
  font-size: clamp(3.2rem, 9vw, 7.5rem);
  margin-bottom: 22px;
  font-weight: 600;
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-dim);
  margin-bottom: 44px;
  font-weight: 300;
  letter-spacing: 0.01em;
}

/* ─── BOTONES ─── */
.btn-primary {
  display: inline-block;
  padding: 13px 34px;
  border-radius: 999px;
  border: 1px solid rgba(251,249,255,0.7);
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.btn-outline {
  display: inline-block;
  padding: 11px 28px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.83rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  transition: background 0.22s ease, border-color 0.22s ease;
  cursor: pointer;
  text-align: center;
}

.btn-outline:hover {
  background: rgba(251,249,255,0.07);
  border-color: var(--border-hover);
}

.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 34px;
  border-radius: 999px;
  background: #25D366;
  border: none;
  font-size: 0.88rem;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  color: #fff;
  transition: opacity 0.2s;
  cursor: pointer;
}

.btn-wa:hover { opacity: 0.88; }

.btn-back {
  display: inline-block;
  padding: 11px 28px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.83rem;
  font-weight: 400;
  font-family: 'DM Sans', sans-serif;
  color: var(--text-dim);
  transition: color 0.22s, border-color 0.22s;
  cursor: pointer;
}

.btn-back:hover {
  color: var(--text);
  border-color: var(--border-hover);
}

/* ─── SECCIONES ─── */
.section {
  padding: 130px 52px;
}

.section-alt {
  padding: 130px 52px;
  background: var(--bg2);
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  margin-bottom: 72px;
  text-align: center;
}

/* ─── SERVICIOS ─── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.service-icon {
  width: 48px;
  height: 48px;
  color: var(--text-dim);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-item span {
  font-size: 0.95rem;
  font-weight: 400;
  color: rgba(251,249,255,0.78);
  letter-spacing: 0.01em;
}

/* ─── PLANES ─── */
#planes { background: var(--bg); }

.planes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  max-width: 1060px;
  margin: 0 auto;
}

.plan-card {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
  padding-top: 30px;
}

.plan-image {
  width: 100%;
  height: 190px;
  background: var(--bg3);
  overflow: hidden;
  margin-bottom: 26px;
  border-radius: 3px;
}

.plan-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.plan-card:hover .plan-image img {
  transform: scale(1.03);
}

.plan-card h3 {
  font-size: 2rem;
  margin-bottom: 22px;
}

.plan-highlights {
  flex: 1;
  margin-bottom: 30px;
}

.plan-highlights li {
  font-size: 0.87rem;
  color: var(--text-dim);
  padding: 7px 0;
  border-bottom: 1px solid rgba(251,249,255,0.05);
  font-weight: 300;
}

.plan-highlights li:last-child {
  border-bottom: none;
}

/* ─── PORTFOLIO ─── */
#portfolio { background: var(--bg2); }

.portfolio-item {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.portfolio-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  margin-bottom: 14px;
}

.portfolio-desc {
  font-size: 0.95rem;
  color: var(--text-dim);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 22px;
}

.portfolio-link {
  display: inline-block;
  font-size: 0.83rem;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  letter-spacing: 0.03em;
  transition: color 0.22s, border-color 0.22s;
}

.portfolio-link:hover {
  color: var(--text);
  border-color: rgba(251,249,255,0.5);
}

/* ─── CONTACTO ─── */
#contacto { background: var(--bg); }

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.contact-item {
  font-size: 1rem;
  color: var(--text-dim);
  font-weight: 300;
  letter-spacing: 0.01em;
}

.contact-item a {
  transition: color 0.22s;
}

.contact-item a:hover {
  color: var(--text);
}

/* ─── FOOTER ─── */
footer {
  text-align: center;
  padding: 36px 24px;
  font-size: 0.78rem;
  color: rgba(251,249,255,0.22);
  border-top: 1px solid rgba(251,249,255,0.05);
  letter-spacing: 0.03em;
}

/* ─── WHATSAPP FLOTANTE ─── */
.wa-float {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 999;
  width: 54px;
  height: 54px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(0,0,0,0.35);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 28px rgba(0,0,0,0.45);
}

.wa-float svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

/* ─── ANIMACIONES ─── */
.animate-in {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.85s cubic-bezier(0.22,1,0.36,1),
              transform 0.85s cubic-bezier(0.22,1,0.36,1);
}

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

.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }
.delay-4 { transition-delay: 0.48s; }

/* ─── PÁGINA DE PLAN (DETALLE) ─── */
.plan-detail {
  padding-top: 120px;
  min-height: 100vh;
}

.plan-detail-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 80px 52px 120px;
}

.plan-detail-title {
  font-size: clamp(3rem, 6vw, 5.5rem);
  margin-bottom: 52px;
}

.plan-detail-block {
  margin-bottom: 40px;
}

.plan-detail-block h4 {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 16px;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.03em;
  color: var(--text-dim);
  text-transform: uppercase;
  font-size: 0.75rem;
}

.plan-detail-block ul li {
  font-size: 0.95rem;
  color: var(--text-dim);
  padding: 8px 0;
  border-bottom: 1px solid rgba(251,249,255,0.05);
  font-weight: 300;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.plan-detail-block ul li::before {
  content: '—';
  color: rgba(251,249,255,0.25);
  flex-shrink: 0;
  font-size: 0.75rem;
}

.plan-detail-block ul.no-list li::before {
  content: '✕';
  color: rgba(251,249,255,0.18);
  font-size: 0.7rem;
}

.plan-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 56px;
  align-items: center;
}

.plan-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .planes-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
  }
}

@media (max-width: 768px) {
  #header { padding: 16px 24px; }
  #header.scrolled { padding: 12px 24px; }

  .menu-toggle { display: flex; }

  nav ul {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    z-index: 250;
  }

  nav ul.open { display: flex; }

  nav ul li a {
    font-size: 1.15rem;
    padding: 12px 36px;
  }

  .section,
  .section-alt {
    padding: 90px 24px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 300px;
  }

  .planes-grid {
    padding: 0;
  }

  .plan-detail-inner {
    padding: 60px 24px 80px;
  }

  .plan-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}
