/* fime-proto v2 white about */
/*
Theme Name: Fime360 Consultora
Theme URI: https://fime360.cl
Author: Fime360
Author URI: https://fime360.cl
Description: Tema de landing page para Fime360 — Consultora Integral Laboral. Diseño con glassmorfismo, neumorfismo y microinteracciones.
Version: 1.1.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: consultora, laboral, one-column, custom-colors, custom-menu, featured-images, full-width-template
Text Domain: fime360
*/

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Paleta oficial Manual de Identidad Fime360 */
  --background: #F8F8FB;
  --foreground: #2A2A35;
  --surface: #F0F0F5;
  --card: #FFFFFF;
  --card-foreground: #2A2A35;
  --primary: #3D3564;              /* Morado oscuro — principal */
  --primary-foreground: #FFFFFF;
  --secondary: #7B6FB0;            /* Morado medio — secundario */
  --secondary-foreground: #FFFFFF;
  --muted: #E8E6EF;
  --muted-foreground: #5C5C6E;
  --accent: #40CDC3;               /* Turquesa — complementario */
  --accent-foreground: #1A1A22;
  --border: #E0DEE8;
  --input: #E0DEE8;
  --ring: #40CDC3;
  --hero-muted: rgba(255, 255, 255, 0.85);
  --radius: 0.5rem;
  --font-sans: "Manrope", system-ui, -apple-system, sans-serif;
  --font-display: "Outfit", system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }
#inicio, #servicios, #nosotros, #contacto, #formulario {
  scroll-margin-top: 5.5rem;
}
body { margin: 0; background: var(--background); color: var(--foreground); font-family: var(--font-sans); line-height: 1.5; -webkit-font-smoothing: antialiased; }
.site-main { display: block; min-height: 50vh; }

::selection { background: rgba(64, 205, 195, 0.45); color: var(--primary); }
a { text-decoration: none; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ===== Layout ===== */
.container { width: 100%; max-width: 80rem; margin-left: auto; margin-right: auto; padding-left: 1.25rem; padding-right: 1.25rem; }
@media (min-width: 1024px) { .container { padding-left: 2rem; padding-right: 2rem; } }

/* ===== Header ===== */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(213, 210, 205, 0.6);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  transition: box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 8px 28px rgba(61, 53, 100, 0.10);
  border-bottom-color: rgba(61, 53, 100, 0.08);
  background: rgba(255, 255, 255, 0.98);
}
.header-inner { display: flex; height: 5rem; align-items: center; justify-content: space-between; }
.logo-link { flex-shrink: 0; }
.logo-link img { height: 3.75rem; width: auto; }
.main-nav { display: none; align-items: center; gap: 2rem; }
.main-nav .button-primary { margin-left: 0; }
.menu-toggle { display: inline-flex; height: 2.625rem; width: 2.625rem; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 50%; background: var(--background); color: var(--primary); cursor: pointer; }
.menu-toggle svg { width: 22px; height: 22px; }

.nav-link { position: relative; font-size: 0.875rem; font-weight: 700; color: var(--primary); }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform 0.25s ease; }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

.mobile-nav { display: none; border-top: 1px solid var(--border); background: var(--background); padding: 0.8rem 1.25rem 1.25rem; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; border-bottom: 1px solid var(--border); padding: 0.9rem 0; font-weight: 700; color: var(--primary); }

@media (min-width: 768px) {
  .main-nav { display: flex; }
  .menu-toggle { display: none; }
}

