/* ============================================================
   FinNova – Fintech España · Hoja de Estilos Principal 2026
   ============================================================ */

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; background: #f7f8fc; color: #1a1a2e; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; border-radius: 12px; }
a { text-decoration: none; color: inherit; transition: color .2s; }
ul { list-style: none; }

/* ---- CSS VARIABLES ---- */
:root {
  --navy: #0d1b3e;
  --blue: #1240ab;
  --cyan: #00b4d8;
  --accent: #e94560;
  --gold: #f4a426;
  --light: #f7f8fc;
  --white: #ffffff;
  --gray: #64748b;
  --border: #e2e8f0;
  --card-bg: #ffffff;
  --shadow: 0 4px 24px rgba(18,64,171,.10);
  --shadow-hover: 0 12px 40px rgba(18,64,171,.18);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: .28s ease;
}

/* ---- CONTAINER ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---- GRADIENT TEXT ---- */
.gradient-text {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ====================================================
   HEADER
   ==================================================== */
.header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(13,27,62,.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.logo { font-size: 1.45rem; font-weight: 800; color: var(--white); letter-spacing: -0.5px; display: flex; align-items: center; gap: 8px; }
.logo-icon { color: var(--cyan); font-size: 1.6rem; }

.nav { display: flex; gap: 2px; flex-wrap: wrap; }
.nav-link { padding: 7px 11px; border-radius: 7px; font-size: .82rem; font-weight: 500; color: rgba(255,255,255,.78); transition: all var(--transition); }
.nav-link:hover, .nav-link.active { background: rgba(0,180,216,.15); color: var(--cyan); }

.burger { display: none; background: none; border: none; color: var(--white); font-size: 1.5rem; cursor: pointer; padding: 8px; }

/* ====================================================
   HERO
   ==================================================== */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  background: linear-gradient(135deg, #0d1b3e 0%, #0f3460 55%, #1240ab 100%);
  overflow: hidden; padding: 100px 0 60px;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2300b4d8' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 2; max-width: 620px; }
.hero-badge { display: inline-block; background: rgba(0,180,216,.18); border: 1px solid rgba(0,180,216,.35); color: var(--cyan); padding: 6px 16px; border-radius: 50px; font-size: .82rem; font-weight: 600; margin-bottom: 22px; }
.hero-title { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 900; line-height: 1.12; color: var(--white); margin-bottom: 22px; }
.hero-sub { font-size: 1.12rem; color: rgba(255,255,255,.78); max-width: 520px; margin-bottom: 36px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 52px; }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 1.6rem; font-weight: 800; color: var(--white); }
.stat span { font-size: .8rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .5px; }
.hero-img-float {
  position: absolute; right: -30px; bottom: 0;
  width: clamp(320px, 42vw, 560px);
  border-radius: 0; opacity: .92;
}

/* ====================================================
   BUTTONS
   ==================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 10px;
  font-size: .95rem; font-weight: 700; cursor: pointer;
  border: 2px solid transparent; transition: all var(--transition);
}
.btn-primary { background: linear-gradient(135deg, var(--blue), var(--cyan)); color: var(--white); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,180,216,.35); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.4); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: var(--cyan); }
.btn-white { background: var(--white); color: var(--blue); }
.btn-white:hover { background: var(--cyan); color: var(--white); }
.btn-secondary { background: var(--light); color: var(--navy); border-color: var(--border); }
.btn-secondary:hover { background: var(--border); }
.btn-danger { background: linear-gradient(135deg, var(--accent), #c0392b); color: var(--white); }

/* ====================================================
   SECTIONS
   ==================================================== */
.section { padding: 96px 0; }
.section-dark { background: linear-gradient(135deg, #0d1b3e, #0f3460); color: var(--white); }
.section-dark p, .section-dark h2, .section-dark h3 { color: var(--white); }
.section-gray { background: #f0f4ff; }
.section-blue { background: linear-gradient(135deg, var(--blue), var(--cyan)); color: var(--white); }

.section-header { text-align: center; margin-bottom: 56px; }
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.7rem); font-weight: 800; margin-bottom: 14px; }
.section-sub { color: var(--gray); font-size: 1.05rem; max-width: 540px; margin: 0 auto; }

/* ====================================================
   GRIDS
   ==================================================== */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* ====================================================
   CARDS
   ==================================================== */
.card {
  background: var(--card-bg); border-radius: var(--radius);
  box-shadow: var(--shadow); transition: all var(--transition);
  overflow: hidden; border: 1px solid var(--border);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }

.card-feature { padding: 36px 28px; text-align: center; }
.card-icon { font-size: 2.4rem; margin-bottom: 16px; }
.card-feature h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; color: var(--navy); }
.card-feature p { color: var(--gray); font-size: .93rem; }

.card-service .card-img { width: 100%; height: 200px; object-fit: cover; border-radius: 0; }
.card-body { padding: 24px; }
.card-body h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; color: var(--navy); }
.card-body p { color: var(--gray); font-size: .92rem; margin-bottom: 16px; }
.link-arrow { color: var(--blue); font-weight: 600; font-size: .92rem; }
.link-arrow:hover { color: var(--cyan); }

.card-dark { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: var(--white); }
.card-dark h3, .card-dark p { color: var(--white); }
.card-dark p { color: rgba(255,255,255,.75); }

/* ====================================================
   TWO COLUMN LAYOUT
   ==================================================== */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }
