/* ========================================
   Next Brokers - Custom Styles
   ======================================== */

/* ---------- Font Families ---------- */
/* Bank Gothic: titles, navigation, buttons */
/* Montserrat: body text, subtitles, paragraphs */

h1, h2, h3, h4 {
  line-height: 1.05;
}

/* ---------- CSS Variables ---------- */
:root {
  --font-heading: "bank-gothic-bt", sans-serif;
  --font-body: 'Montserrat', sans-serif;
  --primary: #004d40;
  --primary-dark: #00352c;
  --primary-light: #00695c;
  --accent: #d4e157;
  --accent-dark: #c0ca33;
  --white: #ffffff;
  --gray-50: #f8faf8;
  --gray-100: #f1f5f1;
  --gray-200: #e2e8e2;
  --gray-300: #cbd5cb;
  --gray-600: #4a5568;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --shadow-sm: 0 1px 3px rgba(0, 77, 64, 0.08);
  --shadow-md: 0 4px 14px rgba(0, 77, 64, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 77, 64, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-body);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-style: normal;
  font-size: 2.25rem;
  color: var(--primary);
  text-align: center;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-600);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-style: normal;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--accent);
  color: var(--primary-dark);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 225, 87, 0.4);
}

.btn-outline {
  background: rgba(212, 225, 87, 0.15);
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--primary-dark);
  border-color: var(--accent);
  transform: translateY(-2px);
}

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

.btn-accent:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: all var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  padding: 0.6rem 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  display: inline-flex;
  align-items: center;
}

.navbar-logo img {
  height: 32px;
  width: auto;
}

.navbar.scrolled .navbar-logo img {
  filter: brightness(0) saturate(100%) invert(20%) sepia(80%) saturate(600%) hue-rotate(140deg);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.navbar-links a {
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-heading);
  font-weight: 500;
  font-style: normal;
  font-size: 0.9rem;
  position: relative;
  padding: 0.25rem 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.navbar-links a:hover::after,
.navbar-links a.active::after {
  width: 100%;
}

.navbar.scrolled .navbar-links a {
  color: var(--gray-700);
}

.navbar.scrolled .navbar-links a:hover {
  color: var(--primary);
}

.navbar-cta {
  background: var(--accent);
  color: var(--primary-dark) !important;
  padding: 0.6rem 2rem !important;
  border-radius: 50px;
  font-weight: 500 !important;
  font-size: 0.85rem !important;
}

.navbar-cta::after {
  display: none !important;
}

.navbar-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.mobile-toggle span {
  width: 26px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

.navbar.scrolled .mobile-toggle span {
  background: var(--primary);
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: url('img/hero.jpg') center center / cover no-repeat;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 53, 44, 0.60) 0%, rgba(0, 26, 20, 0.50) 100%);
  z-index: 0;
}

.hero::after {
  content: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero h1 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-style: normal;
  font-size: 3.5rem;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero h1 .highlight {
  color: var(--white);
}

.hero p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 2.5rem;
  max-width: 580px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- Cifras / Stats ---------- */
.stats {
  background: var(--gray-50);
  padding: 4rem 0;
  border-bottom: 1px solid var(--gray-200);
}

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

.stat-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

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

.stat-icon {
  width: 60px;
  height: 60px;
  background: rgba(0, 77, 64, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.stat-icon svg {
  width: 28px;
  height: 28px;
  color: var(--primary);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--gray-600);
  font-weight: 500;
}

/* ---------- About / Quiénes Somos ---------- */
.about-intro {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image-placeholder {
  color: rgba(255, 255, 255, 0.3);
  font-size: 5rem;
}

.about-text h2 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-style: normal;
  font-size: 2.25rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-text p {
  color: var(--gray-600);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.about-text p:last-of-type {
  margin-bottom: 2rem;
}

/* ---------- Valores ---------- */
.valores {
  background: var(--gray-50);
}

.valores-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

.valor-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid transparent;
}

.valor-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.valor-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  transition: all var(--transition);
}

.valor-card:hover .valor-icon {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}

.valor-icon svg {
  width: 30px;
  height: 30px;
  color: var(--white);
}

.valor-card:hover .valor-icon svg {
  color: var(--primary-dark);
}

.valor-card h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-style: normal;
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.valor-card p {
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ---------- Misión & Visión ---------- */
.mision-vision {
  background: var(--primary);
  color: var(--white);
}

.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.mv-card {
  background: rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  padding: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition);
}

.mv-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.mv-card .mv-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212, 225, 87, 0.15);
  color: var(--accent);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.25rem;
}