/* ===== Buttons ===== */
.button-primary, .button-accent, .button-ghost {
  display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 0.65rem;
  border-radius: 999px; padding: 0.75rem 1.3rem; font-size: 0.875rem; font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.button-primary { background: var(--primary); color: var(--primary-foreground); box-shadow: 0 8px 22px rgba(61, 53, 100, 0.22); }
.button-accent { background: var(--accent); color: var(--accent-foreground); box-shadow: 0 12px 30px rgba(64, 205, 195, 0.25); }
.button-ghost { border: 1px solid rgba(255, 255, 255, 0.40); color: var(--primary-foreground); background: rgba(255, 255, 255, 0.10); backdrop-filter: blur(12px); }
.button-primary:hover, .button-accent:hover, .button-ghost:hover { transform: translateY(-2px); }

/* ===== Hero ===== */
.hero-section { position: relative; min-height: 58svh; max-height: 720px; overflow: hidden; background: var(--primary); color: var(--primary-foreground); }
.hero-photo { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; object-position: center; opacity: 0.40; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    rgba(61, 53, 100, 0.97) 0%,
    rgba(61, 53, 100, 0.92) 42%,
    rgba(123, 111, 176, 0.78) 100%
  );
}
.hero-grid { position: relative; min-height: 58svh; max-height: 720px; display: grid; align-items: center; padding-top: 5rem; padding-bottom: 1.75rem; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1fr 1fr; } }
.hero-content { position: relative; z-index: 10; max-width: 48rem; animation: fadeIn 0.8s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

.eyebrow, .section-kicker { display: inline-flex; align-items: center; gap: 0.65rem; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.eyebrow { color: var(--accent); }
.eyebrow span { height: 1px; width: 30px; background: var(--accent); }

.hero-content h1 { margin-top: 0; font-family: var(--font-display); font-size: 3rem; font-weight: 700; line-height: 1.04; letter-spacing: 0; }
.hero-content h1 em { color: var(--accent); font-style: normal; }
@media (min-width: 640px) { .hero-content h1 { font-size: 3.75rem; } }
@media (min-width: 1024px) { .hero-content h1 { font-size: 4.5rem; } }

.hero-content p { margin-top: 1.15rem; max-width: 36rem; font-size: 1.05rem; line-height: 1.7; color: var(--hero-muted); }
.hero-buttons { margin-top: 1.35rem; display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-mark {
  position: relative;
  z-index: 10;
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 280px;
}
.hero-mark img {
  position: relative;
  /* Tamaño real del isotipo: no limitar a 36vw (eso lo achicaba en WP) */
  width: 100% !important;
  max-width: 600px !important;
  height: auto !important;
  max-height: none !important;
  opacity: 1;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 40px rgba(64, 205, 195, 0.25));
  animation: heroFloat 7s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}
@media (min-width: 1024px) {
  .hero-mark {
    display: flex;
    min-height: 420px;
  }
  .hero-mark img {
    max-width: 600px !important;
    width: min(100%, 600px) !important;
  }
}
@media (min-width: 1280px) {
  .hero-mark img {
    max-width: 640px !important;
  }
}

/* ===== Glass panel ===== */
.glass-panel { border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.12); box-shadow: 0 24px 70px rgba(43, 52, 80, 0.28); backdrop-filter: blur(22px) saturate(135%); }

/* ===== Sections ===== */
.section-space { padding: 2.75rem 0; }
.section-space--surface { background: var(--surface); }
.section-space--background { background: #FFFFFF; }
.section-heading { display: grid; gap: 2rem; align-items: end; }
.section-heading h2 { margin-top: 1rem; max-width: 720px; font-family: var(--font-display); font-size: clamp(2.35rem, 5vw, 4rem); font-weight: 700; line-height: 1.08; letter-spacing: 0; color: var(--primary); }
.section-heading > p { max-width: 480px; color: var(--muted-foreground); line-height: 1.75; }
.section-kicker { color: var(--secondary); }
@media (min-width: 768px) { .section-heading { grid-template-columns: 1.45fr 0.55fr; } }

/* ===== Service Cards ===== */
.services-grid {
  margin-top: 2rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  align-items: start; /* solo crece la abierta; las demás se quedan arriba */
}
@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); gap: 1.35rem; }
}

