/* ─────────────────────────────────────────────
   SegúriRed — Hoja de estilos principal
   ───────────────────────────────────────────── */

/* Reset y base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand-900: #071226;
  --brand-800: #0E1F3D;
  --brand-700: #142D54;
  --brand-600: #1A3A6B;   /* Azul marino — color primario */
  --brand-500: #2E6DA4;   /* Azul medio */
  --brand-400: #5B92DF;
  --brand-200: #ADC9EF;
  --brand-100: #D6E4F7;
  --brand-50:  #EBF2FB;

  --gray-900: #111827;
  --gray-700: #374151;
  --gray-600: #4B5563;
  --gray-500: #6B7280;
  --gray-400: #9CA3AF;
  --gray-200: #E5E7EB;
  --gray-100: #F3F4F6;
  --gray-50:  #F9FAFB;
  --white:    #FFFFFF;

  --green-500: #22C55E;
  --green-100: #DCFCE7;
  --green-800: #166534;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,.10), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.12);

  --transition: 200ms ease;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Tipografía ── */
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; line-height: 1.15; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.3; }
p  { line-height: 1.7; }

/* ── Layout helpers ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
.section    { padding: 5rem 0; }
.section--gray { background: var(--gray-50); }
.section--dark { background: var(--brand-700); color: var(--white); }

.section__header { text-align: center; margin-bottom: 3rem; }
.section__header p { color: var(--gray-500); font-size: 1.05rem; max-width: 560px; margin: .75rem auto 0; }

/* ── Botones ── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: .9rem; padding: .75rem 1.6rem;
  border-radius: var(--radius-sm); border: 2px solid transparent;
  cursor: pointer; transition: background var(--transition), color var(--transition),
                               border-color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn-primary  { background: var(--brand-600); color: var(--white); }
.btn-primary:hover { background: var(--brand-700); }

.btn-outline  { border-color: var(--brand-600); color: var(--brand-600); background: transparent; }
.btn-outline:hover { background: var(--brand-600); color: var(--white); }

.btn-white    { background: var(--white); color: var(--brand-600); }
.btn-white:hover { background: var(--brand-100); }

.btn-ghost-white {
  border-color: rgba(255,255,255,.4); color: var(--white); background: transparent;
}
.btn-ghost-white:hover { background: rgba(255,255,255,.12); }

/* ── Badge ── */
.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .75rem; font-weight: 600; padding: .35rem .9rem;
  border-radius: 999px;
}
.badge--light { background: rgba(255,255,255,.15); color: var(--brand-100); }
.badge--brand { background: var(--brand-100); color: var(--brand-600); }
.badge--green { background: var(--green-100); color: var(--green-800); }

