/* =========================
   RESET + BASE
========================= */

* {
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

html, body {
  width: 100%;
  overflow-x: hidden; /* ✅ evita la franja negra derecha */
}

body {
  margin: 0;
  color: #1a1a1a;
}

/* =========================
   HERO (antiguo, opcional)
========================= */

.hero {
  background: linear-gradient(135deg, #D4AF37, #1e3a5f);
  color: white;
  padding: 100px 20px;
  text-align: center;
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto 30px;
}

/* =========================
   BOTONES GENERALES
========================= */

.btn-primary {
  margin-top: 10px;
  padding: 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f5d77a, #d4af37, #b8962e);
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

/* =========================
   SECCIONES
========================= */

.section {
  padding: 80px 20px;
  text-align: center;
}

.section.dark {
  background: #f4f6f8;
}

/* =========================
   GRIDS + CARDS
========================= */

.grid-4, .grid-3 {
  display: grid;
  gap: 20px;
  margin-top: 40px;
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card, .step {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

/* =========================
   FORMULARIO
========================= */

.form {
  max-width: 520px;
  margin: 0 auto;
}

.form input,
.form select {
  width: 100%;
  padding: 16px 18px;
  font-size: 15px;
  border-radius: 8px;
  border: 1px solid #d8dde3;
  background: #ffffff;
  color: #08192d;
  transition: all 0.25s ease;
  outline: none;
  margin-top: 10px;
}

/* Placeholder */
.form input::placeholder {
  color: #9aa4b2;
}

/* Focus */
.form input:focus,
.form select:focus {
  border-color: #d4af37;
  box-shadow: 0 0 0 3px rgba(212,175,55,0.15);
}

/* Select flecha personalizada */
.form select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%239aa4b2' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 18px;
  padding-right: 48px;
}

/* Checkbox */
.form .rgpd {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #4a5568;
}

.form .rgpd input {
  width: 18px;
  height: 18px;
  accent-color: #d4af37;
}

.rgpd {
  font-size: 14px;
  text-align: left;
}

/* Botón del form */
.form button {
  margin-top: 10px;
  padding: 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f5d77a, #d4af37, #b8962e);
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* =========================
   FOOTER
========================= */

footer {
  background:
    linear-gradient(110deg,
      rgba(10, 30, 45, 0.95) 0%,
      rgba(30, 55, 75, 0.85) 50%,
      rgba(30, 55, 75, 0.55) 100%
    );
  color: white;
  padding: 30px;
  text-align: center;
}

/* =========================
   HERO HEADER (el que usas)
========================= */

.hero-header {
  position: relative;
  min-height: 75vh;
  background:
    linear-gradient(110deg,
      rgba(10, 30, 45, 0.95) 0%,
      rgba(30, 55, 75, 0.85) 50%,
      rgba(30, 55, 75, 0.55) 100%
    ),
    url("banner.jpg") center/cover no-repeat;
  color: #fff;
}

/* =========================
   NAVBAR
========================= */

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 25px 60px;
  width: 100%;
}

/* ✅ Logo corregido (nada de 250px fijo) */
.logo {
  font-weight: 700;
  font-size: 20px;
}

.logo img {
  height: 90px;
  width: auto;
  display: block;
  max-width: 100%;
}

/* Menú (si algún día lo usas) */
.menu {
  list-style: none;
  display: flex;
  gap: 30px;
}

.menu a {
  color: #fff;
  text-decoration: none;
  opacity: 0.85;
}

/* Botón nav */
.btn-nav {
  background: #D4AF37;
  color: #fff;
  padding: 12px 20px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.35);
  text-align: center;
}

/* =========================
   HERO CONTENT
========================= */

.hero-content {
  max-width: 700px;
  padding: 120px 60px;
  margin-left: 10%;
}

.badge {
  color: #D4AF37;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 20px;
}

.hero-content h1 {
  font-size: 52px;
  line-height: 1.15;
  margin-bottom: 25px;
}

.hero-content h1 span {
  background: #D4AF37;
  color: #fff;
  padding: 0 10px;
}

.hero-content p {
  font-size: 18px;
  opacity: 0.9;
  max-width: 600px;
  margin-bottom: 35px;
}

/* Botones del hero */
.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap; /* ✅ evita desbordes */
}

/* Botones */
.btn-primary {
  background: #D4AF37;
  color: #fff;
  padding: 15px 30px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.35);
}

.btn-secondary {
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 6px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.35);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.25s ease;
}

