/* =========================================
   SPAIN INSURANCE — style.css
   Upload to: public_html/style.css
   ========================================= */

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

:root {
  --black:        #000000;
  --black-light:  #0a0a0a;
  --black-mid:    #111111;
  --black-soft:   #1a1a1a;
  --green:        #10b981;
  --green-bright: #34d399;
  --green-dark:   #059669;
  --green-glow:   rgba(16,185,129,0.12);
  --white:        #ffffff;
  --gray-100:     #f5f5f5;
  --gray-400:     #a3a3a3;
  --gray-600:     #525252;
  --gray-800:     #262626;
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 8px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--black);
  color: var(--gray-100);
  line-height: 1.6;
  letter-spacing: -0.02em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a  { text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 768px)  { .container { padding: 0 2rem; } }
@media (min-width: 1200px) { .container { padding: 0 3rem; } }

.green { color: var(--green); }

/* ---- SCROLL PROGRESS ---- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--green), var(--green-bright));
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ---- REVEAL ANIMATION ---- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- NAV ---- */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.3s var(--ease), border-color 0.3s;
}
#navbar.scrolled {
  background: rgba(0,0,0,0.95);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.03em;
}
.logo span { color: var(--green); }

.nav-links {
  display: none;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 768px) {
  .nav-links { display: flex; }
}
.nav-links a {
  color: var(--gray-400);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }

.nav-cta {
  display: none;
  background: var(--green);
  color: var(--black);
  padding: 0.625rem 1.25rem;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 0.875rem;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 0 24px var(--green-glow);
}
@media (min-width: 768px) { .nav-cta { display: inline-block; } }
.nav-cta:hover { background: var(--green-bright); transform: translateY(-1px); }

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}
@media (min-width: 768px) { .hamburger { display: none; } }

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.mobile-menu {
  display: none;
  background: rgba(0,0,0,0.97);
  border-top: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(16px);
}
.mobile-menu.open { display: block; }
.mobile-menu ul {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.mobile-menu a {
  color: var(--gray-400);
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--white); }
.mobile-cta {
  display: inline-block;
  background: var(--green) !important;
  color: var(--black) !important;
  padding: 0.75rem 1.5rem;
  border-radius: var(--r-md);
  font-weight: 700 !important;
  text-align: center;
  width: 100%;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem 1.25rem 4rem;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(16,185,129,0.28) 0%, transparent 70%);
  top: -160px; right: -160px;
  animation: float 18s ease-in-out infinite;
}
.orb-2 {
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(16,185,129,0.18) 0%, transparent 70%);
  bottom: -100px; left: -80px;
  animation: float 14s ease-in-out infinite reverse;
}
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-30px) scale(1.04); }
}

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

.badge {
  display: inline-block;
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.3);
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: var(--r-sm);
  margin-bottom: 1.5rem;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--gray-400);
  max-width: 560px;
  margin: 0 auto 2rem;
  font-weight: 400;
}

.hero-btns {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  align-items: center;
}
@media (min-width: 480px) {
  .hero-btns { flex-direction: row; justify-content: center; }
}

/* Floating cards — desktop only */
.float-cards { display: none; }

@media (min-width: 1024px) {
  .float-cards { display: block; }

  .float-card {
    position: absolute;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--r-lg);
    padding: 0.75rem 1rem;
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    white-space: nowrap;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--white);
    animation: bob 5s ease-in-out infinite;
    z-index: 2;
  }
  .fc-icon { font-size: 1.1rem; }
  .fc-label { font-size: 0.8rem; }

  .fc-1 { top: 22%; left: 4%;  animation-delay: 0s; }
  .fc-2 { top: 38%; right: 4%; animation-delay: -1.5s; }
  .fc-3 { bottom: 28%; left: 5%; animation-delay: -3s; }
  .fc-4 { top: 18%; right: 5%; animation-delay: -0.8s; }
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* ---- TRUST TICKER ---- */
.ticker-wrap {
  overflow: hidden;
  background: var(--black-soft);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 0.75rem 0;
  white-space: nowrap;
}
.ticker-track {
  display: inline-block;
  animation: ticker 40s linear infinite;
}
@media (max-width: 768px) {
  .ticker-track { animation-duration: 18s; }
}
.ticker-track span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0 1rem;
}
.ticker-track .dot { color: var(--green); padding: 0 0.25rem; }

@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---- STATS ---- */
.stats-section {
  padding: 3.5rem 0;
  background: var(--black-light);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: center;
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; gap: 2rem; }
}
.stat-card { padding: 1.5rem 1rem; }
.stat-number {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--green);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-label {
  font-size: 0.875rem;
  color: var(--gray-400);
  font-weight: 500;
}

/* ---- SECTION SHARED ---- */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.75rem;
}
.section-header h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 0.875rem;
}
.section-sub {
  font-size: 1rem;
  color: var(--gray-400);
  max-width: 560px;
  margin: 0 auto;
}

/* ---- BENEFITS ---- */
.benefits-section {
  padding: 5rem 0;
  background: var(--black);
}
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 600px)  { .benefits-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .benefits-grid { grid-template-columns: repeat(3, 1fr); } }

.benefit-card {
  background: var(--black-mid);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-lg);
  padding: 1.75rem 1.5rem;
  transition: border-color 0.3s, transform 0.3s;
}
.benefit-card:hover {
  border-color: rgba(16,185,129,0.3);
  transform: translateY(-3px);
}
.benefit-icon { font-size: 1.75rem; margin-bottom: 1rem; }
.benefit-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.benefit-card p { font-size: 0.9rem; color: var(--gray-400); line-height: 1.65; }

