/* ═══════════════════════════════════════════════════════════════
   OCIAC — Sistema de Diseño
   Organismo de Certificación de la Industria del Acero y la Construcción
   ═══════════════════════════════════════════════════════════════ */

/* ── IMPORTS ── */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&display=swap');

/* ── CUSTOM PROPERTIES ── */
:root {
  /* Palette */
  --navy: #023E8B;
  --navy-deep: #012656;
  --navy-light: #2465BB;
  --blue-mid: #2E6EA6;
  --blue-light: #4A90CC;
  --gold: #de6c2d;
  --gold-light: #F08346;
  --gold-pale: #FFF3EB;
  --steel-100: #f8fafd;
  --steel-200: #E8EAEF;
  --steel-300: #D1D5DE;
  --steel-400: #9BA3B3;
  --steel-500: #4D5055;
  --steel-700: #374151;
  --steel-900: #1F2937;
  --text: #2D2D2D;
  --white: #FFFFFF;
  --danger: #DC2626;
  --success: #16A34A;

  /* Typography */
  --ff-heading: 'Lato', sans-serif;
  --ff-body: 'Lato', sans-serif;

  /* Sizing */
  --max-w: 1200px;
  --header-h: 72px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.3s;
}

/* ── RESET ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--ff-body);
  color: var(--text);
  background: var(--steel-100);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: var(--ff-body);
}

/* ── TYPOGRAPHY ── */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--ff-heading);
  color: var(--navy);
  line-height: 1.2;
}

h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 600;
}

h4 {
  font-size: 1.1rem;
  font-weight: 600;
}

.section-label {
  font-family: var(--ff-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.section-label::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--gold);
}

/* ── LAYOUT UTILITIES ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section--dark {
  background: var(--navy-deep);
  color: var(--white);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--white);
}

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

/* ── TOP BAR ── */
.top-bar {
  background: var(--navy-deep);
  color: var(--white);
  font-size: 0.75rem;
  padding: 8px 0;
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-social,
.top-bar-contact {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-bar a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--steel-300);
  transition: color var(--duration) var(--ease);
}

.top-bar a:hover {
  color: var(--gold);
}

.top-bar svg {
  width: 14px;
  height: 14px;
}

/* ── HEADER / NAV ── */
.site-header {
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 1000;
  transition: background var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-wrapper {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 15px 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  width: 265px;
  max-width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .logo img {
    width: 215px;
  }
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.logo-mark::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 132, 26, 0.15), transparent);
  animation: logoShimmer 3s ease-in-out infinite;
}

@keyframes logoShimmer {

  0%,
  100% {
    left: -100%;
  }

  50% {
    left: 100%;
  }
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text .name {
  font-family: var(--ff-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
}

.logo-text .desc {
  font-size: 0.6rem;
  color: var(--steel-400);
  letter-spacing: 0.5px;
  margin-top: 1px;
}

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

.nav-links a {
  font-family: var(--ff-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--navy);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--duration) var(--ease), background var(--duration) var(--ease);
  letter-spacing: 0.5px;
  position: relative;
}

.nav-links a:hover {
  color: var(--gold);
  background: rgba(212, 132, 26, 0.05);
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 200px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-md);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--duration) var(--ease);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--steel-500);
}

.dropdown-menu a:hover {
  color: var(--gold);
  background: var(--gold-pale);
}

.nav-links a.active {
  color: var(--gold);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease);
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translateY(5px) translateX(5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translateY(-5px) translateX(5px);
}

/* ── HERO (VERTICAL CAROUSEL) ── */
.hero {
  position: relative;
  background: var(--navy-deep);
  color: var(--white);
  padding: 0;
  margin-top: 0;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

#hero {
  height: calc(100vh - 138px);
}

.carousel-inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