.service-card {
  position: relative;
  overflow: hidden;
  border: 1.5px solid rgba(123, 111, 176, 0.28);
  border-radius: 20px;
  background: #ffffff;
  box-shadow:
    0 4px 6px rgba(61, 53, 100, 0.04),
    0 12px 28px rgba(61, 53, 100, 0.10),
    0 24px 48px rgba(61, 53, 100, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(123, 111, 176, 0.45);
  box-shadow:
    0 8px 16px rgba(61, 53, 100, 0.08),
    0 20px 40px rgba(61, 53, 100, 0.14),
    0 32px 64px rgba(61, 53, 100, 0.12);
}

/* Summary = dos zonas apiladas: media (foto) + body (blanco) */
.service-card summary {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  list-style: none;
  padding: 0;
  background: #ffffff;
}
.service-card summary::-webkit-details-marker { display: none; }

/* ZONA SUPERIOR: solo la imagen */
.service-card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #f0f0f5;
  flex-shrink: 0;
}

.service-card-photo {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  opacity: 0.22 !important;
  z-index: 0 !important;
  pointer-events: none !important;
  display: block !important;
}

.service-card:hover .service-card-photo { opacity: 0.30 !important; }

/* Icono + flecha sobre la foto */
.service-card-top {
  position: absolute;
  z-index: 1;
  inset: 0 0 auto 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.1rem 1.1rem 0;
}

.service-icon {
  display: flex;
  height: 48px;
  width: 48px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
  color: #40CDC3;
  box-shadow: 0 2px 8px rgba(61, 53, 100, 0.08);
}
.service-icon svg { width: 28px; height: 28px; }

.service-toggle {
  display: flex;
  height: 36px;
  width: 36px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(123, 111, 176, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.service-toggle svg { width: 18px; height: 18px; }
.service-card[open] .service-toggle {
  transform: rotate(180deg);
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-foreground);
}

/* ZONA INFERIOR: blanco con título y descripción */
.service-card-body {
  position: relative;
  z-index: 1;
  background: #ffffff;
  padding: 1.15rem 1.25rem 1.35rem;
  flex-shrink: 0;
  /* Misma altura de zona de texto en las 4 tarjetas (cerradas) */
  min-height: 7.25rem;
  display: flex;
  flex-direction: column;
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
  color: var(--primary);
}
.service-card summary p {
  margin-top: 0.4rem;
  color: #5C5C6E;
  font-size: 0.84rem;
  line-height: 1.45;
  /* Máximo 2 líneas para igualar alturas */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* Carrusel de subservicios (reemplaza lista vertical) */
.service-carousel {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.85rem 0.65rem 1.1rem;
  border-top: 1px solid rgba(61, 53, 100, 0.08);
  background: #ffffff;
  animation: listIn 0.35s ease both;
}
@keyframes listIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.carousel-track {
  display: flex;
  gap: 0; /* sin gap: un solo cuadro visible, sin “media” del siguiente */
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  flex: 1;
  min-width: 0;
  padding: 0.15rem 0 0.35rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }

.carousel-item {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  min-height: 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid rgba(123, 111, 176, 0.30);
  border-radius: 12px;
  background: linear-gradient(165deg, #ffffff 0%, #f7f6fb 100%);
  box-shadow:
    0 2px 4px rgba(61, 53, 100, 0.05),
    0 10px 28px rgba(61, 53, 100, 0.12),
    inset 0 1px 0 rgba(255,255,255,0.9);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.carousel-item:hover {
  border-color: rgba(64, 205, 195, 0.6);
  box-shadow:
    0 6px 12px rgba(61, 53, 100, 0.08),
    0 16px 36px rgba(61, 53, 100, 0.14),
    inset 0 1px 0 rgba(255,255,255,1);
  transform: translateY(-3px);
}

.carousel-dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
}

.carousel-item-text {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--primary);
}

.carousel-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(123, 111, 176, 0.25);
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.carousel-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-foreground);
}

