/* ===== Base ===== */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface2: #f8fafc;
  --border: #e2e8f0;
  --text: #0f172a;
  --muted: #64748b;
  --accent: #4f46e5;
  --accent2: #06b6d4;
  --accent-gradient: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.04), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --radius: 20px;
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

/* Utilities */
.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.iconodownapp {
  background: white;
  border-radius: 50%;
  padding: 10px;
}

.muted {
  color: var(--muted);
}

.accent {
  color: var(--accent);
}

.eyebrow {
  margin: 0 0 10px;
  font-weight: 600;
  letter-spacing: .2px;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-weight: 600;
  gap: 10px;
  box-shadow: none;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
  user-select: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.btn--ghost {
  background: var(--surface2);
  color: var(--text);
  border-color: var(--border);
}

.btn--full {
  width: 100%;
}

/* ===== Topbar ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 18px;
}

.brand img {
  height: 80px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav__link {
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 10px;
  border-radius: 10px;
}

.nav__link:hover {
  color: var(--accent);
  background: var(--surface2);
}

.topbar__cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__burger {
  display: none;
  width: 42px;
  height: 42px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
}

.nav__burger span {
  display: block;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
}

/* Mobile menu */
.mobile-menu {
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
}

.mobile-menu__inner {
  padding: 14px 0 18px;
  display: grid;
  gap: 10px;
}

.mobile-menu__inner a {
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 54px 0 32px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(circle at 10% 20%, rgba(79, 70, 229, 0.08), transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.1), transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(244, 63, 185, 0.05), transparent 50%);
  z-index: -1;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 32px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.12;
  margin: 0 0 14px;
}

.hero__sub {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__visual {
  display: flex;
  justify-content: flex-end;
}

.hero__device {
  width: min(560px, 100%);
  height: auto;
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, .10);
}