/* ---- SERVICES ---- */
.services-section {
  padding: 5rem 0;
  background: var(--black-light);
}
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px)  { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  background: var(--black-mid);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-lg);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, transform 0.3s;
}
.service-card:hover {
  border-color: rgba(16,185,129,0.3);
  transform: translateY(-3px);
}
.service-icon { font-size: 2rem; margin-bottom: 1rem; }
.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.625rem;
}
.service-card p {
  font-size: 0.9rem;
  color: var(--gray-400);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.service-list {
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}
.service-list li { font-size: 0.875rem; color: var(--gray-400); }
.service-list li span, .service-list li::before { color: var(--green); }

.service-cta {
  display: inline-block;
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s, letter-spacing 0.2s;
  margin-top: auto;
}
.service-cta:hover { color: var(--green-bright); letter-spacing: 0.01em; }

/* ---- HOW IT WORKS ---- */
.how-section {
  padding: 5rem 0;
  background: var(--black);
}
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  position: relative;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: start;
  }
}

.step-card { padding: 2rem; text-align: center; }
.step-num {
  font-size: 3rem;
  font-weight: 800;
  color: rgba(16,185,129,0.2);
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 0.75rem;
}
.step-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.625rem;
}
.step-card p { font-size: 0.9rem; color: var(--gray-400); line-height: 1.65; }

.step-divider {
  display: none;
  width: 1px;
  background: rgba(255,255,255,0.07);
  min-height: 120px;
  margin-top: 2.5rem;
}
@media (min-width: 768px) { .step-divider { display: block; } }

.how-cta { text-align: center; }

/* ---- TESTIMONIALS ---- */
.testimonials-section {
  padding: 5rem 0;
  background: var(--black-light);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px)  { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }

.testimonial-card {
  background: var(--black-mid);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.stars { color: var(--green); font-size: 1rem; letter-spacing: 0.1em; }
.testimonial-card p {
  font-size: 0.9rem;
  color: var(--gray-400);
  line-height: 1.7;
  flex: 1;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}
.author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.3);
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.testimonial-author strong {
  display: block;
  font-size: 0.875rem;
  color: var(--white);
}
.testimonial-author span {
  font-size: 0.78rem;
  color: var(--gray-400);
}
.reviews-link { text-align: center; }

/* ---- FOUNDER ---- */
.founder-section {
  padding: 5rem 0;
  background: var(--black);
}
.founder-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  background: var(--black-mid);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-lg);
  padding: 2.5rem;
  align-items: center;
}
@media (min-width: 768px) {
  .founder-card { grid-template-columns: 260px 1fr; }
}

.founder-photo-wrap {
  display: flex;
  justify-content: center;
}
.founder-photo {
  width: 180px; height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--green);
  box-shadow: 0 0 30px rgba(16,185,129,0.2);
}
@media (min-width: 768px) {
  .founder-photo { width: 220px; height: 220px; }
}

.founder-text .section-tag { margin-bottom: 0.5rem; }
.founder-text h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.founder-text p {
  font-size: 0.95rem;
  color: var(--gray-400);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.founder-btns { margin-top: 1.5rem; }

/* ---- BOTTOM CTA ---- */
.cta-section {
  padding: 5rem 0 6rem;
  background: var(--black-light);
}
.cta-box {
  text-align: center;
  background: var(--black-mid);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: var(--r-lg);
  padding: 3.5rem 2rem;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  top: -120px; left: 50%;
  transform: translateX(-50%);
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(16,185,129,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.cta-box h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1rem;
  position: relative;
}
.cta-box p {
  font-size: 1rem;
  color: var(--gray-400);
  margin-bottom: 2rem;
  position: relative;
}
.cta-note {
  font-size: 0.82rem !important;
  color: var(--gray-600) !important;
  margin-top: 1.25rem !important;
  margin-bottom: 0 !important;
  line-height: 1.7 !important;
}

/* ---- FOOTER ---- */
footer {
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 2rem 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.footer-logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.03em;
}
.footer-logo span { color: var(--green); }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--gray-400);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }
.footer-copy {
  font-size: 0.78rem;
  color: var(--gray-600);
}

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--green);
  color: var(--black);
  padding: 0.875rem 1.75rem;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 28px var(--green-glow);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--green-bright);
  transform: translateY(-2px);
  box-shadow: 0 0 44px rgba(16,185,129,0.25);
}
.btn-primary.btn-large {
  padding: 1.1rem 2.25rem;
  font-size: 1.05rem;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gray-100);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 0.875rem 1.75rem;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
  cursor: pointer;
  white-space: nowrap;
}
.btn-secondary:hover {
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
  transform: translateY(-1px);
}

/* ---- STICKY MOBILE CTA ---- */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 900;
  padding: 0.75rem 1rem;
  background: rgba(0,0,0,0.95);
  border-top: 1px solid rgba(16,185,129,0.2);
  backdrop-filter: blur(12px);
}
@media (max-width: 767px) {
  .sticky-cta { display: block; }
}
.sticky-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--green);
  color: var(--black);
  padding: 0.9rem;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: 1rem;
  width: 100%;
  transition: background 0.2s;
}
.sticky-cta a:hover { background: var(--green-bright); }

/* Bottom padding so sticky CTA doesn't cover content on mobile */
@media (max-width: 767px) {
  footer { padding-bottom: 5rem; }
}