.mv-card h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-style: normal;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.mv-card p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ---------- Seguros Grid ---------- */
.seguros {
  background: var(--white);
}

.seguros-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.seguro-card {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  text-align: center;
  transition: all var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
}

.seguro-card:hover {
  background: var(--white);
  border-color: var(--accent);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.seguro-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: all var(--transition);
}

.seguro-card:hover .seguro-icon {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}

.seguro-icon svg {
  width: 36px;
  height: 36px;
  color: var(--white);
}

.seguro-card:hover .seguro-icon svg {
  color: var(--primary-dark);
}

.seguro-card h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-style: normal;
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.seguro-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ---------- Siniestros ---------- */
.siniestros-hero {
  background: url('img/equipo3.jpg') center center / cover no-repeat;
  color: var(--white);
  padding: 8rem 0 5rem;
  position: relative;
}

.siniestros-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 53, 44, 0.75) 0%, rgba(0, 26, 20, 0.65) 100%);
  z-index: 0;
}

.siniestros-hero .container {
  position: relative;
  z-index: 1;
}

.siniestros-hero h1 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-style: normal;
  font-size: 3rem;
  margin-bottom: 1.5rem;
  max-width: 700px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.siniestros-hero p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 600px;
  line-height: 1.8;
}

.siniestros-features {
  background: var(--white);
}

.siniestros-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.siniestro-feature {
  padding: 2.5rem 2rem;
  background: var(--gray-50);
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
  transition: all var(--transition);
}

.siniestro-feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.siniestro-feature .feature-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: var(--accent);
  border-radius: 50%;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.siniestro-feature h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-style: normal;
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.siniestro-feature p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ---------- Proceso / Flow ---------- */
.proceso {
  background: var(--gray-50);
}

.proceso-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.proceso-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  min-width: 160px;
}

.proceso-step-icon {
  width: 70px;
  height: 70px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.proceso-step-icon svg {
  width: 32px;
  height: 32px;
  color: var(--accent);
}

.proceso-step h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-style: normal;
  font-size: 0.95rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.proceso-arrow {
  font-size: 2rem;
  color: var(--accent-dark);
  font-weight: 700;
}

/* ---------- Alianzas ---------- */
.alianzas {
  background: var(--gray-50);
}

.alianzas-text {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
  color: var(--gray-600);
}

.alianzas-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: nowrap;
}

.alianza-logo {
  background: var(--white);
  padding: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 2px solid transparent;
  flex: 1;
  max-width: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.alianza-logo img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  display: block;
}

.alianza-logo:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
  .alianzas-carousel {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .alianza-logo {
    flex: 0 0 calc(50% - 0.5rem);
    max-width: none;
  }
}

/* ---------- Contacto ---------- */
.contacto {
  background: var(--white);
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contacto-info h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-style: normal;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contacto-info p {
  color: var(--gray-600);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.contacto-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.contacto-detail-icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 77, 64, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contacto-detail-icon svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
}

.contacto-detail span {
  color: var(--gray-700);
  font-weight: 500;
}

.contacto-form {
  background: var(--gray-50);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1.25rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
}

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

.form-submit {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .footer-logo {
  margin-bottom: 1rem;
}

.footer-brand .footer-logo img {
  height: 36px;
  width: auto;
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--accent);
  color: var(--primary-dark);
}

.footer-social a svg {
  width: 18px;
  height: 18px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-style: normal;
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--accent);
}