/* ── Check list ── */
.check-list { display: flex; flex-direction: column; gap: .6rem; }
.check-list li {
  display: flex; align-items: flex-start; gap: .55rem;
  font-size: .88rem; color: var(--gray-700);
}
.check-list li::before {
  content: "✓"; flex-shrink: 0; width: 18px; height: 18px;
  background: var(--green-100); color: var(--green-800);
  border-radius: 50%; font-size: .7rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.check-list--white li { color: rgba(255,255,255,.85); }
.check-list--white li::before { background: rgba(255,255,255,.2); color: var(--white); }

/* ────────────────────────────────────────────────
   NAVBAR
   ──────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--white); border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.navbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.navbar__logo {
  display: flex; align-items: center; gap: .5rem;
  font-size: 1.25rem; font-weight: 700; color: var(--brand-600);
  flex-shrink: 0;
}
.navbar__logo svg { flex-shrink: 0; }
.navbar__logo span { color: var(--brand-400); }

.navbar__links {
  display: flex; align-items: center; gap: 1.75rem;
}
.navbar__links a {
  font-size: .88rem; font-weight: 500; color: var(--gray-600);
  transition: color var(--transition); padding-bottom: 2px;
}
.navbar__links a:hover,
.navbar__links a.active {
  color: var(--brand-600);
  border-bottom: 2px solid var(--brand-600);
}

.navbar__actions { display: flex; align-items: center; gap: .75rem; }
.navbar__actions .btn { padding: .5rem 1.2rem; font-size: .85rem; }

/* Hamburguesa */
.navbar__toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: .4rem; color: var(--gray-600); border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.navbar__toggle:hover { background: var(--gray-100); }

/* Menú móvil */
.navbar__mobile {
  display: none; flex-direction: column; gap: .25rem;
  border-top: 1px solid var(--gray-200); padding: .75rem 0;
}
.navbar__mobile a {
  display: block; padding: .65rem 1rem; border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 500; color: var(--gray-700);
  transition: background var(--transition), color var(--transition);
}
.navbar__mobile a:hover { background: var(--gray-100); color: var(--brand-600); }
.navbar__mobile .divider { height: 1px; background: var(--gray-200); margin: .5rem 0; }
.navbar__mobile .btn { margin: .25rem .5rem; width: calc(100% - 1rem); justify-content: center; }
.navbar__mobile.open { display: flex; }

/* ────────────────────────────────────────────────
   HERO
   ──────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--brand-800) 0%, var(--brand-700) 50%, var(--brand-600) 100%);
  color: var(--white);
  padding: 5.5rem 0 4.5rem;
}
.hero__content { max-width: 680px; }
.hero__badge    { margin-bottom: 1.5rem; }
.hero h1        { color: var(--white); margin-bottom: 1.25rem; }
.hero h1 em     { font-style: normal; color: var(--brand-200); }
.hero__sub      { font-size: 1.1rem; color: var(--brand-100); margin-bottom: 2rem; max-width: 560px; }
.hero__actions  { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2.5rem; }
.hero__trust    { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.hero__trust span { font-size: .82rem; color: var(--brand-200); }

/* ────────────────────────────────────────────────
   SERVICIOS
   ──────────────────────────────────────────────── */
.services__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl); padding: 1.75rem;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
  cursor: pointer;
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--brand-200);
  transform: translateY(-2px);
}
.service-card__icon {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 1rem;
}
.service-card__icon--blue   { background: #EFF6FF; }
.service-card__icon--green  { background: #F0FDF4; }
.service-card__icon--purple { background: #FAF5FF; }
.service-card h3 { margin-bottom: .5rem; color: var(--gray-900); }
.service-card p  { font-size: .88rem; color: var(--gray-500); margin-bottom: 1rem; }
.service-card__link {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .85rem; font-weight: 600; color: var(--brand-600);
  transition: gap var(--transition);
}
.service-card:hover .service-card__link { gap: .6rem; }

/* ────────────────────────────────────────────────
   PLANES
   ──────────────────────────────────────────────── */
.plans__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem; align-items: start;
}
.plan-card {
  border: 1px solid var(--gray-200); border-radius: var(--radius-xl);
  padding: 1.75rem; display: flex; flex-direction: column;
  background: var(--white);
}
.plan-card--popular {
  border: 2px solid var(--brand-600);
  box-shadow: var(--shadow-md);
  position: relative;
}
.plan-card__badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--brand-600); color: var(--white);
  font-size: .72rem; font-weight: 700; padding: .3rem .9rem;
  border-radius: 999px; white-space: nowrap;
}
.plan-card__label {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--gray-500); margin-bottom: .4rem;
}
.plan-card--popular .plan-card__label { color: var(--brand-600); }
.plan-card__price {
  font-size: 2rem; font-weight: 700; color: var(--gray-900);
  line-height: 1; margin-bottom: .25rem;
}
.plan-card__price span { font-size: .9rem; font-weight: 400; color: var(--gray-500); }
.plan-card__desc { font-size: .85rem; color: var(--gray-500); margin-bottom: 1.25rem; }
.plan-card .check-list { margin-bottom: 1.5rem; flex-grow: 1; }
.plan-card .btn { justify-content: center; width: 100%; }