/* ===== About Section ===== */
/* Franja compacta: menos aire vertical, más peso visual */
#nosotros.section-space {
  padding: 3.5rem 0 4rem;
}
@media (min-width: 1024px) {
  #nosotros.section-space { padding: 4rem 0 4.5rem; }
}

.about-grid {
  display: grid;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1.05fr;
    gap: 3rem;
    min-height: 0;
  }
}

.about-image {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1.5px solid rgba(123, 111, 176, 0.22);
  background: transparent;
  aspect-ratio: 4 / 3;
  max-height: 380px;
  box-shadow:
    0 8px 20px rgba(61, 53, 100, 0.08),
    0 20px 48px rgba(61, 53, 100, 0.12);
}
@media (min-width: 1024px) {
  .about-image {
    aspect-ratio: auto;
    height: 100%;
    min-height: 320px;
    max-height: 420px;
  }
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* PNG sin fondo: se ve completa sobre el blanco */
  object-position: center;
  opacity: 0.85;
  display: block;
}

.image-wash { display: none !important; }

.about-content h2 {
  margin-top: 0;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.8vw, 2.75rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--primary);
  letter-spacing: -0.01em;
}
.about-content > p {
  margin-top: 0.85rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted-foreground);
  max-width: 36rem;
}

.process-list {
  margin-top: 1.35rem;
  border-top: 1px solid var(--border);
}
.process-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  align-items: start;
}
.process-item > span {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding-top: 0.15rem;
}
.process-item strong {
  color: var(--primary);
  font-size: 0.95rem;
}
.process-item p {
  margin-top: 0.15rem;
  color: var(--muted-foreground);
  font-size: 0.82rem;
  line-height: 1.45;
}

/* ===== Contact ===== */
.contact-section { background: var(--primary); color: var(--primary-foreground); }
.contact-inner { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 2rem; padding: 3.5rem 0 4rem; width: 100%; box-sizing: border-box; margin: 0; }
@media (min-width: 1024px) { .contact-inner { flex-direction: row; align-items: flex-end; justify-content: space-between; padding: 4rem 0; gap: 2rem; } }
.contact-kicker { color: var(--accent); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.contact-section h2 { margin-top: 1rem; font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 4.5rem); font-weight: 700; line-height: 1.06; letter-spacing: 0; }
.contact-section p { margin-top: 1rem; color: var(--hero-muted); }

/* ===== Footer ===== */
.site-footer {
  background: var(--background);
  border-top: 1px solid rgba(61, 53, 100, 0.08);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  padding: 1.35rem 0 1.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
    align-items: center;
  }
}
.footer-col--social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}
@media (min-width: 900px) {
  .footer-col--social {
    align-items: flex-start;
    text-align: left;
  }
}
.footer-col--logo {
  display: flex;
  justify-content: center;
  align-items: center;
  order: -1;
}
@media (min-width: 900px) {
  .footer-col--logo { order: 0; }
}
.footer-logo img {
  height: 2.85rem;
  width: auto;
  display: block;
}
.footer-col--end {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}
@media (min-width: 900px) {
  .footer-col--end {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    text-align: right;
    gap: 1rem;
  }
}
.footer-tag {
  margin: 0;
  max-width: 16rem;
  color: var(--muted-foreground);
  font-size: 0.84rem;
  line-height: 1.45;
}
.footer-copy {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.8rem;
  line-height: 1.4;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  justify-content: center;
}
@media (min-width: 900px) {
  .footer-legal { justify-content: flex-start; }
}
.footer-legal a {
  font-size: 0.8rem;
  color: var(--muted-foreground);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-legal a:hover { color: var(--primary); }
.footer-social {
  display: flex;
  gap: 0.55rem;
  justify-content: center;
}
@media (min-width: 900px) {
  .footer-social { justify-content: flex-start; }
}
.footer-social a {
  display: inline-flex;
  width: 2.35rem;
  height: 2.35rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(61, 53, 100, 0.18);
  color: var(--primary);
  background: #fff;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.footer-social a:hover {
  border-color: var(--secondary);
  background: rgba(123, 111, 176, 0.08);
}
.footer-social svg { width: 1.05rem; height: 1.05rem; }
.footer-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.footer-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45);
  color: #fff;
}
.footer-whatsapp svg { width: 28px; height: 28px; display: block; }

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .section-space { padding: 2.5rem 0; }
}



