/* =========================================================
   PUNTO SEGURO SERVICES — GLOBAL CSS
   Base visual para Hello Elementor Child Theme
   Colores y tipografías según BRANDBOOK oficial.
   Primary (Azul Confianza): #1E56A0
   Navy (Azul Profundo): #0C2340
   Green (Verde Bienestar): #1AB854
   Accent (Dorado Cálido): #D4920B
   Fonts: PT Serif (títulos) + PT Sans (cuerpo)
========================================================= */

/* ---------- CSS VARIABLES ---------- */

:root {
  /* ============================================
     BRAND COLORS — Brandbook oficial Punto Seguro
     ============================================ */

  /* Azul Confianza (primario, CTAs, enlaces) */
  --punto-primary: #1E56A0;
  --punto-primary-dark: #16407A;
  --punto-primary-soft: #EAF3FF;

  /* Dorado Cálido (acento puntual) */
  --punto-accent: #D4920B;
  --punto-accent-dark: #B67C00;
  --punto-accent-soft: #F7E7BE;

  /* Verde Bienestar (señales de confianza / éxito) */
  --punto-green: #1AB854;
  --punto-green-dark: #148544;
  --punto-green-soft: #E8F6EE;

  /* Azul Profundo (headings, footer, texto fuerte) */
  --punto-navy: #0C2340;
  --punto-blue-dark: #123456;
  --punto-sky: #DCEEFF;

  /* Crema (fondos suaves de sección) */
  --punto-cream: #FBF7E4;

  --punto-white: #FFFFFF;
  --punto-offwhite: #F8FAFC;
  --punto-border: rgba(12, 35, 64, 0.10);

  /* Text colors */
  --punto-text: #172033;
  --punto-muted: #667085;
  --punto-light-text: #FFFFFF;

  /* Fonts — PT Serif (títulos) + PT Sans (cuerpo) */
  --punto-font-heading: 'PT Serif', Georgia, serif;
  --punto-font-body: 'PT Sans', system-ui, sans-serif;
  /* Layout */
  --punto-container: 1180px;
  --punto-container-wide: 1320px;
  --punto-container-max: 1380px;
  --punto-page-gutter: clamp(24px, 4vw, 72px);

  /* Spacing */
  --punto-space-xs: 8px;
  --punto-space-sm: 16px;
  --punto-space-md: 24px;
  --punto-space-lg: 40px;
  --punto-space-xl: 64px;
  --punto-space-xxl: 96px;

  /* Radius */
  --punto-radius-sm: 12px;
  --punto-radius-md: 20px;
  --punto-radius-lg: 32px;
  --punto-radius-xl: 44px;
  --punto-radius-pill: 999px;

  /* Shadows */
  --punto-shadow-soft: 0 16px 40px rgba(8, 31, 58, 0.08);
  --punto-shadow-medium: 0 24px 70px rgba(8, 31, 58, 0.14);
  --punto-shadow-premium: 0 36px 100px rgba(8, 31, 58, 0.18);

  /* Motion */
  --punto-transition: all 0.28s ease;
}


/* ---------- GLOBAL RESET ---------- */

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--punto-offwhite);
  color: var(--punto-text);
  font-family: var(--punto-font-body);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--punto-transition);
}

a:hover {
  color: var(--punto-primary);
}

button,
input,
textarea,
select {
  font-family: inherit;
}

::selection {
  background: var(--punto-primary);
  color: var(--punto-white);
}


/* ---------- TYPOGRAPHY ---------- */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--punto-font-heading);
  color: var(--punto-navy);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 18px;
  letter-spacing: -0.04em;
}

h1 {
  font-size: clamp(48px, 7vw, 92px);
}

h2 {
  font-size: clamp(36px, 5vw, 68px);
}

h3 {
  font-size: clamp(26px, 3vw, 38px);
}

h4 {
  font-size: 22px;
}

p {
  margin: 0 0 18px;
  color: var(--punto-muted);
}

strong {
  color: var(--punto-navy);
  font-weight: 700;
}


/* ---------- ELEMENTOR BASE OVERRIDES ---------- */

