/* ============================================================
   WEB COMET — styles.css
   Paleta basada en el logo real:
   Naranja principal : #F2994A / #e67e22
   Texto oscuro      : #2f2f2f
   Texto medio       : #4a4a4a
   Texto suave       : #777
   Fondo blanco      : #ffffff
   Fondo light       : #fafafa / #fff8f3
   Borde             : #eeeeee
   Fuente            : Inter
   ============================================================ */

/* ---- VARIABLES ---- */
:root {
  --orange:       #F2994A;
  --orange-dark:  #e67e22;
  --orange-soft:  rgba(242, 153, 74, 0.1);
  --orange-soft2: rgba(242, 153, 74, 0.06);
  --txt-dark:     #2f2f2f;
  --txt-mid:      #4a4a4a;
  --txt-soft:     #777;
  --txt-xs:       #999;
  --bg-white:     #ffffff;
  --bg-light:     #fafafa;
  --bg-cream:     #fff8f3;
  --border:       #eeeeee;
  --border-mid:   #e0e0e0;
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:    0 8px 32px rgba(0,0,0,0.08);
  --shadow-lg:    0 20px 60px rgba(0,0,0,0.1);
  --radius:       16px;
  --radius-sm:    10px;
  --radius-xs:    6px;
  --transition:   0.28s cubic-bezier(0.4,0,0.2,1);
  --nav-h:        76px;
  --font:         'Inter', sans-serif;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg-white);
  color: var(--txt-dark);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: var(--font); }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #f5f5f5; }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 3px; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 88px 0;
}
.bg-light {
  background: var(--bg-light);
}
.bg-cream {
  background: var(--bg-cream);
}

/* ============================================================
   TYPOGRAPHY HELPERS
   ============================================================ */
.txt-orange { color: var(--orange-dark); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--orange-dark);
  background: var(--orange-soft);
  border: 1px solid rgba(242,153,74,0.3);
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.sec-header {
  text-align: center;
  margin-bottom: 56px;
}
.sec-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--txt-dark);
  line-height: 1.2;
  margin-bottom: 14px;
}
.sec-header p {
  font-size: 1.05rem;
  color: var(--txt-soft);
  max-width: 580px;
  margin: 0 auto;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.93rem;
  font-weight: 600;
  border-radius: 50px;
  padding: 13px 28px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  cursor: pointer;
  border: none;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(242,153,74,0.35);
}
.btn-primary:hover {
  box-shadow: 0 8px 28px rgba(242,153,74,0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--orange-dark);
  border: 2px solid var(--orange);
}
.btn-ghost:hover {
  background: var(--orange-soft);
}

.btn-sm {
  padding: 9px 20px;
  font-size: 0.85rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-wa-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 24px;
  border-radius: 12px;
  background: #25D366;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(37,211,102,0.3);
  transition: transform var(--transition), box-shadow var(--transition);
  margin-top: 20px;
}
.btn-wa-block:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,211,102,0.4);
}
.btn-wa-block i { font-size: 1.3rem; }

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background var(--transition), box-shadow var(--transition);
  background: rgba(255,255,255,0);
}
#navbar.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 1px 0 var(--border), var(--shadow-sm);
  backdrop-filter: blur(16px);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 46px;
  width: auto;
}

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

.nl {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--txt-mid);
  padding: 7px 14px;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
  position: relative;
}
.nl:hover, .nl.active { color: var(--orange-dark); }
.nl:hover { background: var(--orange-soft2); }

.nl-cta {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 50px;
  margin-left: 8px;
  box-shadow: 0 3px 12px rgba(242,153,74,0.3);
}
.nl-cta:hover {
  background: linear-gradient(135deg, var(--orange-dark), var(--orange));
  box-shadow: 0 6px 20px rgba(242,153,74,0.4);
  color: #fff !important;
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 8px;
}
.burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--txt-dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
#inicio {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, #ffffff 0%, #fff8f3 50%, #ffffff 100%);
}

/* Background shapes */
.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
}
.shape-1 {
  width: 500px; height: 500px;
  background: var(--orange);
  top: -200px; right: -150px;
}
.shape-2 {
  width: 350px; height: 350px;
  background: var(--orange-dark);
  bottom: -100px; left: -100px;
  opacity: 0.05;
}
.shape-3 {
  width: 200px; height: 200px;
  background: var(--orange);
  top: 40%; left: 35%;
  opacity: 0.04;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
  padding: 48px 24px;
}

.hero-text .chip { margin-bottom: 20px; }

