/* Segurizate Corredores de Seguros - main.css */

:root {
  --navy: #0a1628;
  --navy-mid: #122040;
  --gold: #c9943a;
  --gold-light: #e8b660;
  --cream: #f8f4ee;
  --white: #ffffff;
  --gray-light: #f2f2f2;
  --gray-mid: #888;
  --text: #1a1a2e;
  --shadow: 0 20px 60px rgba(10,22,40,0.15);
  --radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
h1, h2, h3 { font-family: 'Playfair Display', serif; }

/* ── HEADER ── */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10,22,40,0.97);
  backdrop-filter: blur(12px);
  padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
  border-bottom: 1px solid rgba(201,148,58,0.25);
  transition: all .3s;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.logo-text { color: var(--white); font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700; }
.logo-text span { color: var(--gold); }
/* Hide WP custom logo img inside header logo link */
.logo img { height: 40px; width: auto; }

nav { display: flex; align-items: center; gap: 2rem; }
nav a {
  color: rgba(255,255,255,0.8);
  text-decoration: none; font-size: .9rem; font-weight: 500;
  letter-spacing: .03em; transition: color .25s; position: relative;
}
nav a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--gold);
  transform: scaleX(0); transition: transform .25s;
}
nav a:hover { color: var(--white); }
nav a:hover::after { transform: scaleX(1); }
.btn-nav {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy) !important;
  padding: .55rem 1.4rem; border-radius: 8px;
  font-weight: 600 !important; font-size: .88rem !important;
  transition: transform .2s, box-shadow .2s !important;
}
.btn-nav::after { display: none !important; }
.btn-nav:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,148,58,.4) !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: .3s; }

/* ── HERO ── */
#inicio {
  min-height: 100vh;
  background: linear-gradient(135deg, #0a1628 0%, #1a3a6e 50%, #0d2041 100%);
  display: flex; align-items: center;
  position: relative; overflow: hidden; padding-top: 72px;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(201,148,58,.12) 0%, transparent 60%),
    radial-gradient(ellipse at 10% 80%, rgba(26,58,110,.6) 0%, transparent 50%);
}
.hero-pattern {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(201,148,58,.04) 0, rgba(201,148,58,.04) 1px, transparent 0, transparent 50%);
  background-size: 30px 30px;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto; padding: 5rem 5%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201,148,58,.15); border: 1px solid rgba(201,148,58,.3);
  border-radius: 100px; padding: .4rem 1rem;
  font-size: .8rem; color: var(--gold-light);
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.5rem;
  animation: fadeUp .7s ease both;
}
.hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: var(--white); line-height: 1.15; margin-bottom: 1.5rem;
  animation: fadeUp .7s .15s ease both;
}
.hero-title span { color: var(--gold); }
.hero-sub {
  font-size: 1.1rem; color: rgba(255,255,255,.7);
  line-height: 1.7; margin-bottom: 2.5rem;
  animation: fadeUp .7s .3s ease both;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; animation: fadeUp .7s .45s ease both; }
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy); padding: .9rem 2rem; border-radius: 10px;
  font-weight: 700; font-size: .95rem; text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(201,148,58,.45); }