/* ---------- Cotizador ---------- */
.cotizador {
  background: var(--gray-50);
}

.cotizador-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2.5rem;
  max-width: 780px;
  margin: 0 auto;
}

.cotizador-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--gray-200);
  margin-bottom: 2rem;
}

.cotizador-tab {
  background: none;
  border: none;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-500);
  cursor: pointer;
  position: relative;
  transition: color var(--transition);
}

.cotizador-tab::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.cotizador-tab.active {
  color: var(--primary);
}

.cotizador-tab.active::after {
  transform: scaleX(1);
}

.cotizador-form {
  display: none;
}

.cotizador-form.active {
  display: block;
}

.cotizador-field {
  margin-bottom: 1.5rem;
}

.cotizador-field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--gray-800);
  margin-bottom: 0.5rem;
}

.cotizador-field input,
.cotizador-field select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--gray-700);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
  box-sizing: border-box;
}

.cotizador-field input:focus,
.cotizador-field select:focus {
  border-color: var(--primary);
}

.cotizador-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-100);
}

.cotizador-step-title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.cotizador-step-subtitle {
  color: var(--gray-500);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 0.65rem 1.75rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all var(--transition);
}

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

/* ---------- Modals ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem 2rem 1.25rem;
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 1;
}

.modal-header h2 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--gray-100);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  flex-shrink: 0;
}

.modal-close:hover {
  background: var(--gray-200);
}

.modal-close svg {
  width: 18px;
  height: 18px;
  color: var(--gray-700);
}

.modal-body {
  padding: 1.75rem 2rem 2rem;
  font-size: 0.92rem;
  color: var(--gray-600);
  line-height: 1.8;
}

.modal-aseguradora-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.75rem 2rem 1.25rem;
  border-bottom: 1px solid var(--gray-200);
}

.modal-aseguradora-header img {
  height: 140px;
  width: auto;
  object-fit: contain;
}

.modal-aseguradora-header h2 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
}

.modal-aseguradora-body {
  padding: 1.5rem 2rem 2rem;
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.8;
  text-align: center;
}

.modal-aseguradora-body a.btn {
  margin-top: 1.25rem;
  display: inline-block;
}

.alianza-logo {
  cursor: pointer;
}

.modal-body h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 1.5rem 0 0.5rem;
}

.modal-body h3:first-child {
  margin-top: 0;
}

.modal-body p {
  margin-bottom: 0.75rem;
}

/* ---------- WhatsApp Float ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all var(--transition);
  cursor: pointer;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  color: var(--white);
}

/* ---------- Fade-in Animation ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Page Header (for inner pages) ---------- */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 8rem 0 4rem;
  text-align: center;
  color: var(--white);
}

.page-header h1 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-style: normal;
  font-size: 2.75rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.page-header p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .valores-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

@media (max-width: 768px) {
  .navbar-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: right var(--transition);
  }

  .navbar-links.open {
    right: 0;
  }

  .navbar-links a {
    color: var(--gray-700) !important;
    font-size: 1.1rem;
  }

  .mobile-toggle {
    display: flex;
  }

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

  .hero p {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

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

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

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

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

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

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

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

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .section {
    padding: 3.5rem 0;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .proceso-flow {
    flex-direction: column;
  }

  .proceso-arrow {
    transform: rotate(90deg);
  }

  .page-header {
    padding: 7rem 0 3rem;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .siniestros-hero {
    padding: 7rem 0 3.5rem;
  }

  .siniestros-hero h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .valores-grid {
    grid-template-columns: 1fr;
  }

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

  .alianzas-carousel {
    gap: 1rem;
  }

  .alianza-logo {
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
  }
}