.hero-text h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--txt-dark);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-text p {
  font-size: 1.08rem;
  color: var(--txt-soft);
  margin-bottom: 36px;
  max-width: 520px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--txt-mid);
  padding: 0 16px;
}
.trust-item:first-child { padding-left: 0; }
.trust-item i { color: var(--orange); font-size: 0.9rem; }
.trust-sep {
  width: 1px; height: 20px;
  background: var(--border-mid);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

.visual-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

/* Main central card */
.main-card {
  padding: 32px 36px;
  position: relative;
  z-index: 2;
}
.main-card strong {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--txt-dark);
}
.main-card span {
  font-size: 0.82rem;
  color: var(--txt-soft);
  max-width: 160px;
}

/* Side orbital cards */
.side-card {
  padding: 11px 16px;
  flex-direction: row;
  position: absolute;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--txt-mid);
  gap: 8px;
  z-index: 3;
  white-space: nowrap;
}
.side-card i { font-size: 1rem; }

/* Positions */
.sc-top-right   { top: 10px;  right: -18px; }
.sc-bottom-left { bottom: 20px; left: -22px; }
.sc-top-left    { top: 50px;  left: -44px; }
.sc-bottom-right{ bottom: 60px; right: -24px; }
.sc-mid-right   { top: 50%;   right: -72px; transform: translateY(-50%); }

/* Active / online badge */
.visual-badge {
  position: absolute;
  bottom: 6px; right: -20px;
  background: var(--orange);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 16px rgba(242,153,74,0.4);
  z-index: 4;
}

/* ---- Float animations (more variety) ---- */

/* A: gentle vertical */
.anim-a {
  animation: floatA 4s ease-in-out infinite;
}
/* B: vertical + slight horizontal drift */
.anim-b {
  animation: floatB 5s ease-in-out infinite;
  animation-delay: -1s;
}
/* C: vertical + slight rotation */
.anim-c {
  animation: floatC 3.8s ease-in-out infinite;
  animation-delay: -2s;
}
/* D: faster vertical + scale pulse */
.anim-d {
  animation: floatD 3.2s ease-in-out infinite;
  animation-delay: -0.5s;
}
/* Badge: bounce */
.anim-badge {
  animation: floatBadge 2.6s ease-in-out infinite;
  animation-delay: -1.3s;
}

@keyframes floatA {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@keyframes floatB {
  0%,100% { transform: translateY(0) translateX(0); }
  33%      { transform: translateY(-8px) translateX(4px); }
  66%      { transform: translateY(-4px) translateX(-3px); }
}
@keyframes floatC {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-9px) rotate(1.5deg); }
}
@keyframes floatD {
  0%,100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-7px) scale(1.03); }
}
@keyframes floatBadge {
  0%,100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-6px) scale(1.04); }
}
/* sc-mid-right needs special treatment (has translateY(-50%) base) */
.sc-mid-right.anim-c {
  animation-name: floatMidRight;
}
@keyframes floatMidRight {
  0%,100% { transform: translateY(-50%) translateX(0) rotate(0deg); }
  50%      { transform: translateY(calc(-50% - 9px)) translateX(2px) rotate(1deg); }
}

/* ============================================================
   SERVICES GRID
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

.srv-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.srv-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(242,153,74,0.3);
}

.srv-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--orange-dark);
  margin-bottom: 18px;
  transition: transform var(--transition), background var(--transition);
}
.bg-orange-soft { background: var(--orange-soft); }
.srv-card:hover .srv-icon {
  background: var(--orange);
  color: #fff;
  transform: scale(1.08);
}

.srv-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--txt-dark);
  margin-bottom: 10px;
}
.srv-card p {
  font-size: 0.88rem;
  color: var(--txt-soft);
  line-height: 1.65;
  margin-bottom: 18px;
}

.srv-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--orange-dark);
  transition: gap var(--transition);
}
.srv-link:hover { gap: 10px; }

/* ============================================================
   HOSTING TABS
   ============================================================ */
.tabs-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 44px;
}
.tabs {
  display: inline-flex;
  gap: 4px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 5px;
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 24px;
  border-radius: 9px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--txt-soft);
  transition: all var(--transition);
}
.tab.active {
  background: var(--bg-white);
  color: var(--orange-dark);
  box-shadow: var(--shadow-sm);
}
.tab:hover:not(.active) { color: var(--txt-mid); background: rgba(0,0,0,0.03); }

.tab-content { display: none; }
.tab-content.active { display: block; }