/* Profundidad en títulos grandes */
.hero-content h1 {
  text-shadow:
    0 1px 0 rgba(255,255,255,0.15),
    0 2px 4px rgba(0,0,0,0.25),
    0 8px 20px rgba(0,0,0,0.22),
    0 18px 48px rgba(0,0,0,0.30);
}
.section-heading h2 {
  text-shadow:
    0 1px 0 rgba(255,255,255,1),
    0 2px 3px rgba(61,53,100,0.12),
    0 8px 24px rgba(61,53,100,0.14),
    0 16px 40px rgba(61,53,100,0.10);
  letter-spacing: -0.02em;
}
.about-content h2 {
  text-shadow:
    0 1px 0 rgba(255,255,255,1),
    0 2px 3px rgba(61,53,100,0.12),
    0 8px 24px rgba(61,53,100,0.14),
    0 16px 40px rgba(61,53,100,0.10);
  letter-spacing: -0.02em;
}
.contact-section h2 {
  text-shadow:
    0 1px 0 rgba(255,255,255,0.08),
    0 2px 6px rgba(0,0,0,0.25),
    0 12px 32px rgba(0,0,0,0.35),
    0 24px 56px rgba(0,0,0,0.25);
}

/* ===== Motion system (reveal + micro) ===== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

.hero-content .reveal-hero {
  opacity: 0;
  transform: translateY(18px);
  animation: heroIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-content h1.reveal-hero { animation-delay: 0.12s; }
.hero-content p.reveal-hero { animation-delay: 0.28s; }
.hero-content .hero-buttons.reveal-hero { animation-delay: 0.44s; }
@keyframes heroIn {
  to { opacity: 1; transform: translateY(0); }
}

.service-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.service-card:hover .service-icon {
  transform: scale(1.06);
  transition: transform 0.3s ease;
}
.service-icon { transition: transform 0.3s ease; }

.process-item {
  transition: background 0.25s ease, padding-left 0.25s ease;
}
.process-item:hover {
  background: rgba(64, 205, 195, 0.06);
  padding-left: 0.35rem;
}

.button-primary, .button-accent, .button-ghost {
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, gap 0.25s ease;
}
.button-primary:hover svg, .button-accent:hover svg, .button-ghost:hover svg {
  transform: translateX(3px);
  transition: transform 0.25s ease;
}
.button-primary svg, .button-accent svg, .button-ghost svg {
  transition: transform 0.25s ease;
}

.about-image img {
  transition: opacity 0.4s ease, transform 0.6s ease;
}
.about-image:hover img {
  transform: scale(1.03);
}


/* WhatsApp ya no es flotante: va en el footer (.footer-whatsapp) */

/* ===== Footer social ===== */
.footer-social {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.85rem;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--primary);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.footer-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}
.footer-social svg { width: 18px; height: 18px; }



@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-content .reveal-hero { opacity: 1; transform: none; animation: none; }
}



/* ===== Páginas interiores (servicios + legales) ===== */
.page-hero {
  padding: 7.5rem 0 3rem;
  background: var(--primary);
  color: var(--primary-foreground);
  border-bottom: none;
}
.page-hero__kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-shadow:
    0 1px 0 rgba(255,255,255,0.12),
    0 2px 6px rgba(0,0,0,0.25),
    0 12px 32px rgba(0,0,0,0.30);
  max-width: 40rem;
}
.page-hero p {
  margin-top: 1rem;
  max-width: 36rem;
  color: var(--hero-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}
.page-section {
  padding: 3rem 0 4rem;
}
.page-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 900px) {
  .page-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: start;
  }
}
.page-prose p {
  margin-bottom: 1rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}
