/* ══════════════════════════════════════════
   CORISA – Corporación Oriental, S.A.
   Stylesheet
══════════════════════════════════════════ */

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

:root {
  --navy:       #0d2151;
  --navy-mid:   #14306b;
  --blue:       #0ea5e9;
  --blue-mid:   #1d6fa8;
  --blue-light: #e0f2fe;
  --off-white:  #f0f7ff;
  --white:      #ffffff;
  --text:       #0d2151;
  --text-mid:   #4a6a9a;
  --text-light: #7a9abf;
  --success:    #16a34a;
  --radius:     12px;
  --shadow-sm:  0 2px 8px rgba(13,33,81,0.07);
  --shadow-md:  0 8px 24px rgba(13,33,81,0.12);
  --shadow-lg:  0 20px 48px rgba(13,33,81,0.16);
  --t:          0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── TYPOGRAPHY ── */
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.12; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; line-height: 1.18; }
h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.3; }

.accent {
  background: linear-gradient(90deg, var(--blue), var(--blue-mid));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── LAYOUT ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 5%; }
section { padding: 100px 0; }

.tag {
  display: inline-block;
  font-size: 0.73rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 1rem;
}
.tag-light { color: #60b8f0; }

.section-header { text-align: center; max-width: 580px; margin: 0 auto 4rem; }
.section-sub { color: var(--text-mid); font-size: 1.05rem; margin-top: 0.8rem; line-height: 1.7; }

/* ── SCROLL PROGRESS BAR ── */
.scroll-bar {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 2000;
  background: linear-gradient(90deg, var(--blue), var(--blue-mid));
  width: 0%;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: linear-gradient(135deg, var(--blue), var(--blue-mid));
  color: #fff; text-decoration: none;
  padding: 0.85rem 2rem; border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem;
  box-shadow: 0 4px 16px rgba(14,165,233,0.35);
  transition: transform var(--t), box-shadow var(--t);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(14,165,233,0.45); }

.btn-secondary {
  display: inline-flex; align-items: center;
  border: 2px solid rgba(13,33,81,0.18);
  color: var(--navy); text-decoration: none;
  padding: 0.85rem 2rem; border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem;
  background: rgba(255,255,255,0.6);
  transition: all var(--t);
}
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); background: rgba(14,165,233,0.06); }

/* ══════════════════════════════════════════
   NAVEGACIÓN
══════════════════════════════════════════ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 72px;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(13,33,81,0.07);
  transition: box-shadow var(--t);
}
#navbar.scrolled { box-shadow: var(--shadow-md); }

.nav-container {
  max-width: 1160px; margin: 0 auto; padding: 0 5%;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
}

.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.logo-img { height: 60px; width: auto; object-fit: contain; display: block; }

.nav-links {
  display: flex; list-style: none; gap: 2.5rem; align-items: center;
}
.nav-links a {
  color: var(--text-mid); text-decoration: none;
  font-size: 0.88rem; font-weight: 500;
  transition: color var(--t); position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0; right: 0;
  height: 2px; background: var(--blue); border-radius: 2px;
  transform: scaleX(0); transition: transform var(--t);
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); }
.nav-links a.active::after, .nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  background: var(--navy); color: #fff; text-decoration: none;
  padding: 0.5rem 1.3rem; border-radius: 8px;
  font-size: 0.85rem; font-weight: 600; flex-shrink: 0;
  transition: background var(--t);
}
.nav-cta:hover { background: var(--blue-mid); }

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

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  min-height: 100vh; padding-top: 72px;
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, #ffffff 0%, #e8f4ff 55%, #cde6ff 100%);
  display: flex; flex-direction: column;
}

.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 60% at 75% 40%, rgba(14,165,233,0.13) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 15% 80%, rgba(13,33,81,0.05) 0%, transparent 70%);
}

.hero-container {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding-top: 4rem;
  padding-bottom: 2rem;
  position: relative; z-index: 1;
}

.hero-content { }
.hero-content h1 { color: var(--navy); margin-bottom: 1.2rem; }

.hero-sub {
  font-size: 1.08rem; color: var(--text-mid); max-width: 520px;
  margin-bottom: 2.5rem; line-height: 1.8;
}

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

/* Financial card mockup */
.hero-visual {
  display: flex; flex-direction: column; gap: 1rem;
  align-items: flex-end; position: relative;
}

/* Process card */
.process-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(13,33,81,0.06);
  padding: 1.8rem;
  width: 100%; max-width: 360px;
}

.fc-logo { height: 38px; width: auto; }

.pc-header {
  display: flex; align-items: center; gap: 0.8rem;
  margin-bottom: 1.6rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(13,33,81,0.07);
}
.pc-title {
  font-size: 0.82rem; font-weight: 700;
  color: var(--navy); letter-spacing: 0.01em;
}

.pc-steps { display: flex; flex-direction: column; gap: 0; }

.pc-step {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 0.65rem 0.5rem; border-radius: 10px;
  transition: background var(--t);
}
.pc-step--active { background: rgba(14,165,233,0.05); }