.btn-secondary {
  background: rgba(255,255,255,.08); color: var(--white);
  padding: .9rem 2rem; border-radius: 10px;
  font-weight: 600; font-size: .95rem; text-decoration: none;
  border: 1px solid rgba(255,255,255,.2);
  transition: background .2s, transform .2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-secondary:hover { background: rgba(255,255,255,.15); transform: translateY(-3px); }
.hero-stats { display: flex; gap: 2rem; margin-top: 3rem; animation: fadeUp .7s .6s ease both; }
.stat { text-align: center; }
.stat-num { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--gold); font-weight: 700; }
.stat-label { font-size: .8rem; color: rgba(255,255,255,.6); margin-top: 2px; }
.hero-visual { position: relative; animation: fadeLeft .8s .2s ease both; }
.hero-card {
  background: rgba(255,255,255,.07); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.12); border-radius: 24px;
  padding: 2.5rem; position: relative; overflow: hidden;
}
.hero-card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 1.8rem; }
.hero-card-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.hero-card-title { color: var(--white); font-family: 'Playfair Display', serif; font-size: 1.15rem; }
.hero-card-sub { color: rgba(255,255,255,.5); font-size: .82rem; }
.coverage-list { list-style: none; }
.coverage-list li {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,.8); font-size: .9rem;
  padding: .6rem 0; border-bottom: 1px solid rgba(255,255,255,.07);
}
.coverage-list li:last-child { border-bottom: none; }
.coverage-list li::before { content: '✓'; color: var(--gold); font-weight: 700; }
.hero-float {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--gold); border-radius: 50%;
  width: 80px; height: 80px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; box-shadow: 0 12px 40px rgba(201,148,58,.5);
  animation: pulse 3s infinite;
}

/* ── SECTIONS SHARED ── */
section { padding: 6rem 5%; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-tag {
  display: inline-block;
  background: rgba(201,148,58,.1); color: var(--gold);
  border: 1px solid rgba(201,148,58,.25); border-radius: 100px;
  padding: .3rem 1rem; font-size: .78rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem;
}
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.8rem); color: var(--navy); line-height: 1.2; margin-bottom: 1rem; }
.section-sub { color: var(--gray-mid); max-width: 560px; margin: 0 auto; font-size: 1rem; line-height: 1.7; }

/* ── SERVICES ── */
#servicios { background: var(--cream); }
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem; max-width: 1200px; margin: 0 auto;
}
.service-card {
  background: var(--white); border-radius: var(--radius);
  padding: 2rem; border: 1px solid rgba(10,22,40,.07);
  transition: transform .3s, box-shadow .3s;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin-bottom: 1.2rem;
}
.service-card h3 { font-size: 1.2rem; color: var(--navy); margin-bottom: .6rem; }
.service-card p { color: #666; font-size: .9rem; line-height: 1.6; margin-bottom: 1rem; }
.service-benefits { list-style: none; }
.service-benefits li { font-size: .82rem; color: #555; padding: .25rem 0; display: flex; gap: 8px; }
.service-benefits li::before { content: '→'; color: var(--gold); }

/* ── WHY US ── */
#nosotros { background: var(--navy); }
#nosotros .section-title { color: var(--white); }
#nosotros .section-sub { color: rgba(255,255,255,.6); }
.why-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem; max-width: 1100px; margin: 0 auto;
}
.why-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); padding: 2rem;
  transition: background .3s, transform .3s;
}
.why-card:hover { background: rgba(255,255,255,.1); transform: translateY(-4px); }
.why-num { font-family: 'Playfair Display', serif; font-size: 3rem; color: rgba(201,148,58,.2); line-height: 1; margin-bottom: .5rem; }
.why-card h3 { color: var(--gold-light); font-size: 1.1rem; margin-bottom: .6rem; }
.why-card p { color: rgba(255,255,255,.6); font-size: .9rem; line-height: 1.6; }

/* ── PROCESS ── */
#proceso { background: var(--white); }
.process-steps {
  display: flex; max-width: 1000px; margin: 0 auto; position: relative;
}
.process-steps::before {
  content: ''; position: absolute; top: 36px; left: 5%; right: 5%;
  height: 2px; background: linear-gradient(90deg, var(--gold), var(--gold-light)); z-index: 0;
}
.step { flex: 1; text-align: center; padding: 0 1rem; position: relative; z-index: 1; }
.step-num {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--gold);
  margin: 0 auto 1.2rem; border: 3px solid var(--gold);
  box-shadow: 0 0 0 6px var(--white);
}
.step h3 { font-size: 1rem; color: var(--navy); margin-bottom: .5rem; }
.step p { font-size: .85rem; color: var(--gray-mid); line-height: 1.5; }