.elementor-widget-text-editor p:last-child {
  margin-bottom: 0;
}

.elementor-section,
.elementor-container,
.e-con {
  position: relative;
}

.elementor-button {
  font-family: var(--punto-font-body);
  font-weight: 700;
  border-radius: var(--punto-radius-pill);
  transition: var(--punto-transition);
}


/* ---------- CONTAINERS / GLOBAL PAGE SPACING ---------- */

.punto-container {
  width: min(
    var(--punto-container),
    calc(100% - (var(--punto-page-gutter) * 2))
  );
  margin-inline: auto;
}

.punto-container-wide {
  width: min(
    var(--punto-container-wide),
    calc(100% - (var(--punto-page-gutter) * 2))
  );
  margin-inline: auto;
}

.punto-home-shell,
.punto-site-shell {
  width: min(
    var(--punto-container-max),
    calc(100% - (var(--punto-page-gutter) * 2))
  );
  margin-inline: auto;
}

.punto-home-main,
.punto-services-page,
.punto-about-page,
.punto-about-page-v2 {
  width: 100%;
  overflow-x: hidden;
}


/* ---------- GLOBAL SECTIONS ---------- */

.punto-section {
  position: relative;
  padding: var(--punto-space-xxl) 0;
}

.punto-section-soft {
  background: var(--punto-cream);
}

.punto-section-white {
  background: var(--punto-white);
}

.punto-section-blue {
  background: var(--punto-primary);
  color: var(--punto-white);
}


/* ---------- EYEBROWS / LABELS ---------- */

.punto-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: var(--punto-radius-pill);
  background: rgba(30, 86, 160, 0.08);
  color: var(--punto-primary);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.punto-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--punto-accent);
}


/* ---------- BUTTONS ---------- */

.punto-btn,
.punto-btn-primary,
.punto-btn-secondary,
.punto-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 15px 28px;
  border-radius: var(--punto-radius-pill);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--punto-transition);
  white-space: nowrap;
}

.punto-btn-primary {
  background: var(--punto-accent);
  color: var(--punto-white);
  box-shadow: 0 14px 32px rgba(212, 146, 11, 0.26);
}

.punto-btn-primary:hover {
  background: var(--punto-accent-dark);
  color: var(--punto-white);
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(212, 146, 11, 0.34);
}

.punto-btn-secondary {
  background: var(--punto-primary);
  color: var(--punto-white);
  box-shadow: 0 14px 32px rgba(30, 86, 160, 0.24);
}

.punto-btn-secondary:hover {
  background: var(--punto-primary-dark);
  color: var(--punto-white);
  transform: translateY(-2px);
}

.punto-btn-outline {
  background: rgba(255, 255, 255, 0.72);
  color: var(--punto-navy);
  border-color: rgba(8, 31, 58, 0.14);
  backdrop-filter: blur(14px);
}

.punto-btn-outline:hover {
  background: var(--punto-navy);
  border-color: var(--punto-navy);
  color: var(--punto-white);
  transform: translateY(-2px);
}


/* ---------- CARDS ---------- */

.punto-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--punto-radius-lg);
  background: var(--punto-white);
  border: 1px solid var(--punto-border);
  box-shadow: var(--punto-shadow-soft);
  transition: var(--punto-transition);
}

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

.punto-glass {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(18px);
  box-shadow: var(--punto-shadow-soft);
}


/* ---------- PILLS ---------- */

.punto-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: var(--punto-radius-pill);
  background: var(--punto-white);
  border: 1px solid var(--punto-border);
  color: var(--punto-navy);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  transition: var(--punto-transition);
}

.punto-pill.is-active,
.punto-pill:hover {
  background: var(--punto-accent-soft);
  border-color: var(--punto-accent);
  color: var(--punto-navy);
}


/* ---------- FORMS ---------- */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="date"],
textarea,
select {
  width: 100%;
  min-height: 54px;
  padding: 14px 18px;
  border-radius: var(--punto-radius-md);
  border: 1px solid rgba(8, 31, 58, 0.14);
  background: var(--punto-white);
  color: var(--punto-text);
  font-size: 15px;
  outline: none;
  transition: var(--punto-transition);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--punto-primary);
  box-shadow: 0 0 0 4px rgba(30, 86, 160, 0.12);
}

