/* =========================================================
   4ever Corporation - Hoja de estilos principal
   Breakpoints: escritorio > 1024px | tablet 641-1024px | móvil <= 640px
   ========================================================= */

/* ---------- Variables ---------- */
:root {
  --navy: #0c3e65;
  --navy-light: #14466c;
  --yellow: #febe10;
  --gray-light: #f3f3f4;
  --sky: #bbd8e7;
  --page-bg: #e3e3e3;
  --white: #ffffff;
  --black: #000000;

  --font-body: "Raleway", Arial, Helvetica, sans-serif;
  --font-alt: "Poppins", Arial, Helvetica, sans-serif;
  --font-btn: "DM Sans", Arial, Helvetica, sans-serif;

  --radius: 10px;
  --heading-lh: 1.12;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--page-bg);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
}

h1, h2, h3, p, ul {
  margin: 0;
}

h1, h2, h3 {
  line-height: var(--heading-lh);
}

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

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

.only-mobile {
  display: none !important;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 40px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  line-height: 21px;
  text-transform: capitalize;
  transition: background-color .2s, color .2s;
}

.btn--yellow {
  background: var(--yellow);
  color: var(--black);
  letter-spacing: 1px;
}
.btn--yellow:hover,
.btn--yellow:focus {
  background: var(--white);
}

.btn--white {
  background: var(--white);
  color: var(--navy);
}
.btn--white:hover,
.btn--white:focus {
  background: #ededed;
  color: var(--black);
}

.btn--dm {
  font-family: var(--font-btn);
  letter-spacing: -0.01em;
}

.btn--navy {
  background: var(--navy);
  color: var(--yellow);
}
.btn--navy:hover,
.btn--navy:focus {
  background: #fcfdfe;
  color: var(--navy);
}

.btn--navy-white {
  background: var(--navy);
  color: var(--white);
}

.btn--small {
  padding: 11px 23px;
  font-family: var(--font-alt);
  font-size: 13px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: 0.6px;
}

.btn--location {
  background: var(--navy);
  color: var(--yellow);
  font-family: var(--font-alt);
  font-weight: 700;
  letter-spacing: 0.6px;
}

/* ---------- Listas con iconos ---------- */
.checklist {
  list-style: none;
  padding: 0;
  color: var(--white);
}

.checklist li {
  position: relative;
}

.checklist li::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* Flecha dentro de círculo blanco */
.checklist--arrow {
  font-size: 20px;
  line-height: 34px;
}
.checklist--arrow li {
  padding: 7px 0 7px 48px;
}
.checklist--arrow li:first-child {
  padding-top: 0;
}
.checklist--arrow li:first-child::before {
  top: 0;
}
.checklist--arrow li::before {
  content: "\f138"; /* chevron-circle-right */
  top: 7px;
  width: 34px;
  height: 34px;
  background: var(--white);
  color: var(--navy);
  font-size: 17.6px;
}

/* Punto (círculo sólido) */
.checklist--dot {
  font-size: 17px;
  line-height: 28.9px;
}
.checklist--dot li {
  padding: 3px 0 3px 40.8px;
}
.checklist--dot li::before {
  content: "\f111"; /* circle */
  top: 3px;
  width: 28.9px;
  height: 28.9px;
  color: var(--white);
  font-size: 15px;
}

.checklist--navy {
  color: var(--black);
  font-size: 18px;
  line-height: 30.6px;
}
.checklist--navy li {
  padding: 5px 0 5px 43.2px;
}
.checklist--navy li::before {
  top: 5px;
  width: 30.6px;
  height: 30.6px;
  color: var(--navy);
  font-size: 16px;
}

/* =========================================================
   CABECERA
   ========================================================= */
.site-header {
  position: relative;
  z-index: 2;
  background: var(--white);
  padding: 30px 32px;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  max-width: 1373px;
  margin: 0 auto;
}

.site-header__logo {
  position: relative;
  width: 20%;
  align-self: stretch;
}
.site-header__logo img {
  position: absolute;
  top: 4px;
  left: 5.5%;
  width: 200px;
  max-width: 200px;
}

.site-header__phones {
  width: 26.64%;
  text-align: center;
  font-family: var(--font-alt);
  color: var(--navy);
}

.phone {
  display: inline-flex;
  align-items: center;
  gap: 25px;
  font-weight: 600;
  letter-spacing: -0.4px;
  line-height: 1;
}
.phone--main {
  font-size: 40px;
}
.phone--alt {
  font-size: 30px;
  margin-top: 6px;
}
.phone .fa-phone-square-alt {
  font-size: 1em;
}
.phone--alt .fa-phone-square-alt {
  font-size: 30px;
}