.hosting-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.hosting-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
}
.hc-icon {
  font-size: 1.8rem;
  color: var(--orange);
  margin-bottom: 16px;
}
.hosting-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--txt-dark);
  margin-bottom: 10px;
}
.hosting-card > p {
  font-size: 0.9rem;
  color: var(--txt-soft);
  margin-bottom: 24px;
  line-height: 1.65;
}

.hc-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.hc-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.89rem;
  color: var(--txt-mid);
}
.hc-features li i { color: var(--orange); font-size: 0.75rem; flex-shrink: 0; }

.hosting-info h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--txt-dark);
  margin-bottom: 12px;
}
.hosting-info > p {
  font-size: 0.9rem;
  color: var(--txt-soft);
  line-height: 1.7;
  margin-bottom: 24px;
}

.hc-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.hc-badges span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--orange-dark);
  background: var(--orange-soft);
  border: 1px solid rgba(242,153,74,0.2);
  padding: 6px 13px;
  border-radius: 50px;
}

/* ============================================================
   EMAIL PROVIDERS
   ============================================================ */
.email-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}

.email-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.email-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.email-logo { margin-bottom: 14px; height: 42px; display: flex; align-items: center; justify-content: center; }
.email-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--txt-dark);
  margin-bottom: 10px;
}
.email-card p {
  font-size: 0.86rem;
  color: var(--txt-soft);
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}
.email-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  margin-bottom: 20px;
}
.email-tags span {
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--orange-soft);
  color: var(--orange-dark);
  border: 1px solid rgba(242,153,74,0.25);
  padding: 3px 10px;
  border-radius: 50px;
}

/* ============================================================
   ABOUT / NOSOTROS
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 72px;
  align-items: center;
}

.about-text .chip { margin-bottom: 16px; }
.about-text h2 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--txt-dark);
  line-height: 1.2;
  margin-bottom: 16px;
}
.about-text > p {
  font-size: 1rem;
  color: var(--txt-soft);
  line-height: 1.7;
  margin-bottom: 32px;
}

.about-items { display: flex; flex-direction: column; gap: 20px; }
.about-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.ai-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 10px;
  background: var(--orange-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--orange-dark);
}
.about-item > div { display: flex; flex-direction: column; gap: 2px; }
.about-item strong { font-size: 0.95rem; font-weight: 600; color: var(--txt-dark); }
.about-item span   { font-size: 0.87rem; color: var(--txt-soft); }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.stat-card i {
  font-size: 1.4rem;
  color: var(--orange);
  margin-bottom: 10px;
}
.stat-card strong {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--txt-dark);
  line-height: 1;
}
.stat-card span {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--orange);
}
.stat-card p {
  font-size: 0.82rem;
  color: var(--txt-soft);
  margin-top: 6px;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ci-block {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.ci-block:hover {
  border-color: rgba(242,153,74,0.3);
  box-shadow: var(--shadow-sm);
}
.ci-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 10px;
  background: var(--orange-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--orange-dark);
}
.ci-block > div {
  display: flex; flex-direction: column; gap: 2px;
}
.ci-block strong {
  font-size: 0.82rem; font-weight: 700;
  color: var(--txt-dark); letter-spacing: 0.3px;
  text-transform: uppercase;
}
.ci-block a {
  font-size: 0.9rem; color: var(--orange-dark); font-weight: 500;
}
.ci-block a:hover { text-decoration: underline; }
.ci-block span, .ci-block small {
  font-size: 0.82rem; color: var(--txt-xs);
}

/* Form */
.contact-form-wrap {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
}