.col-text { }
.col-text h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: 18px; line-height: 1.2; }
.col-text p { color: var(--gray); margin-bottom: 22px; font-size: 1rem; line-height: 1.7; }
.section-dark .col-text p { color: rgba(255,255,255,.78); }
.col-img { position: relative; }
.rounded-img { border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,.18); }

.tag-label { display: inline-block; background: rgba(0,180,216,.12); color: var(--cyan); padding: 5px 14px; border-radius: 50px; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.section-dark .tag-label { background: rgba(0,180,216,.25); }

.feature-list { margin: 18px 0 28px; display: flex; flex-direction: column; gap: 10px; }
.feature-list li { font-size: .95rem; color: var(--gray); }
.section-dark .feature-list li { color: rgba(255,255,255,.82); }

/* ====================================================
   TESTIMONIALS
   ==================================================== */
.testimonial-card {
  background: var(--white); padding: 32px; border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--border);
  transition: transform var(--transition);
}
.testimonial-card:hover { transform: translateY(-4px); }
.stars { color: var(--gold); font-size: 1.1rem; margin-bottom: 14px; }
.testimonial-card p { color: var(--gray); font-size: .94rem; line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.author { display: flex; align-items: center; gap: 12px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--cyan)); display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: .88rem; flex-shrink: 0; }
.author strong { display: block; font-size: .92rem; color: var(--navy); }
.author span { font-size: .8rem; color: var(--gray); }

/* ====================================================
   CTA SECTION
   ==================================================== */
.cta-section { background: linear-gradient(135deg, var(--blue), var(--cyan)); text-align: center; padding: 80px 0; }
.cta-inner h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); color: var(--white); font-weight: 800; margin-bottom: 14px; }
.cta-inner p { color: rgba(255,255,255,.85); font-size: 1.05rem; margin-bottom: 34px; }

/* ====================================================
   PRICING
   ==================================================== */
.pricing-card { padding: 36px 30px; text-align: center; position: relative; }
.pricing-card.featured { border-color: var(--cyan); background: linear-gradient(160deg, #0d1b3e, #0f3460); color: var(--white); }
.pricing-card.featured h3, .pricing-card.featured .price, .pricing-card.featured .price-period { color: var(--white); }
.pricing-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--accent), #c0392b); color: white; padding: 4px 18px; border-radius: 50px; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.pricing-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 16px; color: var(--navy); }
.price { font-size: 3rem; font-weight: 900; color: var(--blue); line-height: 1; }
.price-period { font-size: .88rem; color: var(--gray); margin-bottom: 24px; }
.pricing-features { text-align: left; margin-bottom: 28px; display: flex; flex-direction: column; gap: 10px; }
.pricing-features li { font-size: .9rem; color: var(--gray); display: flex; gap: 8px; align-items: flex-start; }
.pricing-card.featured .pricing-features li { color: rgba(255,255,255,.82); }
.check { color: #22c55e; font-weight: 700; }

/* ====================================================
   BLOG
   ==================================================== */
.blog-card .card-img { width: 100%; height: 190px; object-fit: cover; border-radius: 0; }
.blog-meta { font-size: .78rem; color: var(--gray); margin-bottom: 8px; }
.blog-tag { background: rgba(0,180,216,.1); color: var(--blue); padding: 3px 10px; border-radius: 4px; font-size: .75rem; font-weight: 600; }

/* ====================================================
   FAQ
   ==================================================== */
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; }
.faq-question { padding: 20px 24px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: var(--navy); transition: background var(--transition); }
.faq-question:hover { background: #f0f4ff; }
.faq-answer { padding: 0 24px 20px; color: var(--gray); font-size: .94rem; line-height: 1.7; display: none; }
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-question { color: var(--blue); }
.faq-toggle { font-size: 1.2rem; transition: transform var(--transition); }
.faq-item.open .faq-toggle { transform: rotate(45deg); }

/* ====================================================
   CONTACT FORM
   ==================================================== */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: .88rem; font-weight: 600; color: var(--navy); margin-bottom: 7px; }
.form-input, .form-textarea, .form-select {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: .95rem; color: var(--navy);
  background: var(--white); transition: border-color var(--transition);
  font-family: inherit;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none; border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,180,216,.12);
}
.form-textarea { resize: vertical; min-height: 120px; }

/* ====================================================
   TABLE
   ==================================================== */