.hero-slide {
  position: relative;
  width: 100%;
  height: calc(100vh - 138px);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* Indicators */
.carousel-indicators {
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  z-index: 10;
}

.carousel-indicators .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--white);
  border: none;
  cursor: pointer;
  opacity: 0.5;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-indicators .dot.active {
  height: 24px;
  border-radius: 12px;
  background: var(--gold);
  opacity: 1;
}

.scroll-down {
  margin-top: 20px;
  color: var(--white);
  animation: bounceDown 2s infinite;
}

@keyframes bounceDown {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(8px);
  }

  60% {
    transform: translateY(4px);
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 36, 64, 0.8) 0%, rgba(27, 58, 92, 0.5) 50%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  /* padding-left removido para alinear a la izquierda con el logo */
}

@media (max-width: 768px) {
  .hero-content {
    text-align: left;
  }
}

.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
}

.hero h1 .accent {
  color: var(--gold);
}

.hero-desc {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 560px;
}

/* Hero SVG decorative */
.hero-svg-decoration {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  opacity: 0.08;
  z-index: 1;
}

/* ── HERO CAROUSEL ── */
.carousel-indicators {
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  z-index: 10;
}

.carousel-indicators .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--white);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
  opacity: 0.6;
}

.carousel-indicators .dot.active {
  height: 30px;
  border-radius: 5px;
  background: var(--gold);
  opacity: 1;
}

@media (max-width: 768px) {
  .carousel-indicators {
    left: 50%;
    top: auto;
    bottom: 20px;
    transform: translateX(-50%);
    flex-direction: row;
  }

  .carousel-indicators .dot.active {
    width: 30px;
    height: 10px;
  }

  .carousel-indicators .scroll-down {
    display: none;
  }
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.mision-flex {
  display: flex;
  align-items: center;
  gap: 30px;
}

.carousel-indicators .scroll-down {
  margin-top: 10px;
  color: var(--white);
  animation: bounce 2s infinite;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-10px);
  }

  60% {
    transform: translateY(-5px);
  }
}

/* CTA Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--ff-heading);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 50px;
  border: none;
  transition: all var(--duration) var(--ease);
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.25) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-25deg);
  transition: left 0.6s ease;
  z-index: 1;
  pointer-events: none;
}

.btn:hover::before {
  left: 150%;
}

.btn--primary {
  background: var(--gold);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 132, 26, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.btn--outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.btn--navy {
  background: var(--navy);
  color: var(--white);
}

.btn--navy:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27, 58, 92, 0.3);
}

.btn-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── STATS BAR ── */
.stats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--steel-200);
  padding: 28px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-item+.stat-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: var(--steel-200);
}

.stat-number {
  font-family: var(--ff-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-number .unit {
  font-size: 0.6em;
  color: var(--gold);
  font-weight: 700;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--steel-500);
  font-weight: 500;
}

/* ── CARD GRID ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--steel-200);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease), border-color var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration) var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  border-color: var(--gold);
}

.card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 52px;
  height: 52px;
  background: var(--gold-pale);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--gold);
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

.card h4 {
  margin-bottom: 10px;
  color: var(--navy);
}

.card p {
  font-size: 0.9rem;
  color: var(--steel-500);
  line-height: 1.7;
}

/* ── ABOUT / INFO BLOCKS ── */
.split-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.split-block--reverse {
  direction: rtl;
}

.split-block--reverse>* {
  direction: ltr;
}

.split-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--steel-200);
}

.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-image .badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: var(--gold);
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--ff-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.split-text h2 {
  margin-bottom: 16px;
}

.split-text p {
  color: var(--steel-500);
  line-height: 1.8;
  margin-bottom: 16px;
}

.split-text p:last-of-type {
  margin-bottom: 28px;
}

/* Feature list */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--steel-700);
}

.feature-list li svg {
  width: 20px;
  height: 20px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── TABLES ── */
.data-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--steel-200);
  background: var(--white);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table thead th {
  background: var(--navy);
  color: var(--white);
  font-family: var(--ff-heading);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 14px 18px;
  text-align: left;
  position: sticky;
  top: 0;
}

