/* ============================================================
   GUASO INSURANCE — styles.css
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --navy:        #1B3A6B;
  --navy-dark:   #112648;
  --navy-light:  #254f94;
  --gold:        #C8922A;
  --gold-light:  #dba63a;
  --white:       #ffffff;
  --gray-light:  #F5F7FA;
  --gray:        #e2e7ef;
  --text:        #1e293b;
  --text-muted:  #64748b;
  --font-head:   'Poppins', sans-serif;
  --font-body:   'Inter', sans-serif;
  --radius:      10px;
  --radius-lg:   16px;
  --shadow-sm:   0 1px 4px rgba(0,0,0,0.07);
  --shadow:      0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg:   0 8px 40px rgba(0,0,0,0.15);
  --transition:  0.22s ease;
  --max-width:   1200px;
}

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

/* ── Container ──────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-accent {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-accent:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(200,146,42,0.35);
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200,146,42,0.4);
}

.btn-gold-outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-gold-outline:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200,146,42,0.3);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  transform: translateY(-1px);
}

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

/* ── Top Bar ────────────────────────────────────────────────── */
.top-bar {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.85);
  font-size: 0.83rem;
  padding: 8px 0;
}
.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.top-contact {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.top-contact a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.85);
  transition: color var(--transition);
}
.top-contact a:hover { color: var(--gold-light); }
.top-contact i { font-size: 0.78rem; color: var(--gold); }

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--white);
  font-size: 0.83rem;
  font-weight: 600;
  font-family: var(--font-head);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 4px 12px;
  border-radius: 20px;
  transition: var(--transition);
}
.lang-toggle:hover {
  background: var(--gold);
  border-color: var(--gold);
}
.lang-toggle i { font-size: 0.78rem; }

/* ── Header ─────────────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 24px;
}

.logo { display: flex; align-items: center; gap: 10px; }

.logo-umbrella {
  height: 42px;
  width: auto;
  flex-shrink: 0;
}

.logo-text-stack {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 3px;
}

.logo-name {
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 800;
  color: #1A1A1A;
  letter-spacing: 1px;
  line-height: 1;
}

.logo-sub {
  font-family: var(--font-head);
  font-size: 0.57rem;
  font-weight: 500;
  color: #888;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  padding: 8px 14px;
  border-radius: 6px;
  transition: var(--transition);
}
.nav-link:hover { color: var(--navy); background: var(--gray-light); }
.nav-cta { margin-left: 8px; padding: 10px 22px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  background: linear-gradient(145deg, #0d1f3c 0%, var(--navy) 45%, #254f94 100%);
  color: var(--white);
  padding: 100px 0 80px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(200,146,42,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 60px;
  left: -80px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(37,79,148,0.4) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-overlay { display: none; }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200,146,42,0.2);
  border: 1px solid rgba(200,146,42,0.5);
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-head);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-btns .btn { font-size: 1rem; padding: 15px 32px; }

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 2;
  line-height: 0;
}
.hero-wave svg { width: 100%; height: 40px; }

/* ── Section Base ───────────────────────────────────────────── */
.section { padding: 80px 0; }

.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}
.section-header.light { color: var(--white); }
.section-header h2 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.25;
}
.section-header.light h2 { color: var(--white); }
.section-header p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.section-header.light p { color: rgba(255,255,255,0.8); }

.section-tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.section-tag.light { color: var(--gold-light); }

/* ── Services ───────────────────────────────────────────────── */
.services-section { background: var(--gray-light); }

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

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 20px 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--gray);
  color: var(--text);
  cursor: pointer;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--navy);
  color: var(--text);
}
.service-card:hover .service-icon { background: var(--navy); }
.service-card:hover .service-icon i { color: var(--white); }