/* =========================
   WHY US
========================= */

.why-us {
  padding: 120px 20px;
  background: #f7f9f7;
}

.why-us-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* Imágenes */
.why-us-media {
  position: relative;
}

.image-main img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}

.image-secondary {
  position: absolute;
  bottom: -60px;
  right: -40px;
  width: 55%;
}

.image-secondary img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* Badge */
.badge-stats {
  position: absolute;
  top: -30px;
  left: -30px;
  background: #e6ff5a;
  padding: 18px 20px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.badge-stats strong {
  display: block;
  font-size: 24px;
  color: #08192d;
}

.badge-stats span {
  font-size: 13px;
  color: #08192d;
}

/* Texto */
.section-eyebrow {
  color: #D4AF37;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
}

.why-us-content h2 {
  font-size: 42px;
  margin: 15px 0 20px;
  color: #1f2a44;
}

.why-us-text {
  font-size: 16px;
  line-height: 1.7;
  color: #4a5568;
  max-width: 520px;
}

.why-us-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.why-us-list li {
  margin-bottom: 12px;
  font-size: 15px;
  color: #1f2a44;
}

/* Acciones (si usas CTA dentro) */
.why-us-actions {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 20px;
}

.contact-inline span {
  display: block;
  font-size: 13px;
  color: #6b7280;
}

.contact-inline a {
  color: #1f2a44;
  font-weight: 600;
  text-decoration: none;
}

/* =========================
   TOOLS
========================= */

.tools {
  padding: 120px 20px;
  background: #ffffff;
}

.tools-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.tools h2 {
  font-size: 42px;
  color: #1f2a44;
  margin-bottom: 10px;
}

.tools-subtitle {
  font-size: 16px;
  color: #6b7280;
  margin-bottom: 60px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.tool-card {
  position: relative;
  padding: 35px 30px 40px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  text-align: left;
  transition: all 0.3s ease;
  background: #f9faf8;
}

.tool-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 60px rgba(0,0,0,0.12);
}

.tool-icon {
  font-size: 32px;
  color: #2e5e1a;
  margin-bottom: 20px;
}

.tool-number {
  position: absolute;
  top: 25px;
  right: 25px;
  font-size: 48px;
  font-weight: 700;
  color: rgba(0,0,0,0.08);
}

.tool-card h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #1f2a44;
}

.tool-card p {
  font-size: 15px;
  line-height: 1.6;
  color: #4b5563;
  margin-bottom: 25px;
}

.tool-link {
  font-weight: 600;
  color: #2e5e1a;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tool-link:hover {
  text-decoration: underline;
}

/* =========================
   EURIBOR BOX (si lo usas)
========================= */

.euribor-box {
  max-width: 320px;
  padding: 30px;
  background: #f7f9f7;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.euribor-box h4 {
  font-size: 20px;
  color: #1f2a44;
  margin-bottom: 15px;
}

.euribor-value {
  font-size: 42px;
  font-weight: 700;
  color: #2e5e1a;
  margin-bottom: 10px;
}

.euribor-box p {
  font-size: 14px;
  color: #6b7280;
}

/* =========================
   ✅ RESPONSIVE MÓVIL
========================= */

@media (max-width: 768px) {

  .hero-header {
    min-height: auto;
    padding: 60px 16px 50px;
    background-position: center right;
  }

  /* ✅ Navbar se adapta */
  .navbar {
    padding: 15px 20px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
  }

  .logo img {
    height: auto;
    max-width: 180px;
    width: 100%;
  }

  .btn-nav {
    width: 100%;
    max-width: 220px;
  }

  /* ✅ Hero content sin margen lateral */
  .hero-content {
    max-width: 100%;
    margin-left: 0;
    padding: 40px 0 0;
    text-align: left;
  }

  .hero-content h1 {
    font-size: 34px;
    line-height: 1.25;
  }

  .hero-content p {
    font-size: 15px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }

  /* ✅ Why-us en 1 columna */
  .why-us-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .why-us-content h2 {
    font-size: 30px;
  }

  .tools h2 {
    font-size: 30px;
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px){

  .why-us-container{
    grid-template-columns: 1fr; /* ✅ una sola columna */
    gap: 30px;
  }

  .why-us-media{
    width: 100%;
  }

  .image-main img{
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
  }
}