.data-table tbody tr {
  border-bottom: 1px solid var(--steel-200);
  transition: background var(--duration) var(--ease);
}

.data-table tbody tr:nth-child(even) {
  background: var(--steel-100);
}

.data-table tbody tr:hover {
  background: var(--gold-pale);
}

.data-table td {
  padding: 12px 18px;
  vertical-align: top;
}

.data-table .norm-code {
  font-family: 'Courier New', monospace;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.85rem;
}

/* ── TIMELINE (Procedimiento) ── */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--steel-300);
}

.timeline-item {
  position: relative;
  padding-bottom: 36px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -33px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--gold);
  z-index: 2;
}

.timeline-item:nth-child(even) .timeline-dot {
  background: var(--navy);
  box-shadow: 0 0 0 2px var(--navy);
}

.timeline-content {
  background: var(--white);
  border: 1px solid var(--steel-200);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.timeline-content:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.timeline-step {
  font-family: var(--ff-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.timeline-content h4 {
  margin-bottom: 6px;
}

.timeline-content p {
  font-size: 0.88rem;
  color: var(--steel-500);
  line-height: 1.6;
}

/* ── TABS (Nosotros) ── */
.tabs-nav {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--steel-200);
  margin-bottom: 32px;
}

.tab-btn {
  padding: 12px 24px;
  font-family: var(--ff-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--steel-500);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--duration) var(--ease);
}

.tab-btn:hover {
  color: var(--navy);
}

.tab-btn.active {
  color: var(--navy);
  border-bottom-color: var(--gold);
}

.tab-panel {
  display: none;
  animation: tabFadeIn 0.4s var(--ease);
}

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

@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── FORM ── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-family: var(--ff-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.form-group label .required {
  color: var(--danger);
  margin-left: 2px;
}

.form-input {
  padding: 12px 16px;
  border: 1.5px solid var(--steel-300);
  border-radius: var(--radius-sm);
  font-family: var(--ff-body);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.form-input:focus {
  outline: none;
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 3px rgba(46, 110, 166, 0.12);
}

.form-input.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-input.success {
  border-color: var(--success);
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
}

select.form-input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.form-error-msg {
  font-size: 0.75rem;
  color: var(--danger);
  margin-top: 4px;
  display: none;
}

.form-group.has-error .form-error-msg {
  display: block;
}

.form-success {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  color: var(--success);
  font-weight: 500;
  display: none;
}

/* ── VALORES SELECTOR ── */
.valores-selector {
  position: relative;
  z-index: 2;
}

.valor-btn {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  width: 110px;
}

.valor-btn .icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  transition: all 0.3s ease;
  background: var(--white);
}

.valor-btn .icon-circle svg {
  width: 32px;
  height: 32px;
}

.valor-btn.active .icon-circle,
.valor-btn:hover .icon-circle {
  border-color: var(--gold);
  color: var(--gold);
  transform: scale(1.1);
  box-shadow: 0 10px 20px rgba(212, 132, 26, 0.15);
}

.valor-label {
  font-family: var(--ff-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  transition: color 0.3s ease;
  line-height: 1.3;
}

.valor-btn.active .valor-label {
  color: var(--gold);
}

/* ── PREMIUM FORM ── */
.premium-form input,
.premium-form textarea {
  width: 100%;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  font-family: var(--ff-body);
  font-size: 0.95rem;
  color: var(--text);
  transition: all 0.3s ease;
}

.premium-form input::placeholder,
.premium-form textarea::placeholder {
  color: var(--steel-400);
}

.premium-form input:focus,
.premium-form textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(212, 132, 26, 0.1);
}

/* ── FOOTER ── */
.site-footer {
  background: var(--navy-deep);
  color: var(--steel-400);
  padding-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1.5fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 0px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer-col h5 {
  font-family: var(--ff-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  font-size: 0.85rem;
  color: var(--steel-400);
  transition: color var(--duration) var(--ease);
}

.footer-col ul li a:hover {
  color: var(--gold);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.footer-contact li svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--gold);
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--steel-500);
}

/* ── SCROLL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered children */
.stagger>* {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.stagger.visible>*:nth-child(1) {
  transition-delay: 0ms;
}

.stagger.visible>*:nth-child(2) {
  transition-delay: 100ms;
}

.stagger.visible>*:nth-child(3) {
  transition-delay: 200ms;
}

.stagger.visible>*:nth-child(4) {
  transition-delay: 300ms;
}

.stagger.visible>*:nth-child(5) {
  transition-delay: 400ms;
}

.stagger.visible>*:nth-child(6) {
  transition-delay: 500ms;
}

.stagger.visible>* {
  opacity: 1;
  transform: translateY(0);
}

/* Only apply stagger animation when parent has visible class */
.stagger:not(.visible)>* {
  opacity: 0;
  transform: translateY(20px);
}

/* ── SVG THEMED ANIMATIONS ── */
/* I-Beam drawing */
@keyframes drawBeam {
  from {
    stroke-dashoffset: 800;
  }

  to {
    stroke-dashoffset: 0;
  }
}

.svg-beam {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
}

.svg-beam.animated {
  animation: drawBeam 2s var(--ease) forwards;
}

/* Gear rotation */
@keyframes rotateGear {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.svg-gear {
  animation: rotateGear 12s linear infinite;
  transform-origin: center;
}

/* Certificate stamp */
@keyframes stampIn {
  0% {
    transform: scale(2) rotate(-15deg);
    opacity: 0;
  }

  60% {
    transform: scale(0.9) rotate(2deg);
    opacity: 1;
  }

  80% {
    transform: scale(1.05) rotate(-1deg);
  }

  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

.svg-stamp {
  opacity: 0;
}

.svg-stamp.animated {
  animation: stampIn 0.8s var(--ease) forwards;
}

/* Blueprint trace */
@keyframes traceBlueprint {
  from {
    stroke-dashoffset: 1200;
  }

  to {
    stroke-dashoffset: 0;
  }
}

.svg-blueprint {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
}

.svg-blueprint.animated {
  animation: traceBlueprint 3s var(--ease) forwards;
}

/* Pulse for dots/indicators */
@keyframes pulse {

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

  50% {
    transform: scale(1.3);
    opacity: 0.6;
  }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .split-block {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .split-block--reverse {
    direction: ltr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

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

@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }

  .section {
    padding: 48px 0;
  }

  /* Prevent horizontal scroll from off-screen animations */
  .reveal-left,
  .reveal-right {
    transform: translateY(30px) !important;
  }

  .reveal-left.visible,
  .reveal-right.visible {
    transform: translateY(0) !important;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-deep);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px;
    gap: 4px;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 12px 16px;
    color: var(--white);
    text-align: left;
  }

  .nav-links a.active::after {
    left: 16px;
    transform: none;
  }

  .dropdown {
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    padding: 0 0 0 20px;
    display: none;
  }

  .dropdown-menu.show {
    display: block;
  }

  .dropdown-menu a {
    color: var(--steel-300);
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  .nav-links a:hover {
    color: var(--gold);
    background: rgba(255, 255, 255, 0.05);
  }

  .hamburger {
    display: flex;
  }

  #hero {
    height: 70vh;
  }

  .hero-slide {
    height: 70vh;
  }

  .hero-quote {
    font-size: 1.1rem !important;
    margin-bottom: 20px !important;
  }

  .page-hero-title {
    font-size: 1.5rem !important;
    line-height: 1.3 !important;
  }

  .hero .btn,
  .btn {
    line-height: 1.2 !important;
  }

  .valor-label {
    line-height: 1.2 !important;
  }

  .hero .btn {
    width: auto !important;
    display: inline-flex !important;
    margin-bottom: 40px !important;
  }

  .hero-svg-decoration {
    display: none;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-col {
    border-left: none !important;
    padding-left: 0 !important;
    text-align: left;
  }

  .footer-col ul li,
  .footer-contact li {
    justify-content: flex-start !important;
  }

  .footer-brand {
    justify-content: flex-start !important;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .mision-flex {
    flex-direction: column;
    text-align: center;
  }

  .mision-flex>div:last-child {
    border-left: none !important;
    padding-left: 0 !important;
  }

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

  .stat-item+.stat-item::before {
    display: none;
  }

  .tabs-nav {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .tab-btn {
    padding: 10px 16px;
    font-size: 0.8rem;
  }

  .valor-btn {
    width: 45%;
  }

  .table-responsive::before,
  .norms-tabs-container::before {
    content: "← Desliza para ver más →";
    display: block;
    text-align: center;
    font-size: 0.8rem;
    color: var(--steel-400);
    margin-bottom: 10px;
    font-style: italic;
  }

  /* Procedure steps: All active on mobile */
  .procedure-step .proc-icon-wrap img {
    opacity: 1 !important;
  }

  .procedure-step .proc-number {
    background: var(--gold) !important;
  }

  .procedure-step .proc-line {
    background: var(--gold) !important;
  }

  .procedure-step .proc-title {
    color: var(--navy) !important;
  }

  .procedure-step .proc-icon {
    border-color: var(--gold) !important;
    border-style: dotted !important;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

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

  .hero {
    min-height: 60vh;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-desc {
    font-size: 0.95rem;
  }

  .btn-group {
    flex-direction: column;
  }

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

/* ── PRINT ── */
@media print {

  .site-header,
  .hamburger {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 40px 0;
  }

  .section {
    padding: 30px 0;
  }

  body {
    background: white;
  }
}

/* ════════════════════════════════════════════════════════
   NORMAS TABS
════════════════════════════════════════════════════════ */
.norms-tabs-container {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  margin-top: 20px;
}

@media (max-width: 900px) {
  .norms-tabs-container {
    flex-direction: column;
  }
}

.norms-tabs-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 320px;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .norms-tabs-list {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 10px;
  }
}

.norm-tab {
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
}

.norm-tab:hover {
  background: var(--blue-mid);
}

.norm-tab.active {
  background: var(--gold);
  color: var(--white);
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(222, 108, 45, 0.3);
}

@media (max-width: 900px) {
  .norm-tab.active {
    transform: translateY(-5px);
  }
}

.norms-content-list {
  flex-grow: 1;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 10px 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--steel-200);
  min-height: auto;
  display: flex;
  align-items: center;
}

.norm-content {
  display: none;
  animation: fadeIn var(--duration) var(--ease) forwards;
}

.norm-content.active {
  display: block;
}

.norm-content p {
  color: var(--steel-600);
  font-size: 1.1rem;
  line-height: 1.8;
  margin: 0;
}

/* ════════════════════════════════════════════════════════
   PROCEDIMIENTO CAROUSEL
════════════════════════════════════════════════════════ */
.procedure-carousel-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  overflow: hidden;
  /* Important for hiding steps outside */
}

.proc-nav {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--duration) var(--ease);
  position: absolute;
  top: 50px;
  z-index: 10;
}

.proc-nav:hover {
  transform: scale(1.1);
}

.proc-prev {
  left: 0;
}

.proc-next {
  right: 0;
}

.procedure-carousel {
  overflow: hidden;
  width: 100%;
}

.procedure-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.procedure-step {
  min-width: 33.333%;
  /* Show 3 steps at a time */
  width: 33.333%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  opacity: 1;
  transition: opacity 0.3s ease;
}

@media (max-width: 900px) {
  .procedure-step {
    min-width: 50%;
    /* Show 2 steps on tablet */
    width: 50%;
  }
}

@media (max-width: 600px) {
  .procedure-step {
    min-width: 100%;
    /* Show 1 step on mobile */
    width: 100%;
  }
}

.proc-icon-wrap {
  position: relative;
  margin-bottom: 30px;
  z-index: 2;
}

.proc-icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px dashed var(--steel-300);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  transition: all var(--duration) var(--ease);
}

.procedure-step.active-step .proc-icon {
  border: 2px dashed var(--gold);
  border-style: dotted;
  /* As per design */
}

.proc-number {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  background: var(--gold);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-heading);
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.proc-line {
  position: absolute;
  top: 60px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--gold);
  z-index: 1;
}

.proc-title {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  max-width: 200px;
  line-height: 1.4;
  margin: 0;
}

/* ════════════════════════════════════════════════════════
   ESQUEMAS DE CERTIFICACIÓN
════════════════════════════════════════════════════════ */
.schemas-grid {
  display: grid;
  grid-template-columns: 80px 1fr 1fr 1.5fr;
  gap: 15px;
  max-width: 1000px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .schemas-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .schema-header {
    display: none !important;
  }

  .schema-box {
    grid-row: auto !important;
    flex-direction: column;
  }

  .schema-box::before {
    content: attr(data-label);
    display: block;
    font-size: 0.85rem;
    color: var(--gold);
    margin-bottom: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
  }
}

.schema-header {
  color: var(--white);
  font-family: var(--ff-heading);
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  padding-bottom: 15px;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.3);
}

.schema-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.3s ease;
}

.schema-cell:hover {
  background-color: rgba(222, 108, 45, 0.15);
  /* Orange hover */
  border-color: var(--gold);
}

.schema-option {
  justify-content: center;
}

.schema-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--white);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 1.2rem;
  position: relative;
}

.schema-check {
  position: absolute;
  top: -6px;
  left: -6px;
  background: var(--navy);
  border-radius: 50%;
  padding: 2px;
}

.schema-box {
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-sm);
  padding: 20px;
  background: rgba(0, 38, 86, 0.4);
  color: var(--white);
  height: 100%;
}