.page-prose h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--primary);
  margin: 1.75rem 0 0.75rem;
}
.service-list-box {
  border: 1.5px solid rgba(123, 111, 176, 0.28);
  border-radius: 16px;
  background: #fff;
  padding: 1.35rem 1.5rem;
  box-shadow: 0 12px 32px rgba(61, 53, 100, 0.10);
}
.service-list-box h3 {
  font-size: 0.95rem;
  color: var(--primary);
  margin-bottom: 0.85rem;
}
.service-list-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.service-list-box li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.9rem;
  color: var(--muted-foreground);
  line-height: 1.45;
}
.service-list-box li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.page-cta {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hub-categories {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .hub-categories { grid-template-columns: repeat(2, 1fr); }
}
.hub-card {
  border: 1.5px solid rgba(123, 111, 176, 0.28);
  border-radius: 18px;
  background: #fff;
  padding: 1.5rem;
  box-shadow: 0 10px 28px rgba(61, 53, 100, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hub-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(61, 53, 100, 0.12);
}
.hub-card h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.hub-card > p {
  color: var(--muted-foreground);
  font-size: 0.92rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}
.hub-card ul {
  list-style: none;
  margin: 0 0 1.15rem;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.hub-card li {
  position: relative;
  padding-left: 1.05rem;
  font-size: 0.84rem;
  color: var(--muted-foreground);
}
.hub-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.legal-content {
  max-width: 48rem;
  margin: 0 auto;
}
.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--primary);
  margin: 2rem 0 0.75rem;
}
.legal-content p, .legal-content li {
  color: var(--muted-foreground);
  line-height: 1.7;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}
.legal-content ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 0.85rem;
  font-size: 0.8rem;
}
.footer-legal a {
  color: var(--muted-foreground);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-legal a:hover { color: var(--primary); }
.service-card-link {
  display: inline-flex;
  margin-top: 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--secondary);
  text-decoration: none;
}
.service-card-link:hover { color: var(--primary); }
.services-hub-cta {
  margin-top: 2rem;
  text-align: center;
}


.carousel-item-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}
.carousel-item-desc {
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--muted-foreground);
}
.carousel-item {
  min-height: 0;
  align-items: center;
}