.service-icon {
  width: 64px;
  height: 64px;
  background: var(--gray-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: var(--transition);
}
.service-icon i {
  font-size: 1.5rem;
  color: var(--navy);
  transition: var(--transition);
}

.service-card h3 {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.service-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Marketplace ────────────────────────────────────────────── */
.marketplace-section {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.marketplace-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(200,146,42,0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.marketplace-btns {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.marketplace-btn {
  min-width: 220px;
  padding: 18px 32px;
  font-size: 1rem;
  gap: 14px;
}
.marketplace-btn i { font-size: 1.3rem; }
.marketplace-btn > div { display: flex; flex-direction: column; align-items: flex-start; }
.marketplace-btn strong { font-size: 1.05rem; font-family: var(--font-head); }
.marketplace-btn small { font-size: 0.78rem; opacity: 0.85; font-weight: 400; }

.marketplace-note {
  text-align: center;
  font-size: 0.83rem;
  color: rgba(255,255,255,0.6);
  font-style: italic;
}

/* ── About ──────────────────────────────────────────────────── */
.about-section { background: var(--white); }

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

.about-text .section-tag { display: block; }
.about-text h2 {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 18px;
  line-height: 1.25;
}
.about-text p {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 16px;
}

.habla-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 8px;
  box-shadow: var(--shadow-sm);
}
.habla-badge i { color: var(--gold-light); font-size: 1.1rem; }
.habla-badge.small { font-size: 0.82rem; padding: 8px 14px; }

.about-reasons {
  background: var(--gray-light);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  border: 1px solid var(--gray);
}
.about-reasons h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--gold);
}

.reasons-list { display: flex; flex-direction: column; gap: 14px; }
.reasons-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.93rem;
  color: var(--text);
  line-height: 1.5;
}
.reasons-list i {
  color: var(--gold);
  font-size: 1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ── Contact ────────────────────────────────────────────────── */
.contact-section { background: var(--gray-light); }

.contact-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 48px;
  align-items: start;
}

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

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contact-icon {
  width: 46px;
  height: 46px;
  background: var(--navy);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon i { color: var(--gold-light); font-size: 1rem; }
.contact-item > div { display: flex; flex-direction: column; gap: 2px; }
.contact-item strong {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.contact-item a,
.contact-item span {
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.contact-item a:hover { color: var(--gold); }

/* Form */
.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-group:last-child { margin-bottom: 0; }

.form-group label {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--gray);
  border-radius: var(--radius);
  font-size: 0.93rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27,58,107,0.1);
}
.form-group select { cursor: pointer; }
.form-group textarea { resize: vertical; }

.form-success {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 0.93rem;
  font-weight: 500;
  margin-top: 14px;
}
.form-success i { color: #059669; font-size: 1.1rem; }
.form-success[hidden] { display: none; }

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1fr 1.3fr;
  gap: 48px;
  padding-top: 60px;
  padding-bottom: 40px;
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.footer-logo-wrap .logo-name { color: var(--white); }
.footer-logo-wrap .logo-sub  { color: rgba(255,255,255,0.5); }
.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 16px;
  color: rgba(255,255,255,0.65);
}

.footer-col h4 {
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col a,
.footer-col span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  padding: 4px 0;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--gold-light); }
.footer-col i { font-size: 0.78rem; color: var(--gold); }

.footer-bottom {
  background: rgba(0,0,0,0.2);
  padding: 14px 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

/* ── Back to Top ────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  z-index: 200;
  transition: var(--transition);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--gold); transform: translateY(-2px); }

/* ── Responsive ─────────────────────────────────────────────── */

@media (max-width: 992px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .about-grid { gap: 40px; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .top-contact span:last-child { display: none; }
  .hamburger { display: flex; }
  .nav {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 20px;
    box-shadow: var(--shadow);
    gap: 4px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }
  .nav.open {
    max-height: 400px;
    padding: 12px 16px 20px;
  }
  .nav-link { padding: 12px 16px; border-radius: var(--radius); }
  .nav-cta { margin-left: 0; text-align: center; margin-top: 4px; }
  .hero { padding: 70px 0 60px; }
  .hero h1 { font-size: 1.9rem; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; justify-content: center; }
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .service-card { padding: 24px 14px; }
  .marketplace-btns { flex-direction: column; align-items: center; }
  .marketplace-btn { width: 100%; max-width: 320px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-info { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; }
  .footer-bottom .container { justify-content: center; text-align: center; }
  .back-to-top { bottom: 18px; right: 18px; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .service-card { padding: 20px 10px; }
  .service-icon { width: 52px; height: 52px; }
  .service-icon i { font-size: 1.2rem; }
  .service-card h3 { font-size: 0.88rem; }
  .service-card p { display: none; }
  .top-contact a:last-child { display: none; }
}