/* ────────────────────────────────────────────────
   POR QUÉ ELEGIRNOS
   ──────────────────────────────────────────────── */
.features__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--white); border-radius: var(--radius-xl);
  padding: 1.5rem; text-align: center;
  box-shadow: var(--shadow-sm);
}
.feature-card__icon {
  width: 52px; height: 52px; background: var(--brand-100);
  border-radius: var(--radius-md); display: flex; align-items: center;
  justify-content: center; font-size: 1.4rem;
  margin: 0 auto 1rem;
}
.feature-card h3 { margin-bottom: .4rem; font-size: 1rem; color: var(--gray-900); }
.feature-card p  { font-size: .85rem; color: var(--gray-500); }

/* ────────────────────────────────────────────────
   FAQ
   ──────────────────────────────────────────────── */
.faq__list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: .75rem; }

details.faq-item {
  border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--white);
}
details.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.4rem; cursor: pointer; list-style: none;
  font-weight: 500; color: var(--gray-900);
  transition: background var(--transition);
}
details.faq-item summary:hover { background: var(--gray-50); }
details.faq-item summary::after {
  content: "﹢"; font-size: 1.1rem; color: var(--gray-400);
  flex-shrink: 0; transition: transform var(--transition);
}
details.faq-item[open] summary::after { content: "－"; }
details.faq-item .faq-answer {
  padding: 0 1.4rem 1.1rem; font-size: .9rem; color: var(--gray-600); line-height: 1.7;
}

/* ────────────────────────────────────────────────
   PÁGINA PLANES — Tablas
   ──────────────────────────────────────────────── */
.plans-page__section  { margin-bottom: 4.5rem; }
.plans-page__section h2 { margin-bottom: .4rem; color: var(--gray-900); }
.plans-page__section > p { color: var(--gray-500); margin-bottom: 2rem; font-size: .95rem; }

.domain-table {
  width: 100%; border-collapse: collapse;
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}
.domain-table th {
  background: var(--brand-50); text-align: left;
  padding: .9rem 1.25rem; font-size: .8rem;
  font-weight: 600; color: var(--gray-700);
  text-transform: uppercase; letter-spacing: .05em;
}
.domain-table td {
  padding: .85rem 1.25rem; border-top: 1px solid var(--gray-100);
  font-size: .9rem;
}
.domain-table tr:hover td { background: var(--gray-50); }
.domain-table .ext { font-family: monospace; font-size: 1rem; font-weight: 700; color: var(--brand-600); }
.domain-table .price { font-weight: 600; color: var(--gray-900); }
.domain-table .link-consult { font-size: .8rem; color: var(--brand-600); font-weight: 500; }
.domain-table .link-consult:hover { text-decoration: underline; }

/* ────────────────────────────────────────────────
   PÁGINA CONTACTO
   ──────────────────────────────────────────────── */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 3rem; align-items: start;
}
.contact-info__title { font-size: 1.2rem; margin-bottom: .6rem; color: var(--gray-900); }
.contact-info__desc  { font-size: .9rem; color: var(--gray-500); margin-bottom: 2rem; line-height: 1.7; }

.contact-item {
  display: flex; align-items: flex-start; gap: .9rem; margin-bottom: 1.25rem;
}
.contact-item__icon {
  width: 42px; height: 42px; border-radius: var(--radius-md);
  background: var(--brand-100); display: flex; align-items: center;
  justify-content: center; font-size: 1.1rem; flex-shrink: 0;
}
.contact-item__label { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-400); }
.contact-item__value { font-size: .92rem; font-weight: 500; color: var(--gray-800); }
.contact-item__value a { color: var(--brand-600); }
.contact-item__value a:hover { text-decoration: underline; }