/* ===== Value + features ===== */
.value {
  padding: 80px 0;
  background-color: var(--surface2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.value__grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 18px;
  align-items: start;
}

/* Big pricing card */
.card {
  border-radius: var(--radius);
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card--big {
  padding: 24px;
}

.card__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border-radius: 16px;
  background: var(--surface2);
  border: 1px solid var(--border);
}

.price {
  margin: 0 0 8px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price__amount {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -1px;
}

.price__unit {
  color: var(--muted);
  font-weight: 700;
}

.bullets {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.bullets li {
  margin: 4px 0;
}

.badge {
  width: 100px;
  height: 100px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--accent-gradient);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.2);
}

.badge svg {
  width: 68px;
  height: 68px;
}

.tech {
  padding: 14px 4px 0;
}

.tech img {
  height: 40px;
  width: auto;
  display: block;
  opacity: .92;
}

.tech__text {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* Features grid */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.fcard {
  border-radius: 20px;
  background: var(--fcard-bg, #ffffff);
  border: 1px solid var(--border);
  padding: 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.fcardIndex-0 {
  --ficon-bg: #4f46e5;
  --fcard-bg: #f5f3ff;
}

.fcardIndex-1 {
  --ficon-bg: #06b6d4;
  --fcard-bg: #ecfeff;
}

.fcardIndex-2 {
  --ficon-bg: #8b5cf6;
  --fcard-bg: #f5f3ff;
}

.fcardIndex-3 {
  --ficon-bg: #f43fb9;
  --fcard-bg: #fdf2f8;
}

.fcardIndex-4 {
  --ficon-bg: #f59e0b;
  --fcard-bg: #fffbeb;
}

.fcardIndex-5 {
  --ficon-bg: #10b981;
  --fcard-bg: #f0fdf4;
}

.fcardIndex-6 {
  --ficon-bg: #ef4444;
  --fcard-bg: #fef2f2;
}

.fcardIndex-7 {
  --ficon-bg: #6366f1;
  --fcard-bg: #eef2ff;
}

.fcardIndex-8 {
  --ficon-bg: #ec4899;
  --fcard-bg: #fdf2f8;
}

.fcardIndex-0 .ficon {
  background: rgba(79, 70, 229, 0.1);
  color: #4f46e5;
}

.fcardIndex-1 .ficon {
  background: rgba(6, 182, 212, 0.1);
  color: #06b6d4;
}

.fcardIndex-2 .ficon {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

.fcardIndex-3 .ficon {
  background: rgba(244, 63, 185, 0.1);
  color: #f43fb9;
}

.fcardIndex-4 .ficon {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.fcardIndex-5 .ficon {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.fcardIndex-6 .ficon {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.fcardIndex-7 .ficon {
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
}

.fcardIndex-8 .ficon {
  background: rgba(236, 72, 153, 0.1);
  color: #ec4899;
}

.fcard:hover {
  transform: translateY(-8px);
  border-color: var(--ficon-bg);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.fcard:hover .ficon {
  background: var(--ficon-bg);
  color: #ffffff;
}

.ficon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  margin-bottom: 16px;
}

.ficon svg {
  width: 22px;
  height: 22px;
}

.fcard h3 {
  margin: 0 0 6px;
  font-size: 14.5px;
}

.fcard p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

/* ===== CTA strip ===== */
.cta {
  padding: 80px 0;
  background: var(--accent-gradient);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm56-76c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 35c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  z-index: 1;
}

.cta h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
}

.cta p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.cta .btn--primary {
  background: #ffffff;
  color: var(--accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ===== Footer ===== */
.footer {
  background: var(--surface2);
  color: var(--text);
  padding: 60px 0 30px;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 18px;
  align-items: center;
}

.footer__brand img {
  height: 42px;
  display: block;
}

.footer__brand .muted {
  color: rgba(17, 24, 39, .65);
  margin: 6px 0 0;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  justify-content: center;
}

.footer__nav a {
  color: rgba(17, 24, 39, .72);
  font-weight: 600;
  font-size: 13px;
}

.footer__nav a:hover {
  color: rgba(17, 24, 39, 1);
}

.footer__legal {
  text-align: right;
}

.footer__legal .muted {
  color: rgba(17, 24, 39, .65);
  margin: 0;
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    justify-content: flex-start;
  }

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

  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__legal {
    text-align: center;
  }
}

@media (max-width: 720px) {
  .nav__link {
    display: none;
  }

  .topbar__cta {
    display: none;
  }

  .nav__burger {
    display: block;
  }

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

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

/* ===== Blob Animations ===== */
@keyframes blob {
  0% {
    transform: translate(0px, 0px) scale(1);
  }

  33% {
    transform: translate(30px, -50px) scale(1.1);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }

  100% {
    transform: translate(0px, 0px) scale(1);
  }
}

.animate-blob {
  animation: blob 7s infinite;
}

.animation-delay-2000 {
  animation-delay: 2s;
}

.animation-delay-4000 {
  animation-delay: 4s;
}

/* ===== FullCalendar Custom Skin ===== */

/* 1. Contenedor Principal */
#calendar {
  background: var(--surface);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-family: inherit;
}

/* 2. Cabecera (Toolbar) */
.fc .fc-toolbar {
  margin-bottom: 24px !important;
  display: flex;
  align-items: center;
}

.fc .fc-toolbar-title {
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  color: var(--text);
  letter-spacing: -0.02em;
}

/* 3. Botones (Adaptados a tu clase .btn) */
.fc .fc-button {
  background: var(--surface2) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  font-weight: 600 !important;
  border-radius: 10px !important;
  padding: 8px 14px !important;
  text-transform: capitalize !important;
  transition: all 0.2s ease !important;
  box-shadow: none !important;
}

.fc .fc-button:hover {
  background: var(--border) !important;
  border-color: var(--muted) !important;
  transform: translateY(-1px);
}

.fc .fc-button-active {
  background: var(--accent-gradient) !important;
  border-color: transparent !important;
  color: white !important;
}

/* 4. Cabeceras de la Tabla (Días de la semana) */
.fc th {
  border: none !important;
  padding: 12px 0 !important;
}

.fc .fc-col-header-cell-cushion {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none !important;
}

/* 5. Celdas y Cuadrícula */
.fc td,
.fc th {
  border-color: var(--surface2) !important;
}

.fc-theme-standard .fc-scrollgrid {
  border: 1px solid var(--border) !important;
  border-radius: 12px;
  overflow: hidden;
}

/* Celda del día de hoy */
.fc .fc-day-today {
  background: rgba(79, 70, 229, 0.04) !important;
}

/* 6. Eventos (Estilo "Pill") */
.fc-event {
  border-radius: 6px !important;
  border: none !important;
  padding: 2px 6px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
  margin: 1px 2px !important;
  cursor: pointer;
}

.fc-v-event {
  /* Eventos verticales en vista semana/día */
  background-color: var(--accent) !important;
  border-left: 4px solid rgba(0, 0, 0, 0.1) !important;
}

/* 7. Indicador de hora actual (Línea roja) */
.fc .fc-timegrid-now-indicator-line {
  border-color: var(--accent2) !important;
  border-width: 2px !important;
}

/* 8. Ajustes para el Modal de Eventos (Si usas el que diseñamos antes) */
#modalEvento .inline-block {
  border-radius: var(--radius);
  border: none;
}