.schema-box p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
}

/* ════════════════════════════════════════════════════════
   INFORMACION DE INTERES PAGE
════════════════════════════════════════════════════════ */

/* Carrusel de Noticias */
.news-carousel-wrapper {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.news-swiper {
  padding: 20px 0 !important;
  /* To allow shadow to show */
}

.news-slide {
  height: auto;
  /* For equal heights with Swiper */
  flex: 0 0 auto;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.news-slide:hover {
  transform: translateY(-5px);
}

.news-image {
  width: 100%;
  height: 220px;
  background: var(--steel-200);
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-title {
  color: var(--navy);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
  text-transform: uppercase;
}

.news-desc {
  color: var(--steel-600);
  font-size: 0.9rem;
  margin-bottom: 20px;
  line-height: 1.5;
  /* Keep consistent height */
}

.btn--news {
  padding: 10px 24px;
  font-size: 0.85rem;
  margin-top: auto;
  align-self: center;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  color: var(--navy);
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 10;
  transition: color 0.3s ease, transform 0.3s ease;
}

.nav-btn:hover {
  color: var(--gold);
  transform: translateY(-50%) scale(1.1);
}

.prev-btn {
  left: -50px;
}

.next-btn {
  right: -50px;
}

@media (max-width: 1100px) {
  .prev-btn {
    left: -10px;
  }

  .next-btn {
    right: -10px;
  }
}

/* Tablas */
.table-section-title {
  font-family: var(--ff-heading);
  font-size: 1.1rem;
  color: var(--navy);
  text-align: center;
  font-weight: 700;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
  text-transform: uppercase;
}

.table-responsive {
  overflow-x: auto;
  margin-bottom: 20px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 0.9rem;
  min-width: 700px;
  /* Prevent shrinking too much */
}

.data-table th {
  background: var(--navy);
  color: var(--white);
  padding: 14px 16px;
  border: 1px solid var(--white);
  text-align: left;
  font-family: var(--ff-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.data-table td {
  padding: 14px 16px;
  border: 1px solid var(--steel-300);
  color: var(--steel-600);
  vertical-align: top;
  line-height: 1.5;
}

.data-table td:first-child {
  text-align: center;
  font-weight: 600;
}

/* Banner Descarga */
.download-banner {
  background-color: var(--navy);
  background-size: cover;
  background-position: center;
  padding: 60px 20px;
}

.download-banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  max-width: 800px;
  margin: 0 auto;
}

.banner-illustration {
  border-radius: 20px;
  padding: 10px;
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-illustration img {
  max-width: 100%;
  height: auto;
}

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

.banner-text h2 {
  color: var(--white);
  font-size: 1.8rem;
  margin-bottom: 24px;
  font-family: var(--ff-heading);
  font-weight: 700;
}

@media (max-width: 768px) {
  .download-banner-content {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

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

/* ════════════════════════════════════════════════════════
   PROCEDURE CAROUSEL ACTIVE STATES (SWIPER)
════════════════════════════════════════════════════════ */
.procedure-step .proc-icon-wrap img {
  opacity: 0.3;
  transition: opacity 0.3s ease;
  max-width: 45px;
}

.procedure-step .proc-number {
  background: var(--steel-300);
  transition: background 0.3s ease;
}

.procedure-step .proc-line {
  background: var(--steel-300);
  transition: background 0.3s ease;
}

.procedure-step .proc-title {
  color: var(--steel-400);
  transition: color 0.3s ease;
}

.procedure-step .proc-icon {
  border-color: var(--steel-300);
  border-style: dashed;
  transition: all 0.3s ease;
}

/* When slide is active */
.is-active.procedure-step .proc-icon-wrap img {
  opacity: 1 !important;
}

.is-active.procedure-step .proc-number {
  background: var(--gold) !important;
}

.is-active.procedure-step .proc-line {
  background: var(--gold) !important;
}

.is-active.procedure-step .proc-title {
  color: var(--navy) !important;
}

.is-active.procedure-step .proc-icon {
  border-color: var(--gold) !important;
  border-style: dotted !important;
}

/* ════════════════════════════════════════════════════════
   FOOTER LINKS HOVER ANIMATION
════════════════════════════════════════════════════════ */
.footer-col ul li a {
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-col ul li a:hover {
  color: var(--gold) !important;
  transform: translateX(5px);
}

/* ════════════════════════════════════════════════════════
   QUEJAS Y SUGERENCIAS STYLES
════════════════════════════════════════════════════════ */
.type-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.type-option {
  border: 2px solid var(--steel-200);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  background: var(--white);
}

.type-option:hover {
  border-color: var(--blue-mid);
}

.type-option.selected {
  border-color: var(--gold);
  background: var(--gold-pale);
  color: #fff;
}

.type-option input[type="radio"] {
  display: none;
}

.type-option .type-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  background: var(--steel-100);
  transition: background var(--duration) var(--ease);
}

.type-option.selected .type-icon {
  background: var(--gold);
}

.type-option .type-icon svg {
  width: 22px;
  height: 22px;
  color: var(--steel-500);
  transition: color var(--duration) var(--ease);
}

.type-option.selected .type-icon svg {
  color: var(--white);
}

.type-option .type-label {
  font-family: var(--ff-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

.form-wrapper {
  background: var(--white);
  border: 1px solid var(--steel-200);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.info-sidebar {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 36px;
  color: var(--white);
  height: fit-content;
}

.info-sidebar h3 {
  color: var(--white);
  margin-bottom: 16px;
}

.info-sidebar p {
  font-size: 0.88rem;
  color: var(--steel-400);
  line-height: 1.7;
  margin-bottom: 24px;
}

.info-sidebar .contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.88rem;
}

.info-sidebar .contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.sidebar-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 24px 0;
}

.contact-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .type-selector {
    grid-template-columns: 1fr;
  }

  .form-wrapper {
    padding: 24px;
  }

  .contact-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* ── FLOATING CONTACT BUTTONS (SPEED DIAL) ── */
.floating-contact {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 9999;
}

.floating-contact-menu {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.main-btn {
  display: none !important;
  /* Oculto en escritorio, se muestran directos */
}

.float-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  position: relative;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.float-btn.phone-btn {
  background-color: var(--gold);
}

.float-btn.email-btn {
  background-color: var(--navy);
}

.float-btn.whatsapp-btn {
  background-color: #25D366;
}

.float-btn.facebook-btn {
  background-color: #1877F2;
}

.float-btn.instagram-btn {
  background-color: #E1306C;
}

.float-btn:hover {
  transform: scale(1.1);
  color: var(--white);
}

/* Animación de pulso continuo (solo en escritorio) */
@media (min-width: 769px) {
  .float-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    z-index: -1;
    animation: floatPulse 2s infinite;
  }

  .float-btn.phone-btn::before {
    background-color: var(--gold);
  }

  .float-btn.email-btn::before {
    background-color: var(--navy);
  }

  .float-btn.whatsapp-btn::before {
    background-color: #25D366;
  }

  .float-btn.facebook-btn::before {
    background-color: #1877F2;
  }

  .float-btn.instagram-btn::before {
    background-color: #E1306C;
  }
}

@keyframes floatPulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* Mobile Adjustments (Speed Dial) */
@media (max-width: 768px) {
  .floating-contact {
    top: auto;
    bottom: 20px;
    right: 16px;
    transform: none;
    flex-direction: column;
    gap: 0;
    align-items: center;
  }

  .main-btn {
    display: flex !important;
    /* Mostrar el toggle en móvil */
    background-color: var(--gold);
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
    z-index: 10;
  }

  /* Animación de pulso solo para el main btn */
  .main-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--gold);
    z-index: -1;
    animation: floatPulse 2s infinite;
  }

  .floating-contact.active .main-btn::before {
    animation: none;
    opacity: 0;
  }

  .floating-contact-menu {
    position: absolute;
    bottom: 65px;
    /* Por encima del botón principal */
    right: 0;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
  }

  .floating-contact.active .floating-contact-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  .float-btn {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .float-btn:hover {
    transform: none;
  }

  /* Remove header/footer padding completely as it's a floating button now */
  .site-footer {
    padding-bottom: 0 !important;
  }
}

/* ═══ NORMS GRID ═══ */
.norms-grid-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.norms-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  width: 100%;
}

@media (min-width: 768px) {
  .norms-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .norms-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.norm-card {
  background: white;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid transparent;
  transition: all 0.3s ease;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.norm-card:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
  border-width: 3px;
}

.norm-icon {
  width: 30px;
  height: 30px;
  color: var(--navy);
  margin-bottom: 15px;
}

.norm-card-title {
  color: var(--navy);
  font-size: 1.1rem;
  margin-bottom: 10px;
  font-family: var(--ff-heading, sans-serif);
}

.norm-card-line {
  width: 25px;
  height: 3px;
  background: var(--gold);
  margin-bottom: 15px;
}

.norm-card-text {
  color: var(--steel-600);
  font-size: 0.95rem;
  line-height: 1.5;
  font-family: var(--ff-body, sans-serif);
}

/* ── RECAPTCHA BADGE FIX ── */
.grecaptcha-badge {
  /* En escritorio, lo subimos un poco para que no estorbe */
  bottom: 80px !important;
  z-index: 9999 !important;
}

@media (max-width: 768px) {
  .grecaptcha-badge {
    /* En móviles lo pasamos a la izquierda para que no tape las redes ni el botón flotante */
    right: auto !important;
    left: 16px !important;
    bottom: 20px !important;
    display: none !important;
  }
}

/* Alineación específica para el elemento largo del menú (quejas) */
.menu-quejas {
  line-height: 1.2;
  text-align: center;
}

@media (max-width: 768px) {
  .menu-quejas {
    text-align: left !important;
  }
}