.cform { display: flex; flex-direction: column; gap: 18px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.fg { display: flex; flex-direction: column; gap: 5px; }
.fg label {
  font-size: 0.8rem; font-weight: 600;
  color: var(--txt-mid); letter-spacing: 0.3px;
}

.fg input,
.fg select,
.fg textarea {
  background: var(--bg-light);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 11px 14px;
  font-size: 0.9rem;
  color: var(--txt-dark);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.fg select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.fg input::placeholder,
.fg textarea::placeholder { color: #bbb; }
.fg input:focus,
.fg select:focus,
.fg textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(242,153,74,0.12);
  background: #fff;
}
.fg input.has-error,
.fg textarea.has-error { border-color: #e74c3c; }

.ferr {
  font-size: 0.75rem; color: #e74c3c;
  display: none; margin-top: 2px;
}
.ferr.show { display: block; }

.form-msg {
  display: none;
  align-items: center; gap: 10px;
  font-size: 0.88rem; font-weight: 600;
  border-radius: var(--radius-xs);
  padding: 13px 16px;
  margin-top: 4px;
}
.form-msg.success {
  display: flex;
  color: #27ae60;
  background: rgba(39,174,96,0.08);
  border: 1px solid rgba(39,174,96,0.3);
}
.form-msg.error {
  display: flex;
  color: #e74c3c;
  background: rgba(231,76,60,0.08);
  border: 1px solid rgba(231,76,60,0.3);
}

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  background: #2f2f2f;
  color: #ccc;
}

.footer-top { padding: 64px 0 44px; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand img {
  margin-bottom: 14px;
  filter: brightness(0) invert(1); /* logo blanco sobre fondo oscuro */
  opacity: 0.9;
}
.footer-brand p {
  font-size: 0.87rem;
  color: #aaa;
  line-height: 1.6;
  margin-bottom: 20px;
}
.footer-contact { display: flex; flex-direction: column; gap: 8px; }
.footer-contact a {
  font-size: 0.85rem; color: #bbb;
  display: flex; align-items: center; gap: 8px;
}
.footer-contact a:hover { color: var(--orange); }
.footer-contact i { color: var(--orange); font-size: 0.85rem; width: 14px; }

.footer-col h4 {
  font-size: 0.88rem; font-weight: 700;
  color: #fff; margin-bottom: 18px;
  letter-spacing: 0.3px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li a {
  font-size: 0.85rem; color: #aaa;
  display: flex; align-items: center; gap: 7px;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--orange); }
.footer-col ul li a i { font-size: 0.8rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.82rem; color: #888; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 0.82rem; color: #888; }
.footer-legal a:hover { color: var(--orange); }

/* ============================================================
   BACK TO TOP
   ============================================================ */
#btt {
  position: fixed;
  bottom: 92px; right: 20px;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  color: var(--orange-dark);
  font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: all var(--transition);
  z-index: 999;
}
#btt.show { opacity: 1; visibility: visible; pointer-events: auto; }
#btt:hover {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
  transform: translateY(-2px);
}

/* ============================================================
   WHATSAPP FLOATING BUTTON
   ============================================================ */
.wa-fab {
  position: fixed;
  bottom: 24px; right: 20px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  z-index: 1001;
  transition: transform var(--transition), box-shadow var(--transition);
  animation: waPop 2.5s ease-in-out infinite;
}
.wa-fab:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 32px rgba(37,211,102,0.55);
  color: #fff;
}

@keyframes waPop {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,0.5), 0 0 0 0 rgba(37,211,102,0.3); }
  50%      { box-shadow: 0 4px 20px rgba(37,211,102,0.5), 0 0 0 16px rgba(37,211,102,0); }
}

/* Bubble tooltip */
.wa-bubble {
  position: absolute;
  right: 68px;
  bottom: 50%;
  transform: translateY(50%) scale(0.9);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 16px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0; visibility: hidden;
  transition: all var(--transition);
  pointer-events: none;
  white-space: nowrap;
}
.wa-bubble::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right: none;
  border-left-color: #fff;
}
.wa-bubble strong { font-size: 0.85rem; color: var(--txt-dark); }
.wa-bubble span   { font-size: 0.75rem; color: #25D366; font-weight: 600; }

.wa-fab:hover .wa-bubble,
.wa-bubble.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(50%) scale(1);
}

/* ============================================================
   ATENCIÓN Y SOPORTE PERSONALIZADO
   ============================================================ */
.atencion-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.at-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.at-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(242,153,74,0.3);
}