.page-subservices-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--primary);
  margin-bottom: 1.25rem;
}
.subservices-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 700px) {
  .subservices-grid { grid-template-columns: repeat(2, 1fr); }
}
.subservice-card {
  border: 1.5px solid rgba(123, 111, 176, 0.25);
  border-radius: 14px;
  background: linear-gradient(165deg, #fff 0%, #f7f6fb 100%);
  padding: 1.15rem 1.25rem;
  box-shadow: 0 8px 24px rgba(61, 53, 100, 0.08);
}
.subservice-card h3 {
  font-size: 0.95rem;
  color: var(--primary);
  margin-bottom: 0.45rem;
  line-height: 1.35;
}
.subservice-card p {
  font-size: 0.84rem;
  color: var(--muted-foreground);
  line-height: 1.55;
  margin: 0;
}


/* ===== Formulario de contacto ===== */
.form-section {
  background: var(--surface);
  padding: 3.5rem 0 4.5rem;
}
.form-section-inner {
  max-width: 36rem;
  margin: 0 auto;
}
.form-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 0.65rem;
}
.form-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.form-intro p {
  color: var(--muted-foreground);
  margin-bottom: 1.75rem;
  line-height: 1.6;
}
.contact-form {
  display: grid;
  gap: 1.1rem;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-row label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
}
.form-optional {
  font-weight: 500;
  color: var(--muted-foreground);
}
.form-row input,
.form-row textarea {
  width: 100%;
  border: 1.5px solid rgba(123, 111, 176, 0.35);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--foreground);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(123, 111, 176, 0.18);
}
.form-row textarea {
  resize: vertical;
  min-height: 120px;
}
.form-submit {
  justify-self: start;
  margin-top: 0.35rem;
  cursor: pointer;
  border: none;
}
.form-note {
  font-size: 0.8rem;
  color: var(--muted-foreground);
  margin: 0;
}
.form-note a {
  color: var(--secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.form-alert {
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  margin-bottom: 1.25rem;
  font-size: 0.92rem;
  line-height: 1.45;
}
.form-alert--ok {
  background: rgba(64, 205, 195, 0.15);
  border: 1px solid rgba(64, 205, 195, 0.45);
  color: var(--primary);
}
.form-alert--error {
  background: rgba(200, 60, 60, 0.08);
  border: 1px solid rgba(200, 60, 60, 0.35);
  color: #8b1e1e;
}
.form-alert a { color: inherit; font-weight: 700; }


/* ===== Página de contacto (formulario) ===== */
.contact-page {
  min-height: auto;
  padding: 5.5rem 1rem 3.5rem;
  background: linear-gradient(155deg, #2a2448 0%, #3D3564 42%, #5a4d8c 78%, #3D3564 100%) !important;
  color: #fff;
  width: 100%;
  display: block;
  box-sizing: border-box;
}
body.page-template-page-contacto .site-main,
body.page-id-contacto .site-main,
body.page-contacto .site-main {
  background: transparent;
  padding: 0;
  margin: 0;
}
.contact-page-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.contact-page-card {
  width: 100%;
  max-width: 26rem;
  border: 1.5px solid rgba(123, 111, 176, 0.35);
  border-radius: 18px;
  background: #ffffff;
  padding: 1.35rem 1.25rem 1.4rem;
  box-shadow:
    0 4px 6px rgba(61, 53, 100, 0.06),
    0 16px 40px rgba(0, 0, 0, 0.22),
    0 28px 56px rgba(61, 53, 100, 0.18);
  margin: 1.5rem auto 2rem;
}
@media (min-width: 640px) {
  .contact-page-card {
    padding: 1.5rem 1.5rem 1.55rem;
  }
}
.contact-page-card h1 {
  font-size: 1.35rem !important;
}
.contact-page-lead {
  font-size: 0.88rem !important;
  margin-bottom: 1rem !important;
}
.contact-page-card .form-row input,
.contact-page-card .form-row textarea {
  padding: 0.6rem 0.85rem !important;
  font-size: 0.9rem !important;
}
.contact-page-card .form-row textarea {
  min-height: 88px !important;
  rows: 4;
}
.contact-form { gap: 0.85rem !important; }

.contact-page-card .form-kicker {
  color: var(--secondary);
}
.contact-page-card h1 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 700;
  color: var(--primary);
  margin: 0.35rem 0 0.5rem;
  line-height: 1.2;
}
.contact-page-lead {
  color: var(--muted-foreground);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 1.35rem;
}
.contact-page-card .form-row label {
  color: var(--primary);
}
.contact-page-card .form-row input,
.contact-page-card .form-row textarea {
  border: 1.5px solid rgba(123, 111, 176, 0.28);
  border-radius: 12px;
  background: #faf9fc;
}
.contact-page-card .form-row input:focus,
.contact-page-card .form-row textarea:focus {
  background: #fff;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(123, 111, 176, 0.16);
}


/* Formulario horizontal: datos | mensaje + envío */
.contact-page {
  padding: 4.5rem 1rem 3rem !important;
}
.contact-page-card {
  max-width: 44rem !important;
  margin: 1.25rem auto 1.75rem !important;
  padding: 1.25rem 1.2rem 1.3rem !important;
}
.contact-form--split {
  display: grid !important;
  gap: 1rem 1.35rem !important;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .contact-form--split {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}
.form-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.form-col--message .form-row {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.form-col--message textarea {
  flex: 1;
  min-height: 110px !important;
}
.contact-form--split .form-submit {
  align-self: flex-start;
  margin-top: 0.15rem;
}


/* CTA sobre imagen Nosotros */
.about-image {
  position: relative;
}
.about-image-cta {
  position: absolute;
  left: 50%;
  bottom: 1.15rem;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  background: var(--accent);
  color: #1a1a2e;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.about-image-cta:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.32);
  background: #4fd9cf;
  color: #1a1a2e;
}


/* Botón contacto en una sola línea */
.contact-cta-btn {
  white-space: nowrap !important;
  flex-shrink: 0;
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
}
.contact-actions {
  flex-shrink: 0;
}
.contact-inner {
  flex-wrap: nowrap;
}
@media (max-width: 640px) {
  .contact-cta-btn {
    white-space: normal !important;
  }
  .contact-inner {
    flex-wrap: wrap;
  }
}

/* ===== Footer + márgenes (definitivo) ===== */
:root {
  --fime-content-max: 80rem;
  --fime-pad-x: 1.25rem;
}
@media (min-width: 1024px) {
  :root { --fime-pad-x: 2rem; }
}

.container,
.site-header .header-inner,
.contact-section > .container,
.site-footer .footer-inner {
  width: 100%;
  max-width: var(--fime-content-max) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: var(--fime-pad-x) !important;
  padding-right: var(--fime-pad-x) !important;
  box-sizing: border-box !important;
}

.site-footer .footer-inner {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 1.5rem !important;
  align-items: center !important;
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
}
@media (min-width: 960px) {
  .site-footer .footer-inner {
    /* izquierda | logo | derecha — misma línea */
    grid-template-columns: 1fr auto 1fr !important;
    gap: 1.25rem !important;
  }
}

.footer-col--left {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  gap: 0.45rem !important;
  min-width: 0;
}
@media (min-width: 960px) {
  .footer-col--left {
    align-items: flex-start !important;
    text-align: left !important;
  }
}

.footer-col--logo {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  order: -1;
}
@media (min-width: 960px) {
  .footer-col--logo { order: 0 !important; }
}
.footer-logo img {
  height: 2.75rem !important;
  width: auto !important;
  display: block;
}

/* DERECHA: frase + WhatsApp EN HORIZONTAL, pegados al borde derecho */
.footer-col--right {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.85rem !important;
  min-width: 0;
  text-align: right;
}
@media (min-width: 960px) {
  .footer-col--right {
    justify-content: flex-end !important;
  }
}
.footer-tag {
  margin: 0 !important;
  max-width: 12.5rem !important;
  color: var(--muted-foreground);
  font-size: 0.8125rem !important;
  line-height: 1.4 !important;
  text-align: right !important;
}
.footer-whatsapp {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  flex-shrink: 0 !important;
  border-radius: 50% !important;
  background: #25D366 !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}
.footer-whatsapp svg {
  width: 26px !important;
  height: 26px !important;
}

.contact-inner {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}


/* Hub /servicios/ */
.hub-services-grid {
  display: grid;
  gap: 1.15rem;
}
@media (min-width: 700px) {
  .hub-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.hub-service-card {
  border: 1.5px solid rgba(123, 111, 176, 0.28);
  border-radius: 16px;
  background: linear-gradient(165deg, #fff 0%, #f7f6fb 100%);
  padding: 1.35rem 1.4rem 1.25rem;
  box-shadow: 0 10px 28px rgba(61, 53, 100, 0.08);
}
.hub-service-card h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--primary);
  margin: 0 0 0.5rem;
}
.hub-service-card p {
  color: var(--muted-foreground);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0 0 0.85rem;
}