.contact-notice {
  background: var(--brand-50); border: 1px solid var(--brand-100);
  border-radius: var(--radius-md); padding: 1rem 1.1rem;
  font-size: .85rem; color: var(--brand-700); margin-top: 1.5rem;
}
.contact-notice strong { display: block; margin-bottom: .25rem; }

/* Mapa */
.map-embed {
  margin-top: 2rem; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--gray-200); height: 200px;
  background: var(--gray-100); display: flex; align-items: center;
  justify-content: center; color: var(--gray-400); font-size: .9rem;
}

/* ────────────────────────────────────────────────
   PAGE HEADER (interior pages)
   ──────────────────────────────────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--brand-800), var(--brand-600));
  color: var(--white); padding: 3.5rem 0;
  text-align: center;
}
.page-header h1 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.75rem); }
.page-header p   { color: var(--brand-200); margin-top: .6rem; font-size: 1rem; max-width: 520px; margin-inline: auto; }

/* ────────────────────────────────────────────────
   FOOTER
   ──────────────────────────────────────────────── */
.footer {
  background: var(--brand-800); color: var(--gray-400);
  padding: 3.5rem 0 1.5rem;
}
.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem; margin-bottom: 2.5rem;
}
.footer__brand { }
.footer__logo {
  display: flex; align-items: center; gap: .5rem;
  font-size: 1.2rem; font-weight: 700; color: var(--white); margin-bottom: .75rem;
}
.footer__logo span { color: var(--brand-300, #84ADE7); }
.footer__tagline { font-size: .85rem; color: var(--gray-400); line-height: 1.6; }

.footer__col h4 {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--white); margin-bottom: 1rem;
}
.footer__col ul { display: flex; flex-direction: column; gap: .5rem; }
.footer__col ul a { font-size: .85rem; color: var(--gray-400); transition: color var(--transition); }
.footer__col ul a:hover { color: var(--white); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.25rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: .5rem;
  font-size: .78rem; color: var(--gray-500);
}

/* ────────────────────────────────────────────────
   CTA FINAL
   ──────────────────────────────────────────────── */
.cta-section {
  background: var(--brand-700); color: var(--white);
  padding: 5rem 0; text-align: center;
}
.cta-section h2 { color: var(--white); margin-bottom: 1rem; }
.cta-section p  { color: var(--brand-200); font-size: 1.05rem; max-width: 480px; margin: 0 auto 2rem; }
.cta-section__actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }

/* ────────────────────────────────────────────────
   LEGAL PAGES
   ──────────────────────────────────────────────── */
.legal-content { max-width: 740px; margin: 0 auto; padding: 3.5rem 1.25rem; }
.legal-content h1 { color: var(--gray-900); margin-bottom: .4rem; }
.legal-content .updated { font-size: .82rem; color: var(--gray-400); margin-bottom: 2.5rem; }
.legal-section { margin-bottom: 2rem; }
.legal-section h2 { font-size: 1.05rem; color: var(--gray-900); margin-bottom: .6rem; }
.legal-section p, .legal-section li { font-size: .9rem; color: var(--gray-600); line-height: 1.75; }
.legal-section ul { list-style: disc; padding-left: 1.4rem; display: flex; flex-direction: column; gap: .3rem; }
.legal-footer { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--gray-200); font-size: .85rem; }
.legal-footer a { color: var(--brand-600); }
.legal-footer a:hover { text-decoration: underline; }

/* ────────────────────────────────────────────────
   RESPONSIVE
   ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 3.5rem 0; }
  .navbar__links, .navbar__actions { display: none; }
  .navbar__toggle { display: flex; align-items: center; justify-content: center; }
  .hero { padding: 3.5rem 0 3rem; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .footer__grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .plans__grid, .services__grid, .features__grid { grid-template-columns: 1fr; }
  .domain-table { font-size: .82rem; }
  .domain-table th, .domain-table td { padding: .7rem .8rem; }
  .cta-section__actions { flex-direction: column; align-items: center; }
  .cta-section__actions .btn { width: 100%; max-width: 320px; justify-content: center; }
}