/* ── TESTIMONIALS ── */
#testimonios { background: var(--cream); }
.testimonials-slider { position: relative; max-width: 900px; margin: 0 auto; overflow: hidden; }
.testimonials-track { display: flex; transition: transform .5s ease; }
.testimonial-slide { min-width: 100%; padding: 0 1rem; }
.testimonial-card {
  background: var(--white); border-radius: 20px; padding: 2.5rem;
  box-shadow: 0 10px 40px rgba(10,22,40,.08); text-align: center;
}
.stars { color: var(--gold); font-size: 1.2rem; margin-bottom: 1rem; }
.testimonial-text { font-size: 1.05rem; color: #555; line-height: 1.8; font-style: italic; margin-bottom: 1.5rem; }
.testimonial-author { display: flex; align-items: center; gap: 12px; justify-content: center; }
.author-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--gold));
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-weight: 700; font-size: 1.1rem;
}
.author-name { font-weight: 600; color: var(--navy); }
.author-role { font-size: .82rem; color: var(--gray-mid); }
.slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 2rem; }
.dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(10,22,40,.2); cursor: pointer; border: none;
  transition: background .3s, transform .3s;
}
.dot.active { background: var(--gold); transform: scale(1.3); }

/* ── QUOTE FORM ── */
#cotizar { background: var(--navy); }
#cotizar .section-title { color: var(--white); }
#cotizar .section-sub { color: rgba(255,255,255,.6); }
.form-wrapper {
  max-width: 700px; margin: 0 auto;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px; padding: 3rem;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: .5rem; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { color: rgba(255,255,255,.7); font-size: .85rem; font-weight: 500; }
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px; padding: .85rem 1rem;
  color: var(--white); font-family: 'DM Sans', sans-serif; font-size: .95rem;
  transition: border-color .25s, background .25s; outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); background: rgba(255,255,255,.12); }
.form-group select option { background: var(--navy); }
.form-group textarea { resize: vertical; min-height: 120px; }
.btn-submit {
  width: 100%; margin-top: 1.5rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy); padding: 1rem; border: none; border-radius: 10px;
  font-family: 'DM Sans', sans-serif; font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: transform .2s, box-shadow .2s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(201,148,58,.4); }
.form-note { text-align: center; margin-top: 1rem; color: rgba(255,255,255,.4); font-size: .82rem; }

/* ── CONTACT ── */
#contacto { background: var(--white); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; max-width: 1100px; margin: 0 auto; align-items: start;
}
.contact-info h3 { font-size: 1.6rem; color: var(--navy); margin-bottom: 1.5rem; }
.contact-items { display: flex; flex-direction: column; gap: 1.2rem; }
.contact-item { display: flex; align-items: flex-start; gap: 14px; }
.contact-item-icon {
  width: 46px; height: 46px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.contact-item-label { font-size: .78rem; color: var(--gray-mid); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.contact-item-value { font-size: .95rem; color: var(--text); margin-top: 2px; }
.contact-item-value a { color: var(--navy); text-decoration: none; }
.contact-item-value a:hover { color: var(--gold); }
.social-links { display: flex; gap: .8rem; margin-top: 2rem; }
.social-btn {
  width: 44px; height: 44px; background: var(--navy); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: 1.1rem; color: var(--white);
  transition: background .25s, transform .25s;
}
.social-btn:hover { background: var(--gold); transform: translateY(-3px); }
.contact-map {
  background: var(--navy); border-radius: 20px; overflow: hidden;
  min-height: 350px; display: flex; align-items: center; justify-content: center;
}
.map-placeholder { text-align: center; color: rgba(255,255,255,.5); padding: 2rem; }
.map-placeholder .map-icon { font-size: 3rem; margin-bottom: 1rem; }
.map-placeholder p { font-size: .9rem; line-height: 1.6; }

/* ── WHATSAPP FLOAT ── */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 60px; height: 60px; background: #25D366;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: 28px;
  box-shadow: 0 8px 30px rgba(37,211,102,.5);
  animation: pulse 2.5s infinite; transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.12); animation: none; }