label {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--punto-navy);
  font-weight: 700;
  font-size: 14px;
}


/* ---------- PREMIUM BACKGROUND HELPERS ---------- */

.punto-bg-gradient {
  background:
    radial-gradient(circle at 20% 10%, rgba(30, 86, 160, 0.16), transparent 34%),
    radial-gradient(circle at 86% 18%, rgba(212, 146, 11, 0.14), transparent 30%),
    linear-gradient(180deg, #F7FAFF 0%, #FFFFFF 100%);
}

.punto-blur-shape {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: rgba(30, 86, 160, 0.16);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.punto-blur-shape.orange,
.punto-blur-shape.gold {
  background: rgba(212, 146, 11, 0.16);
}


/* ---------- UTILITY CLASSES ---------- */

.punto-text-center {
  text-align: center;
}

.punto-text-left {
  text-align: left;
}

.punto-max-sm {
  max-width: 560px;
}

.punto-max-md {
  max-width: 760px;
}

.punto-max-lg {
  max-width: 920px;
}

.punto-mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.punto-hidden {
  display: none !important;
}


/* ---------- ACCESSIBILITY ---------- */

:focus-visible {
  outline: 3px solid rgba(30, 86, 160, 0.35);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}


/* ---------- RESPONSIVE BASE ---------- */

@media (max-width: 1024px) {
  :root {
    --punto-space-xxl: 80px;
    --punto-space-xl: 56px;
    --punto-page-gutter: clamp(22px, 4vw, 48px);
  }
}

@media (max-width: 767px) {
  :root {
    --punto-space-xxl: 64px;
    --punto-space-xl: 44px;
    --punto-space-lg: 32px;
    --punto-page-gutter: 18px;
  }

  body {
    font-size: 15px;
  }

  h1 {
    font-size: clamp(42px, 13vw, 62px);
  }

  h2 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .punto-section {
    padding: 72px 0;
  }

  .punto-btn,
  .punto-btn-primary,
  .punto-btn-secondary,
  .punto-btn-outline {
    width: 100%;
    min-height: 52px;
  }

  .punto-eyebrow {
    font-size: 11px;
  }
}


/* =========================================================
   GLOBAL EFFECTS SUPPORT
========================================================= */

.punto-reveal,
.punto-reveal-up,
.punto-reveal-left,
.punto-reveal-right,
.punto-reveal-scale {
  opacity: 0;
  transition:
    opacity 0.72s ease,
    transform 0.72s ease;
  will-change: opacity, transform;
}

.punto-reveal,
.punto-reveal-up {
  transform: translateY(28px);
}

.punto-reveal-left {
  transform: translateX(-32px);
}

.punto-reveal-right {
  transform: translateX(32px);
}

.punto-reveal-scale {
  transform: scale(0.96);
}

.punto-reveal.is-visible,
.punto-reveal-up.is-visible,
.punto-reveal-left.is-visible,
.punto-reveal-right.is-visible,
.punto-reveal-scale.is-visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

.punto-hover-lift {
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease;
  transform-style: preserve-3d;
}

.punto-img-placeholder,
.punto-img-error {
  background:
    linear-gradient(135deg, rgba(30, 86, 160, 0.12), rgba(212, 146, 11, 0.10));
  min-height: 180px;
}

.punto-tab-panel {
  display: none;
}

.punto-tab-panel.is-active {
  display: block;
}

.punto-back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: var(--punto-primary);
  color: var(--punto-white);
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(8, 31, 58, 0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: var(--punto-transition);
}

.punto-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.punto-back-to-top:hover {
  background: var(--punto-accent);
  transform: translateY(-3px);
}

@media (prefers-reduced-motion: reduce) {
  .punto-reveal,
  .punto-reveal-up,
  .punto-reveal-left,
  .punto-reveal-right,
  .punto-reveal-scale,
  .punto-hover-lift {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}