.pc-icon {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.pc-icon svg { width: 16px; height: 16px; }
.pc-icon--blue { background: rgba(14,165,233,0.12); color: var(--blue); }
.pc-icon--green { background: #dcfce7; color: #166534; }
.pc-icon--gray { background: rgba(13,33,81,0.05); color: var(--text-light); }

.pc-step-info { flex: 1; }
.pc-step-num {
  font-size: 0.62rem; font-weight: 700;
  color: var(--text-light); letter-spacing: 0.1em; line-height: 1;
}
.pc-step-name {
  font-size: 0.88rem; font-weight: 700; color: var(--navy);
  margin: 0.1rem 0;
}
.pc-step--pending .pc-step-name { color: var(--text-light); }
.pc-step-desc { font-size: 0.73rem; color: var(--text-light); line-height: 1.3; }

.pc-check {
  font-size: 0.82rem; font-weight: 700; flex-shrink: 0; width: 20px; text-align: center;
}
.pc-check--done { color: #16a34a; }
.pc-check--active { color: var(--blue); font-size: 0.6rem; }
.pc-check--pending { color: rgba(13,33,81,0.2); }

.pc-connector {
  width: 2px; height: 14px;
  background: rgba(13,33,81,0.08);
  margin: 0 0 0 22px; border-radius: 2px;
}

.pc-footer {
  margin-top: 1.4rem; padding-top: 1.2rem;
  border-top: 1px solid rgba(13,33,81,0.07);
}
.pc-cta {
  display: block; text-align: center;
  background: linear-gradient(135deg, var(--blue), var(--blue-mid));
  color: #fff; text-decoration: none;
  padding: 0.7rem 1rem; border-radius: 10px;
  font-size: 0.88rem; font-weight: 600;
  transition: opacity var(--t), transform var(--t);
}
.pc-cta:hover { opacity: 0.9; transform: translateY(-1px); }

.hero-badge-float {
  display: flex; align-items: center; gap: 0.6rem;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(13,33,81,0.1);
  border-radius: 30px; padding: 0.5rem 1rem;
  font-size: 0.78rem; color: var(--text-mid); font-weight: 500;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

/* Stats bar */
.hero-stats-bar {
  background: var(--navy);
  padding: 2rem 0;
  position: relative; z-index: 1;
}
.hero-stats {
  display: flex; align-items: center; gap: 0; flex-wrap: wrap;
  justify-content: space-around;
}
.stat-item { text-align: center; padding: 0.5rem 1.5rem; }
.stat-num { font-size: 2rem; font-weight: 800; color: #fff; line-height: 1; }
.stat-label { font-size: 0.73rem; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.3rem; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.12); }

/* ══════════════════════════════════════════
   SERVICIOS
══════════════════════════════════════════ */
.section-alt { background: var(--off-white); }

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

.service-card {
  background: var(--white);
  border: 1px solid rgba(13,33,81,0.07);
  border-radius: 16px; padding: 2rem;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-mid));
  opacity: 0; transition: opacity var(--t);
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(14,165,233,0.15); }
.service-card:hover::before { opacity: 1; }

.serv-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, rgba(14,165,233,0.1), rgba(29,111,168,0.06));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem; color: var(--blue);
}
.serv-icon svg { width: 22px; height: 22px; }

.service-card h3 { color: var(--navy); margin-bottom: 0.7rem; }
.service-card p { color: var(--text-mid); font-size: 0.88rem; line-height: 1.75; }

/* ══════════════════════════════════════════
   SOBRE NOSOTROS
══════════════════════════════════════════ */
.section-dark {
  background: var(--navy);
}

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

