/* Almar Financial Spain – Tema claro, estilo corporativo europeo */

:root {
  --navy: #0f2744;
  --navy-light: #1a365d;
  --accent: #b8860b;
  --accent-light: #d4a84b;
  --text: #2d3748;
  --text-muted: #718096;
  --bg: #f5f6fa;
  --bg-white: #ffffff;
  --border: #e2e8f0;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 4px 20px rgba(15, 39, 68, 0.08);
  --shadow-hover: 0 12px 32px rgba(15, 39, 68, 0.12);
  --transition: 0.25s ease;
  font-size: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.theme-light {
  margin: 0;
  font-family: 'Source Sans 3', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
}

.page-shell {
  overflow-x: hidden;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

/* —— Navbar: fondo claro, texto oscuro —— */
.theme-light .navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.theme-light .navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.theme-light .brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-light .brand h1 {
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  margin: 0;
  font-weight: 700;
  color: var(--navy);
}

.theme-light .brand-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--accent-light);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.theme-light .brand .eyebrow {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.theme-light .nav-links {
  display: flex;
  gap: 1.75rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.theme-light .nav-links a {
  color: var(--text);
  position: relative;
  padding-bottom: 0.25rem;
  transition: color var(--transition);
}

.theme-light .nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition);
}

.theme-light .nav-links a:hover {
  color: var(--navy);
}

.theme-light .nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.theme-light .nav-cta {
  padding: 0.6rem 1.35rem;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--bg-white);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background var(--transition), transform var(--transition);
}

.theme-light .nav-cta:hover {
  background: var(--navy-light);
  transform: translateY(-1px);
}

.theme-light .hamburger {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0;
}

.theme-light .hamburger span {
  width: 18px;
  height: 2px;
  background: var(--navy);
  display: block;
  margin: 0 auto;
}

/* —— Hero: layout 60/40, izquierda texto, derecha panel navy —— */
.theme-light .hero {
  padding: 4rem 0 4.5rem;
  background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg) 100%);
}

.theme-light .hero .container {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: center;
}

.theme-light .hero-pill {
  display: inline-block;
  border-radius: var(--radius);
  padding: 0.35rem 0.9rem;
  background: rgba(15, 39, 68, 0.06);
  border: 1px solid rgba(15, 39, 68, 0.12);
  color: var(--navy);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.theme-light .hero h2 {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
  color: var(--navy);
  line-height: 1.25;
  font-weight: 700;
}

.theme-light .hero .lead {
  color: var(--text-muted);
  max-width: 520px;
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
}

.theme-light .hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.theme-light .btn {
  border-radius: var(--radius);
  padding: 0.8rem 1.6rem;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
  font-family: inherit;
}

.theme-light .btn.primary {
  background: var(--navy);
  color: var(--bg-white);
  box-shadow: var(--shadow);
}

.theme-light .btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.theme-light .btn.ghost {
  border: 2px solid var(--navy);
  color: var(--navy);
  background: transparent;
}

.theme-light .btn.ghost:hover {
  background: rgba(15, 39, 68, 0.06);
  transform: translateY(-2px);
}

.theme-light .btn.full {
  width: 100%;
}

/* Stats: fila horizontal con borde inferior */
.theme-light .hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.theme-light .hero .stat {
  padding: 0 1rem;
  border-radius: 0;
  background: transparent;
  border: none;
  text-align: center;
  border-right: 1px solid var(--border);
}

.theme-light .hero .stat:last-child {
  border-right: none;
}

.theme-light .hero .stat .label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.35rem;
}

.theme-light .hero .stat .value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy);
}