.at-card-highlight {
  background: linear-gradient(135deg, #fff8f3, #fff4ea);
  border-color: rgba(242,153,74,0.25);
  grid-column: span 1;
}

.at-num {
  position: absolute;
  top: 20px; right: 24px;
  font-size: 2rem;
  font-weight: 900;
  color: var(--orange);
  opacity: 0.12;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.at-icon {
  width: 50px; height: 50px;
  border-radius: var(--radius-sm);
  background: var(--orange-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  color: var(--orange-dark);
  margin-bottom: 4px;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.at-card:hover .at-icon {
  background: var(--orange);
  color: #fff;
  transform: scale(1.08) rotate(-3deg);
}

.at-card h3 {
  font-size: 1.03rem;
  font-weight: 700;
  color: var(--txt-dark);
}
.at-card p {
  font-size: 0.88rem;
  color: var(--txt-soft);
  line-height: 1.65;
  flex-grow: 1;
}

/* ============================================================
   DOMAIN FLOATING WIDGET
   ============================================================ */
.domain-fab {
  position: fixed;
  bottom: 24px;
  left: 20px;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.domain-fab-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(242,153,74,0.4);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  border: none;
  font-family: var(--font);
  animation: domainPop 3s ease-in-out infinite;
}
.domain-fab-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(242,153,74,0.5);
  animation: none;
}
.domain-fab-toggle i:first-child { font-size: 1rem; }
.dfp-arrow {
  font-size: 0.65rem;
  transition: transform var(--transition);
}
.domain-fab.panel-open .dfp-arrow { transform: rotate(180deg); }

@keyframes domainPop {
  0%,100% { box-shadow: 0 4px 20px rgba(242,153,74,0.4), 0 0 0 0 rgba(242,153,74,0.25); }
  50%      { box-shadow: 0 4px 20px rgba(242,153,74,0.4), 0 0 0 10px rgba(242,153,74,0); }
}

/* Panel */
.domain-fab-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-lg);
  width: 272px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.96);
  transform-origin: bottom left;
  transition: all 0.28s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
}
.domain-fab-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.dfp-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.dfp-header > i { color: var(--orange); font-size: 1rem; }
.dfp-header strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--txt-dark);
  flex: 1;
}
.dfp-close {
  width: 26px; height: 26px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  color: var(--txt-soft);
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font);
}
.dfp-close:hover { background: var(--bg-light); color: var(--txt-dark); }

/* Ticker */
.dfp-ticker-wrap {
  overflow: hidden;
  border-radius: 8px;
  background: var(--bg-cream);
  padding: 10px 0;
  border: 1px solid rgba(242,153,74,0.18);
  margin-bottom: 14px;
}
.dfp-ticker {
  display: flex;
  animation: tickerScroll 18s linear infinite;
  width: max-content;
}
.dfp-ticker span {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--orange-dark);
  padding: 0 14px;
  border-right: 1px solid rgba(242,153,74,0.2);
  white-space: nowrap;
  letter-spacing: 0.5px;
}

@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.dfp-text {
  font-size: 0.82rem;
  color: var(--txt-soft);
  line-height: 1.6;
  margin-bottom: 14px;
}

.dfp-cta {
  width: 100%;
  justify-content: center;
  font-size: 0.84rem;
  padding: 10px 16px;
  border-radius: 10px;
}

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ≤ 1024px */
@media (max-width: 1024px) {
  .hero-grid     { gap: 40px; }
  .about-grid    { gap: 48px; }
  .footer-grid   { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ≤ 900px */
@media (max-width: 900px) {
  .atencion-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid     { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual   { display: none; }
  .hero-text     { text-align: center; }
  .hero-text p   { margin: 0 auto 36px; }
  .hero-actions  { justify-content: center; }
  .hero-trust    { justify-content: center; }
  .about-grid    { grid-template-columns: 1fr; gap: 44px; }
  .hosting-grid  { grid-template-columns: 1fr; }
  .contact-grid  { grid-template-columns: 1fr; gap: 36px; }
}

/* ≤ 768px */
@media (max-width: 768px) {
  /* Nav */
  .burger { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-8px);
    opacity: 0; visibility: hidden;
    transition: all var(--transition);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1; visibility: visible;
  }
  .nl { font-size: 1rem; padding: 12px 16px; width: 100%; text-align: center; border-radius: 10px; }
  .nl-cta { margin: 8px 0 0; border-radius: 50px; }

  /* Section */
  .section { padding: 64px 0; }

  /* Services */
  .services-grid { grid-template-columns: 1fr 1fr; }

  /* Email */
  .email-grid { grid-template-columns: 1fr 1fr; }

  /* Hosting tabs */
  .tabs { flex-direction: column; border-radius: 12px; }
  .tab { justify-content: center; }

  /* Stats */
  .about-stats { grid-template-columns: 1fr 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
}

/* ≤ 540px */
@media (max-width: 540px) {
  .domain-fab { display: none; }
  .atencion-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .email-grid    { grid-template-columns: 1fr; }
  .form-row      { grid-template-columns: 1fr; }
  .hero-text h1  { font-size: 2rem; }
  .hero-actions  { flex-direction: column; align-items: stretch; }
  .btn           { justify-content: center; }
  .hero-trust    { flex-direction: column; gap: 8px; }
  .trust-sep     { display: none; }
  .footer-grid   { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 24px 18px; }
}