.whatsapp-tooltip {
  position: absolute; right: 72px; top: 50%; transform: translateY(-50%);
  background: var(--navy); color: var(--white);
  padding: .4rem .8rem; border-radius: 8px; font-size: .8rem; white-space: nowrap;
  opacity: 0; transition: opacity .2s; pointer-events: none;
}
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; }

/* ── CHAT BOT ── */
.chat-float {
  position: fixed; bottom: 100px; right: 28px; z-index: 998;
  width: 54px; height: 54px; background: var(--navy);
  border: 2px solid var(--gold); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 22px;
  box-shadow: 0 6px 20px rgba(10,22,40,.3); transition: transform .2s, box-shadow .2s;
}
.chat-float:hover { transform: scale(1.1); box-shadow: 0 10px 30px rgba(10,22,40,.4); }
.chat-box {
  position: fixed; bottom: 170px; right: 28px; z-index: 997;
  width: 320px; background: var(--white); border-radius: 20px;
  box-shadow: 0 20px 60px rgba(10,22,40,.2);
  overflow: hidden; display: none; flex-direction: column; max-height: 420px;
}
.chat-box.open { display: flex; }
.chat-header {
  background: var(--navy); padding: 1rem 1.2rem;
  display: flex; align-items: center; gap: 10px;
}
.chat-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--gold);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.chat-header-info { flex: 1; }
.chat-header-name { color: var(--white); font-weight: 600; font-size: .9rem; }
.chat-header-status { color: #25D366; font-size: .75rem; }
.chat-close { color: rgba(255,255,255,.6); cursor: pointer; font-size: 1.2rem; background: none; border: none; }
.chat-messages { flex: 1; padding: 1rem; overflow-y: auto; display: flex; flex-direction: column; gap: .8rem; }
.chat-msg { max-width: 80%; padding: .6rem .9rem; border-radius: 12px; font-size: .85rem; line-height: 1.5; }
.chat-msg.bot { background: var(--gray-light); color: var(--text); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg.user { background: var(--navy); color: var(--white); align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-input-area { padding: .8rem; border-top: 1px solid #eee; display: flex; gap: 8px; }
.chat-input {
  flex: 1; padding: .6rem .9rem; border: 1px solid #ddd; border-radius: 20px;
  font-family: 'DM Sans', sans-serif; font-size: .85rem; outline: none; transition: border-color .2s;
}
.chat-input:focus { border-color: var(--gold); }
.chat-send {
  width: 36px; height: 36px; background: var(--navy); border: none; border-radius: 50%;
  color: var(--white); cursor: pointer; font-size: .9rem;
  display: flex; align-items: center; justify-content: center; transition: background .2s;
}
.chat-send:hover { background: var(--gold); color: var(--navy); }

/* ── FOOTER ── */
footer { background: #060e1a; color: rgba(255,255,255,.6); padding: 4rem 5% 2rem; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
}
.footer-brand p { font-size: .88rem; line-height: 1.7; margin-top: 1rem; max-width: 280px; }
.footer-col h4 { color: var(--white); font-size: .95rem; font-weight: 600; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.footer-col ul li a { color: rgba(255,255,255,.5); text-decoration: none; font-size: .85rem; transition: color .2s; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { font-size: .82rem; }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: rgba(255,255,255,.4); text-decoration: none; font-size: .8rem; transition: color .2s; }
.footer-legal a:hover { color: var(--gold); }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeLeft { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(201,148,58,.4); } 50% { box-shadow: 0 0 0 14px rgba(201,148,58,0); } }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { display: none; }
  nav.open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: fixed; top: 72px; left: 0; right: 0;
    background: var(--navy); padding: 1.5rem 5% 2rem; gap: 1.2rem; z-index: 999;
    border-top: 1px solid rgba(201,148,58,.2);
  }
  .hamburger { display: flex; }
  .hero-content { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .process-steps { flex-direction: column; align-items: center; gap: 2rem; }
  .process-steps::before { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
  .hero-stats { justify-content: center; }
  section { padding: 4rem 5%; }
}