.site-header__lang {
  font-family: var(--font-alt);
  font-size: 20px;
  font-weight: 400;
  line-height: var(--heading-lh);
  letter-spacing: 0.2px;
  color: var(--black);
  margin-top: 0;
}

.site-header__brand {
  width: 20%;
  text-align: center;
  font-family: var(--font-alt);
  letter-spacing: 0.2px;
  line-height: var(--heading-lh);
}
.site-header__brand-title {
  display: block;
  margin-top: 5px;
  color: var(--yellow);
  font-size: 35px;
  font-weight: 600;
}
.site-header__brand-url {
  display: block;
  color: var(--black);
  font-size: 20px;
  font-weight: 300;
}
.site-header__brand:hover .site-header__brand-url {
  color: var(--navy);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  background:
    linear-gradient(319deg, rgba(12, 62, 101, .41) 28%, rgba(12, 62, 101, .83) 60%),
    url("../images/4ever.webp") center top / cover no-repeat;
  padding: 100px 32px 75px;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "hours   ."
    "years   reviews";
  align-items: end;
  max-width: 1373px;
  margin: 0 auto;
  text-align: center;
}

.hero__hours {
  grid-area: hours;
  align-self: start;
  display: flex;
  flex-direction: column;
  margin: 25px 0 25px 9.6%;
  padding: 20px;
  background: var(--navy-light);
  border-radius: var(--radius);
  color: var(--white);
  line-height: var(--heading-lh);
  letter-spacing: 0.2px;
}
.hero__locations {
  margin-top: 5px;
  font-size: 40px;
  font-weight: 700;
}
.hero__schedule {
  margin: 10px 0;
  font-family: var(--font-alt);
  font-size: 30px;
  font-weight: 500;
}
.hero__schedule + .hero__schedule {
  margin: 5px 0 0;
}
.hero__years,
.hero__reviews {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__years {
  grid-area: years;
  margin: 0 0 20px 3.84%;
  color: var(--yellow);
  font-weight: 700;
  line-height: var(--heading-lh);
  letter-spacing: 0.2px;
}
.hero__years-number {
  margin-top: 5px;
  font-size: 75px;
}
.hero__years-text {
  margin: 5px 0;
  font-size: 50px;
}
.hero__years .btn {
  margin-top: 25px;
}

.hero__reviews {
  grid-area: reviews;
  margin-left: 3.84%;
}
.hero__motto {
  margin-bottom: 15px;
  color: var(--white);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.hero__stars {
  width: 200px;
  margin: 0 auto;
  border-radius: 8px;
}
.hero__reviews .btn {
  margin: 20px 0;
}

/* =========================================================
   CONTENIDO: servicios + barra lateral
   ========================================================= */
.content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
}

/* ---------- Servicios (columna azul) ---------- */
.services {
  background: var(--navy);
  padding: 50px 0 50px 200px;
  color: var(--white);
}
.services__title {
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 35px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.services__title:first-child {
  margin-top: 5px;
}
.services__insurance {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 500px;
  margin-bottom: 20px;
}
.services__subtitle {
  margin: 20px 0 10px;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

/* ---------- Perfil ---------- */
.profile {
  display: grid;
  grid-template-columns: 40% 60%;
  align-items: center;
  background: var(--gray-light);
}
.profile__photo {
  padding: 25px 0;
}
.profile__photo img {
  width: 250px;
  margin: 0 auto;
  border-radius: 8px;
}
.profile__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 25px 150px 25px 0;
  text-align: center;
  line-height: var(--heading-lh);
  letter-spacing: 0.3px;
}
.profile__name {
  margin: 5px 0;
  color: var(--navy);
  font-size: 34px;
  font-weight: 600;
}
.profile__role {
  font-size: 24px;
  font-weight: 400;
}
.profile__role--strong {
  margin: 5px 0;
  font-weight: 600;
}
.profile__phone {
  margin: 5px 0;
  color: var(--navy);
  font-family: var(--font-alt);
  font-size: 35px;
  font-weight: 600;
}
.profile__email {
  margin: 5px 0;
  color: var(--navy);
  font-family: var(--font-alt);
  font-size: 20px;
  font-weight: 400;
}

/* ---------- Seguro de vida ---------- */
.life {
  padding: 30px 150px 30px 50px;
  background: var(--white);
}
.life__title {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 35px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

/* ---------- Teléfono / Zoom / Formularios ---------- */
.remote {
  padding: 15px 0 10px;
  background: var(--gray-light);
  color: var(--navy);
  font-size: 25px;
  font-weight: 600;
  line-height: var(--heading-lh);
  letter-spacing: 0.3px;
  text-align: center;
}
.remote__modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 5px 0 15px;
}
.remote__modes p:last-child {
  padding-right: 150px;
}
.remote__forms {
  margin: 5px 0;
}

/* ---------- Oficina virtual / Partner ---------- */
.partner {
  margin: 20px 4.8%;
  padding: 0 10px;
  background: var(--navy);
  border-radius: var(--radius);
  color: var(--white);
  text-align: center;
  line-height: var(--heading-lh);
  letter-spacing: 0.2px;
}
.partner__title {
  padding-top: 15px;
  margin-bottom: 5px;
  font-size: 30px;
  font-weight: 700;
}
.partner__text {
  margin: 5px 0 15px;
  font-size: 25px;
  font-weight: 500;
}
.partner .btn {
  margin-bottom: 20px;
}

/* =========================================================
   PIE: UBICACIONES
   ========================================================= */
.locations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 35px 20px;
  background: var(--sky);
}
.location {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.location__line {
  margin: 5px 0;
  font-size: 20px;
  font-weight: 500;
  line-height: var(--heading-lh);
  letter-spacing: 0.5px;
}
.location .btn + .location__line {
  margin-top: 10px;
}

/* =========================================================
   TABLET (641px - 1024px)
   ========================================================= */
@media (max-width: 1024px) {

  /* Cabecera */
  .site-header {
    padding: 5px 32px;
  }
  .site-header__inner {
    justify-content: space-between;
    gap: 16px;
  }
  .site-header__logo {
    width: 126px;
    flex-shrink: 0;
  }
  .site-header__logo img {
    position: static;
    width: 126px;
  }
  .site-header__phones {
    width: auto;
  }
  .phone {
    gap: 15px;
  }
  .phone--main {
    font-size: 23px;
  }
  .phone--alt,
  .phone--alt .fa-phone-square-alt {
    font-size: 24px;
  }
  .site-header__lang {
    font-size: 15px;
    margin: 4px 0;
  }
  .site-header__brand {
    width: auto;
  }
  .site-header__brand-title {
    margin-top: 0;
    font-size: 20px;
  }
  .site-header__brand-url {
    font-size: 18px;
  }

  /* Hero: bloque único apilado */
  .hero {
    background-image:
      linear-gradient(319deg, rgba(12, 62, 101, .1) 28%, rgba(12, 62, 101, .83) 60%),
      url("../images/4ever.webp");
    padding: 20px 32px;
  }
  .hero__inner {
    grid-template-columns: 1fr;
    grid-template-areas: none;
    max-width: 805px;
  }
  .hero__inner > * {
    grid-area: auto;
    margin-left: 0;
  }
  .hero__reviews {
    order: 1;
    margin-bottom: 25px;
  }
  .hero__hours {
    order: 2;
    margin: 0;
    padding-bottom: 0;
    border-radius: var(--radius) var(--radius) 0 0;
  }
  .hero__years {
    order: 3;
    margin: 0;
    padding: 0 20px 20px;
    background: var(--navy-light);
    border-radius: 0 0 var(--radius) var(--radius);
  }
  .hero__locations   { font-size: 24.4px; }
  .hero__schedule    { font-size: 21.8px; margin: 10px 0 0; }
  .hero__years-number{ font-size: 46px; }
  .hero__years-text  { font-size: 28.7px; }
  .hero__motto       { font-size: 24px; }
  .hero__reviews .btn{ margin-bottom: 0; }

  /* Contenido */
  .services {
    padding: 20px 30px;
  }
  .services__title {
    font-size: 28.7px;
  }
  .services__subtitle {
    font-size: 24.4px;
  }
  .checklist--arrow {
    font-size: 18px;
    line-height: 30.6px;
  }
  .checklist--arrow li {
    padding: 6.3px 0 6.3px 43px;
  }
  .checklist--arrow li::before {
    top: 6.3px;
    width: 30.6px;
    height: 30.6px;
    font-size: 15.8px;
  }

  .sidebar {
    padding: 20px 10px 20px 10px;
    background: var(--gray-light);
  }
  .profile {
    grid-template-columns: 163px 1fr;
  }
  .profile__photo img {
    width: 163px;
  }
  .profile__info {
    padding: 25px 0;
  }
  .profile__name  { font-size: 21.8px; margin-top: 0; }
  .profile__role  { font-size: 20px; }
  .profile__phone { font-size: 24.4px; }

  .life {
    padding: 30px 0;
  }
  .life__title {
    font-size: 28.7px;
  }

  .remote {
    font-size: 24.4px;
  }
  .remote__modes {
    padding: 5px 0 15px;
  }
  .remote__modes p:last-child {
    padding-right: 0;
  }
  .remote__forms {
    font-size: 18px;
  }
  .partner {
    margin: 0 3%;
    padding-bottom: 15px;
  }
  .partner__title { font-size: 21.8px; }
  .partner__text  { font-size: 18px; margin-bottom: 15px; }
  .partner .btn   { margin-bottom: 0; }

  /* Pie */
  .locations {
    padding: 35px 32px;
    gap: 0 32px;
  }
  .location__line {
    font-size: 16px;
  }
}

/* =========================================================
   MÓVIL (<= 640px)
   ========================================================= */
@media (max-width: 640px) {

  .only-mobile {
    display: inline-flex !important;
  }
  .hero__contacts.only-mobile,
  .hero__register.only-mobile {
    display: block !important;
  }

  /* Cabecera */
  .site-header {
    padding: 5px 10px 5px 12px;
  }
  .site-header__inner {
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 0;
  }
  .site-header__logo {
    width: 118px;
  }
  .site-header__logo img {
    width: 118px;
  }
  /* Teléfonos ocupan el resto de la 1ª fila; TAX / LIFE bajan a la 2ª fila */
  .site-header__phones {
    flex: 0 0 calc(100% - 118px);
    min-width: 0;
  }
  .phone {
    gap: 12px;
    white-space: nowrap;
  }
  .phone--main {
    font-size: clamp(18px, 5.6vw, 23px);
  }
  .phone--alt,
  .phone--alt .fa-phone-square-alt {
    font-size: clamp(19px, 5.9vw, 24px);
  }
  .site-header__lang {
    font-size: clamp(10px, 3.3vw, 15px);
    white-space: nowrap;
  }
  .site-header__brand {
    width: 50%;
  }
  .site-header__brand-title {
    font-size: clamp(16px, 4.9vw, 20px);
    white-space: nowrap;
  }
  .site-header__brand-url {
    font-size: clamp(14px, 4.2vw, 20px);
    white-space: nowrap;
  }

  /* Hero */
  .hero {
    padding: 20px 15px;
  }
  .hero__contacts { order: 0; }
  .hero__reviews  { order: 1; margin-top: 15px; }
  .hero__register { order: 4; margin-top: 25px; }

  .hero__hours {
    padding: 10px 20px 0;
  }
  .hero__years {
    padding: 0 20px 10px;
  }
  .hero__locations   { font-size: 21px; margin-top: 5px; }
  .hero__schedule    { font-size: 18px; margin-top: 15px; }
  .hero__years-number{ font-size: 36px; margin-top: 15px; }
  .hero__years-text  { font-size: 25px; margin-top: 10px; }
  .hero__years .btn  { margin-top: 25px; margin-bottom: 10px; }
  .hero__motto       { font-size: 20px; }

  .hero__years .btn,
  .hero__reviews .btn {
    padding: 11px 23px;
    font-size: 13px;
    line-height: 16px;
  }
  .hero__reviews .btn {
    padding: 13px 29px;
    font-size: 14px;
    line-height: 17px;
  }

  /* Contenido apilado */
  .content {
    grid-template-columns: 1fr;
  }
  .services {
    padding: 20px;
  }
  .services__title {
    font-size: 28px;
  }
  .services__insurance {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 0;
  }
  .services__subtitle {
    font-size: 23px;
  }

  .sidebar {
    padding: 0;
    background: var(--white);
  }
  .profile {
    grid-template-columns: 1fr;
  }
  .profile__photo {
    padding: 20px 0 25px;
  }
  .profile__photo img {
    width: 250px;
  }
  .profile__info {
    padding: 0 10px 20px;
  }
  .profile__name  { font-size: 33px; }
  .profile__role  { font-size: 23px; }
  .profile__role--strong { font-size: 20px; margin: 4px 0; }
  .profile__phone { font-size: 30.6px; }
  .profile__info .btn {
    margin-top: 15px;
    padding: 13px 29px;
    font-size: 14px;
    font-weight: 500;
    line-height: 17px;
    letter-spacing: 0;
  }

  .life {
    padding: 20px 15px;
  }
  .life__title {
    font-size: 28px;
  }

  .remote {
    padding: 15px 0 0;
    font-size: 23px;
  }
  .remote__modes {
    padding: 20px 10px 25px;
  }
  .remote__forms {
    margin: 0;
    padding: 0 10px 10px;
    font-size: 18px;
  }

  .partner {
    margin: 0;
    padding: 15px;
    border-radius: 0;
  }
  .partner__title { font-size: 25.5px; padding-top: 12px; margin-bottom: 15px; }
  .partner__text  { margin-bottom: 20px; }
  .partner .btn   { margin-bottom: 15px; }

  /* Pie apilado */
  .locations {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 35px 32px 60px;
  }
}