.about-text h2 { color: #fff; margin-bottom: 1.5rem; }
.about-text p { color: rgba(255,255,255,0.65); margin-bottom: 1.1rem; line-height: 1.8; font-size: 1rem; }

.highlight-box {
  background: rgba(14,165,233,0.08);
  border: 1px solid rgba(14,165,233,0.2);
  border-radius: 12px; padding: 1.4rem;
  margin-top: 1.5rem;
}
.highlight-box p { color: rgba(255,255,255,0.85) !important; margin: 0 !important; font-size: 0.95rem !important; }
.highlight-box strong { color: #60b8f0; }

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

.value-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px; padding: 1.6rem;
  transition: all var(--t);
}
.value-card:hover { background: rgba(14,165,233,0.07); border-color: rgba(14,165,233,0.25); transform: translateY(-3px); }

.value-icon { font-size: 1.8rem; margin-bottom: 0.7rem; }
.value-card h4 { color: #fff; font-size: 0.95rem; margin-bottom: 0.4rem; }
.value-card p { color: rgba(255,255,255,0.5); font-size: 0.82rem; line-height: 1.6; }

/* ══════════════════════════════════════════
   CONTACTO
══════════════════════════════════════════ */
#contacto { background: var(--white); }

.contact-grid {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 5rem; align-items: start;
}

.contact-info h2 { color: var(--navy); margin-bottom: 1rem; }
.contact-info > p { color: var(--text-mid); margin-bottom: 2.5rem; line-height: 1.8; }

.contact-items { display: flex; flex-direction: column; gap: 1.3rem; }

.contact-item { display: flex; align-items: flex-start; gap: 1rem; }
.ci-icon {
  width: 46px; height: 46px; flex-shrink: 0;
  background: rgba(14,165,233,0.08);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.ci-label {
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-light); margin-bottom: 0.25rem;
}
.ci-value { color: var(--text); font-size: 0.93rem; line-height: 1.6; }
.ci-value a { color: var(--text); text-decoration: none; transition: color var(--t); }
.ci-value a:hover { color: var(--blue); }

/* Contact Form */
.contact-form-wrap {
  background: var(--white);
  border: 1px solid rgba(13,33,81,0.08);
  border-radius: 20px; padding: 2.5rem;
  box-shadow: var(--shadow-md);
}
.contact-form-wrap h3 { color: var(--navy); margin-bottom: 0.4rem; font-size: 1.3rem; }
.form-hint { font-size: 0.83rem; color: var(--text-light); margin-bottom: 2rem; }

.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--text-light); margin-bottom: 0.4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(13,33,81,0.025);
  border: 1.5px solid rgba(13,33,81,0.1);
  border-radius: 8px; padding: 0.75rem 1rem;
  font-family: inherit; font-size: 0.93rem; color: var(--text);
  transition: border-color var(--t), box-shadow var(--t);
  appearance: auto;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.1);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.submit-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--blue), var(--blue-mid));
  color: #fff; border: none; cursor: pointer;
  padding: 0.9rem; border-radius: 10px;
  font-family: inherit; font-size: 0.98rem; font-weight: 600;
  transition: opacity var(--t), transform var(--t), box-shadow var(--t);
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.submit-btn:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(14,165,233,0.38); }
.submit-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }

.form-success {
  display: none; text-align: center; padding: 2.5rem 1rem;
}
.form-success .success-icon { font-size: 3rem; margin-bottom: 1rem; display: block; }
.form-success h4 { color: var(--success); font-size: 1.2rem; margin-bottom: 0.6rem; }
.form-success p { color: var(--text-mid); font-size: 0.9rem; }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
footer {
  background: #071530;
  border-top: 3px solid var(--blue);
  padding: 4rem 0 2rem;
  color: #b0cce8;
}

.footer-inner { max-width: 1160px; margin: 0 auto; padding: 0 5%; }

.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 2rem;
}

.footer-brand img { height: 66px; width: auto; display: block; margin-bottom: 0.8rem; }
.footer-brand-name { font-size: 0.95rem; font-weight: 600; color: #fff; margin-bottom: 0.3rem; }
.footer-brand-tagline {
  font-size: 0.72rem; color: #3a6a8a;
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1rem;
}
.footer-brand p { font-size: 0.83rem; line-height: 1.7; color: #5a8aaa; }

.footer-col h4 {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #fff; margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col ul a { color: #6a8aaa; text-decoration: none; font-size: 0.85rem; transition: color var(--t); }
.footer-col ul a:hover { color: var(--blue); }

.footer-contact-item {
  display: flex; align-items: flex-start; gap: 0.6rem;
  margin-bottom: 0.7rem; font-size: 0.83rem;
}
.footer-contact-item span:first-child { font-size: 0.9rem; flex-shrink: 0; margin-top: 1px; }
.footer-contact-item a { color: #6a8aaa; text-decoration: none; transition: color var(--t); }
.footer-contact-item a:hover { color: var(--blue); }
.footer-contact-item span:last-child { color: #6a8aaa; line-height: 1.5; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.8rem;
  font-size: 0.78rem; color: #3a5a7a;
}
.footer-legal-links { display: flex; gap: 1.5rem; }
.footer-legal-links a { color: #3a5a7a; text-decoration: none; transition: color var(--t); }
.footer-legal-links a:hover { color: var(--blue); }

/* ══════════════════════════════════════════
   SCROLL ANIMATIONS
══════════════════════════════════════════ */
.fade-in {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .hero-container { grid-template-columns: 1fr; gap: 2rem; }
  .hero-visual { align-items: center; }
  .fin-card { max-width: 380px; }
}

@media (max-width: 860px) {
  .nav-links {
    display: none; flex-direction: column;
    position: fixed; top: 72px; left: 0; right: 0;
    background: #fff; padding: 1.5rem 5% 2rem;
    border-bottom: 1px solid rgba(13,33,81,0.1);
    gap: 0;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid rgba(13,33,81,0.06); }
  .nav-links a { display: block; padding: 0.8rem 0; font-size: 1rem; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }

  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }

  section { padding: 72px 0; }
}

@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-stats { justify-content: center; }
  .stat-divider { display: none; }
  .fin-card { max-width: 100%; }
}
