
/* section3.css */

/* ===================== SECTION 3 ===================== */

:root{
    --yellow-btn: #a9f52b;
}
section.s3 {
  width: 100%;
  height: 100%;
  
  background-size: cover;
  background-position: center;
  padding: 60px 0 80px;
}

.s3-inner {
  width: 87%;
  max-width: 1300px;
  margin: 0 auto;
}

/* ── Header: texto izquierda, sin persona por ahora ── */
.s3-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 50px;
  position: relative;
  max-width: 100%;
  max-height: 20%;
}

.s3-header-text {
  flex: 1;
  max-width: 100%;
}

/* ── Título grande ── */
.s3-header-text h2 {
  
  font-size: clamp(36px, 4.5vw, 62px);
  font-weight: 600;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 16px;
}

.s3-header-text h2 span {
  color: #FFC900;            /* ← "Viaje al Mundial" en amarillo */
}

/* ── Párrafo ── */
.s3-header-text p {
    margin-top: 12%;
  font-size: clamp(40px, 1.6vw, 22px);
  font-weight: 400;
  color: rgba(255,255,255,.95);
  line-height: 1.4;
  margin: 0;
}



/* ── 4 loan cards ── */
.s3-loan-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 60px;
  margin-bottom: 50px;
 
  height: 150%;
}

.loan-card {
 background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  transition: transform .25s;
  position: relative;
  
}
.loan-card:hover { transform: translateY(-10px); }

.loan-card img {
  width: 100%;
  height: 260px;             /* ← alto fijo en px */
  object-fit: cover;
  object-position: center top;
  display: block;
}

.loan-card-body {
  padding: 14px 16px 16px;
  background: #ffffff;
}

.loan-card-body h4 {
  
  font-size: clamp(12px, 1vw, 15px);
  font-weight: 700;
  color: #003fb7;
  margin-bottom: 6px;
}

.loan-card-body a {
  
  font-size: clamp(11px, 0.9vw, 13px);
  color: #074ed3;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap .2s;
}
.loan-card-body a:hover { gap: 8px; }

.loan-card-body a svg {
  width: 14px;
  height: 14px;
  fill: #003fb7;
  flex-shrink: 0;
}

/* ── CTA botón centrado ── */
.s3-cta {
  text-align: center;
  margin-top: 8px;
}

.btn-yellow-calc {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var( --yellow-btn);
  color: #252323;
  
  font-weight: 700;
  font-size: clamp(14px, 1.2vw, 17px);
  padding: 16px 40px;
  border-radius: 10px;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.btn-yellow-calc:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(71, 224, 76, 0.5);
}
.btn-yellow-calc img {
  width: 32px;
  height: 32px;
  fill: #ffffff;
}




/* ── Responsive ── */
/* ── Responsive Section 3 ── */
@media (max-width: 1200px) {
  .s3-inner { width: 95%; }
  .s3-loan-cards { gap: 20px; }
  .s3-header-text h2 { font-size: 48px; }
}

@media (max-width: 1024px) {
  section.s3 { padding: 40px 0 60px; }
  .s3-header-text h2 { font-size: 38px; }
  .s3-header-text p  { font-size: 16px !important; margin-top: 12px; }
  .s3-loan-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .loan-card img { height: 200px; }
  section.s3 {
    bottom: 42%;
    width: 100%;
    height: 100%;
    
    background-size: cover;
    background-position: center;
    padding: 5px 0 80px;
}
}

@media (max-width: 768px) {
  .s3-inner { width: 90%; }
  .s3-header-text h2 { font-size: 30px; }
  .s3-loan-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .loan-card img { height: 160px; }
  .btn-yellow-calc {
    font-size: 14px;
    padding: 14px 24px;
  }
}

@media (max-width: 480px) {
  .s3-header-text h2 { font-size: 24px; }
  .s3-loan-cards { grid-template-columns: 1fr; }
  .loan-card img { height: 200px; }
  section.s3 { padding: 30px 0 50px; }
}