.data-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.data-table th { background: #f0f4ff; color: var(--navy); font-weight: 700; padding: 14px 18px; text-align: left; border-bottom: 2px solid var(--border); }
.data-table td { padding: 13px 18px; border-bottom: 1px solid var(--border); color: var(--gray); }
.data-table tr:hover td { background: #f8faff; }
.badge-green { background: #dcfce7; color: #166534; padding: 3px 10px; border-radius: 50px; font-size: .78rem; font-weight: 600; }
.badge-blue { background: #dbeafe; color: #1d4ed8; padding: 3px 10px; border-radius: 50px; font-size: .78rem; font-weight: 600; }
.badge-red { background: #fee2e2; color: #dc2626; padding: 3px 10px; border-radius: 50px; font-size: .78rem; font-weight: 600; }

/* ====================================================
   STATS BAR
   ==================================================== */
.stats-bar { background: var(--navy); padding: 48px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-item strong { display: block; font-size: 2.2rem; font-weight: 900; color: var(--white); margin-bottom: 6px; }
.stat-item span { font-size: .85rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .5px; }
.stat-item .stat-icon { font-size: 1.8rem; margin-bottom: 8px; }

/* ====================================================
   PAGE HERO (inner pages)
   ==================================================== */
.page-hero {
  background: linear-gradient(135deg, #0d1b3e 0%, #0f3460 100%);
  padding: 80px 0 60px; text-align: center; color: var(--white);
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 60px; background: var(--light);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.page-hero.gray-bg::after { background: var(--light); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; margin-bottom: 14px; }
.page-hero p { font-size: 1.08rem; color: rgba(255,255,255,.8); max-width: 560px; margin: 0 auto; }
.breadcrumb { display: flex; justify-content: center; gap: 8px; font-size: .84rem; color: rgba(255,255,255,.55); margin-bottom: 20px; }
.breadcrumb a { color: var(--cyan); }

/* ====================================================
   TEAM CARD
   ==================================================== */
.team-card { text-align: center; padding: 32px 20px; }
.team-avatar { width: 90px; height: 90px; border-radius: 50%; margin: 0 auto 16px; background: linear-gradient(135deg, var(--blue), var(--cyan)); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: white; font-weight: 700; }
.team-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 5px; }
.team-card .role { font-size: .85rem; color: var(--cyan); font-weight: 600; margin-bottom: 10px; }
.team-card p { font-size: .88rem; color: var(--gray); }

/* ====================================================
   PROGRESS BAR
   ==================================================== */
.progress-wrap { margin-bottom: 18px; }
.progress-label { display: flex; justify-content: space-between; font-size: .88rem; font-weight: 600; color: var(--navy); margin-bottom: 7px; }
.progress-bar { height: 8px; background: var(--border); border-radius: 50px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 50px; background: linear-gradient(90deg, var(--blue), var(--cyan)); }

/* ====================================================
   ICON BOXES
   ==================================================== */
.icon-box { display: flex; gap: 18px; align-items: flex-start; padding: 24px; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--border); transition: all var(--transition); }
.icon-box:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.icon-box-icon { width: 52px; height: 52px; border-radius: 12px; background: linear-gradient(135deg, var(--blue), var(--cyan)); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }
.icon-box-text h4 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.icon-box-text p { font-size: .88rem; color: var(--gray); line-height: 1.6; }

/* ====================================================
   FOOTER
   ==================================================== */
.footer { background: #070f24; color: rgba(255,255,255,.7); padding: 72px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand .logo { color: var(--white); margin-bottom: 14px; }
.footer-brand p { font-size: .9rem; line-height: 1.7; max-width: 280px; }
.social-links { display: flex; gap: 10px; margin-top: 20px; }
.social-btn { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700; color: rgba(255,255,255,.7); transition: all var(--transition); }
.social-btn:hover { background: var(--cyan); color: var(--white); border-color: var(--cyan); }
.footer-col h4 { color: var(--white); font-size: .95rem; font-weight: 700; margin-bottom: 18px; }
.footer-col a { display: block; font-size: .88rem; color: rgba(255,255,255,.6); margin-bottom: 10px; transition: color var(--transition); }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 24px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.footer-bottom p { font-size: .84rem; }
.footer-badges { display: flex; gap: 10px; }
.badge { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); padding: 5px 13px; border-radius: 50px; font-size: .78rem; color: rgba(255,255,255,.7); }

/* ====================================================
   UTILITY
   ==================================================== */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }
.pt-0 { padding-top: 0 !important; }
.gap-16 { gap: 16px; }
.alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: .92rem; margin-bottom: 16px; }
.alert-info { background: #dbeafe; color: #1d4ed8; border: 1px solid #bfdbfe; }
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }

/* ====================================================
   RESPONSIVE
   ==================================================== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-img-float { width: 35vw; opacity: .7; }
}
@media (max-width: 768px) {
  .nav { display: none; flex-direction: column; position: absolute; top: 66px; left: 0; right: 0; background: #0d1b3e; padding: 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav.open { display: flex; }
  .burger { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 36px; }
  .two-col.reverse { direction: ltr; }
  .hero { min-height: auto; padding: 80px 0 40px; }
  .hero-img-float { display: none; }
  .hero-stats { gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
  .btn { justify-content: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