.theme-light .hero .stat .suffix {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Panel derecho: fondo navy, tarjeta clara */
.theme-light .hero-visual {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.theme-light .hero-accent-card {
  background: var(--bg-white);
  color: var(--navy);
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.theme-light .hero-accent-card .accent-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.theme-light .hero-accent-card strong {
  font-size: 1.2rem;
  font-family: 'Libre Baskerville', serif;
}

.theme-light .hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.theme-light .hero-tags span {
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Ocultar orbit/glow/ring si existieran en HTML antiguo */
.theme-light .orbit,
.theme-light .glow,
.theme-light .orbit-ring,
.theme-light .floating-card {
  display: none !important;
}

/* —— Secciones: fondo alternado —— */
.theme-light .section {
  padding: 4rem 0;
}

.theme-light .section:nth-child(even) {
  background: var(--bg-white);
}

.theme-light .section-header {
  text-align: left;
  margin-bottom: 2.5rem;
  max-width: 720px;
}

.theme-light .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.theme-light .section-header .eyebrow {
  display: block;
}

.theme-light .section-header h3 {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--navy);
  margin: 0 0 0.75rem 0;
  line-height: 1.3;
}

.theme-light .section-header p {
  color: var(--text-muted);
  margin: 0;
  font-size: 1.02rem;
}

/* Industries: grid 2+3, tarjetas con borde izquierdo acento */
.theme-light .industries .industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.theme-light .industry-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  min-height: 180px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: box-shadow var(--transition), border-color var(--transition);
}

.theme-light .industry-card:hover {
  box-shadow: var(--shadow);
  border-left-color: var(--navy);
}

.theme-light .industry-card.main {
  grid-column: span 3;
  background: linear-gradient(135deg, rgba(15, 39, 68, 0.03), rgba(184, 134, 11, 0.06));
  border-left-width: 4px;
  border-left-color: var(--navy);
}

.theme-light .industry-card .tag {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--navy);
  background: rgba(184, 134, 11, 0.15);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.theme-light .industry-card h4 {
  font-size: 1.05rem;
  color: var(--navy);
  margin: 0 0 0.5rem 0;
  font-weight: 700;
}

.theme-light .industry-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

/* Services: 2x2 grid, icono numérico en círculo navy */
.theme-light .services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.theme-light .service-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: box-shadow var(--transition), transform var(--transition);
}

.theme-light .service-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.theme-light .service-card.featured {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(184, 134, 11, 0.12);
}

.theme-light .icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--accent-light);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.theme-light .service-card h4 {
  font-size: 1.15rem;
  color: var(--navy);
  margin: 0 0 0.5rem 0;
  font-weight: 700;
}

.theme-light .service-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem 0;
  line-height: 1.55;
}

.theme-light .service-card ul {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding-left: 1.25rem;
  list-style: disc;
  margin: 0;
}

.theme-light .service-card li {
  margin-bottom: 0.25rem;
}

/* Compliance: una fila, badges en línea */
.theme-light .compliance-card {
  display: flex;
  gap: 2rem;
  padding: 2rem 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-white);
  align-items: center;
  flex-wrap: wrap;
}

.theme-light .badge-stack {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  flex-shrink: 0;
}

.theme-light .badge-stack span {
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.85rem;
  background: var(--bg);
  color: var(--navy);
}

.theme-light .compliance-card h3 {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.35rem;
  color: var(--navy);
  margin: 0 0 0.5rem 0;
}

.theme-light .compliance-card p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
}

/* About: dos columnas, timeline con números en círculo navy */
.theme-light .about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.theme-light .about-text .eyebrow {
  display: block;
  margin-bottom: 0.5rem;
}

.theme-light .about-text h3 {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  color: var(--navy);
  margin: 0 0 1rem 0;
  line-height: 1.35;
}

.theme-light .about-text p {
  color: var(--text-muted);
  margin: 0 0 1.5rem 0;
  font-size: 1rem;
  line-height: 1.65;
}

.theme-light .timeline {
  margin-top: 1.5rem;
  border-left: 3px solid var(--border);
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.theme-light .timeline-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.theme-light .timeline-item span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--accent-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.theme-light .timeline-item h4 {
  font-size: 1rem;
  color: var(--navy);
  margin: 0 0 0.25rem 0;
  font-weight: 700;
}

.theme-light .timeline-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.theme-light .about-panel {
  display: grid;
  gap: 1rem;
}

.theme-light .panel-card {
  padding: 1.35rem 1.25rem;
  background: var(--bg-white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.theme-light .panel-card h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin: 0 0 0.5rem 0;
  font-weight: 600;
}

.theme-light .panel-card p,
.theme-light .panel-card a {
  font-size: 0.95rem;
  color: var(--navy);
  margin: 0;
}

.theme-light .panel-card a:hover {
  color: var(--accent);
}

/* Contact: formulario con inputs claros */
.theme-light .contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

.theme-light .contact-info .eyebrow {
  display: block;
  margin-bottom: 0.5rem;
}

.theme-light .contact-info h3 {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.5rem;
  color: var(--navy);
  margin: 0 0 1.25rem 0;
}

.theme-light .info-card {
  padding: 1.25rem 1rem;
  border-radius: var(--radius);
  background: var(--bg-white);
  border: 1px solid var(--border);
  margin-top: 0.75rem;
}

.theme-light .info-card span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.4rem;
}

.theme-light .info-card p,
.theme-light .info-card a {
  font-size: 0.95rem;
  color: var(--navy);
  margin: 0;
}

.theme-light .info-card a:hover {
  color: var(--accent);
}

.theme-light .contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  background: var(--bg-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.theme-light .contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
}

.theme-light .contact-form input,
.theme-light .contact-form select,
.theme-light .contact-form textarea {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--transition);
}

.theme-light .contact-form input:focus,
.theme-light .contact-form select:focus,
.theme-light .contact-form textarea:focus {
  outline: none;
  border-color: var(--navy);
}

.theme-light .contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.theme-light .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.theme-light .checkbox {
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.theme-light .checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--navy);
}

/* CTA */
.theme-light .cta {
  text-align: center;
  padding: 3.5rem 0;
  background: var(--bg-white);
}

.theme-light .cta .eyebrow {
  display: block;
  margin-bottom: 0.5rem;
}

.theme-light .cta h3 {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.75rem;
  color: var(--navy);
  margin: 0 0 1.25rem 0;
}

/* Footer: navy, enlaces dorados */
.theme-light .footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0 1.5rem;
  margin-top: 0;
}

.theme-light .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}

.theme-light .footer .brand-icon {
  background: rgba(255, 255, 255, 0.15);
  color: var(--accent-light);
  margin-bottom: 0.75rem;
}

.theme-light .footer-grid > div:first-child p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.theme-light .footer h5 {
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--accent-light);
  font-weight: 600;
}

.theme-light .footer ul li {
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.theme-light .footer a {
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--transition);
}

.theme-light .footer a:hover {
  color: var(--accent-light);
}

.theme-light .footer-bottom {
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

.theme-light .disclaimer {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

/* Revealed animation (mantener compatibilidad con JS) */
.theme-light .revealed {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.theme-light .revealed.visible {
  opacity: 1;
  transform: translateY(0);
}

/* —— Responsive —— */
@media (max-width: 992px) {
  .theme-light .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    display: none;
  }

  .theme-light .nav-links.active {
    display: flex;
  }

  .theme-light .hamburger {
    display: flex;
  }

  .theme-light .nav-cta {
    display: none;
  }

  .theme-light .hero .container {
    grid-template-columns: 1fr;
  }

  .theme-light .hero-visual {
    min-height: 220px;
    order: -1;
  }

  .theme-light .industries .industry-grid {
    grid-template-columns: 1fr;
  }

  .theme-light .industry-card.main {
    grid-column: span 1;
  }

  .theme-light .services-grid {
    grid-template-columns: 1fr;
  }

  .theme-light .about-grid,
  .theme-light .contact-grid {
    grid-template-columns: 1fr;
  }

  .theme-light .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .theme-light .hero-stats {
    grid-template-columns: 1fr;
  }

  .theme-light .hero .stat {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 1rem;
  }

  .theme-light .hero .stat:last-child {
    border-bottom: none;
  }

  .theme-light .form-row {
    grid-template-columns: 1fr;
  }

  .theme-light .compliance-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .theme-light .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .theme-light .footer .brand-icon {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 480px) {
  .theme-light .brand-icon {
    width: 38px;
    height: 38px;
    font-size: 0.8rem;
  }

  .theme-light .hero-actions {
    flex-direction: column;
  }

  .theme-light .btn {
    width: 100%;
  }

  .theme-light .timeline {
    border-left: none;
    padding-left: 0;
  }
}
