:root {
  --blue: #063da4;
  --blue-dark: #052e77;
  --green: #82d400;
  --ink: #15336d;
  --cream: #f1e6d8;
  --white: #ffffff;
  --shadow: 0 18px 44px rgba(40, 29, 15, 0.17);
}

/* Estilos generales */

* {
  box-sizing: border-box;
}

html {
  background-color: #ececec;
}

body {
  margin: 0;
  color: var(--blue);
  background-color: #ececec;
  font-family: "Roboto", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

/* Contenedor principal */

.mobile-landing {
  width: 100%;
  max-width: 480px;
  min-height: 100svh;
  margin: 0 auto;
  padding-bottom: 20px;
  overflow: hidden;
  background: linear-gradient(
    to bottom,
    #f2e7d9 0%,
    #f2e7d9 34%,
    #f7f5f0 56%
  );
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.12);
}

/* Encabezado */

.logo-header {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;
  background-color: var(--white);
  border-radius: 0 0 17px 17px;
  box-shadow: 0 7px 14px rgba(58, 48, 35, 0.18);
}

.logo-header img {
  display: block;
  width: min(50vw, 195px);
  max-height: 62px;
  height: auto;
  object-fit: contain;
}

/* Imagen principal */

.photo-hero {
  height: 340px;
  overflow: hidden;
  background-color: var(--cream);
}

.photo-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  filter: brightness(1.025) contrast(1.015) saturate(1.03);
}

/* Tarjeta principal */

.main-card {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: calc(100svh - 382px);
  margin: -68px 15px 0;
  padding: 25px 24px 28px;
  background-color: var(--white);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

h1,
h2 {
  font-family: "Roboto Condensed", sans-serif;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

/* Beneficios */

.benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin-top: 20px;
}

.benefit {
  min-width: 0;
  text-align: center;
}

.benefit-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto;
  color: #00308D;
  border: 1.8px solid #00308D;
  border-radius: 50%;
}

.benefit-icon img {
  display: block;
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.benefit p {
  margin: 9px -4px 0;
  color: var(--blue);
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.2;
}

/* Encabezados de sección */

.section-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 20px 0 12px;
}

.section-heading h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.section-heading > span {
  width: 26px;
  height: 1.5px;
  background-color: var(--blue);
}

.follow-heading {
  margin-top: 30px;
  margin-bottom: 18px;
}

/* Servicios */

.services {
  width: 93%;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.services li {
  position: relative;
  margin-bottom: 8px;
  padding-left: 21px;
  color: var(--blue);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.2;
}

.services li:last-child {
  margin-bottom: 0;
}

.services li::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 0;
  width: 8px;
  height: 8px;
  background-color: var(--green);
  border-radius: 50%;
}

/* Redes sociales */

.social-links {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  align-items: start;
}

.social-links a {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 0;
  text-align: center;
}

.social-logo {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  color: var(--white);
  border-radius: 16px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.14);
  transition: transform 0.2s ease;
}

.social-links a:active .social-logo {
  transform: scale(0.95);
}

.social-logo img {
  display: block;
  width: 33px;
  height: 33px;
  object-fit: contain;
}

.social-links small {
  color: var(--blue);
  font-size: 7.2px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Instagram */

.instagram {
  background: #0066FF;
}

.instagram img {
  width: 34px;
  height: 34px;
}

/* TikTok */

.tiktok {
  background-color: #0066FF;
}

/* Google Maps */

.googlemaps-social {
  background-color: #0066FF;
}

.tiktok img {
  width: 37px;
  height: 37px;
}

/* Facebook */

.facebook {
  background-color: #0066FF;
}

.facebook img {
  width: 32px;
  height: 32px;
}

/* LinkedIn */

.linkedin {
  background-color: #0066FF;
}

.linkedin img {
  width: 34px;
  height: 34px;
}

/* Google Maps */

.maps {
  background-color: #0066FF;
}

.maps img {
  width: 30px;
  height: 43px;
}

/* Botones inferiores */


.actions {
  display: grid;
  gap: 12px;
  margin-top: 27px;
}

.actions a {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  min-height: 52px;
  padding: 9px 16px;
  font-size: 10.8px;
  font-weight: 600;
  text-align: center;
  border-radius: 14px;
  width: 100%;
  max-width: 100%;
  position: relative;
}

.actions a > img {
  position: absolute;
  left: 25%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  object-fit: contain;
  pointer-events: none;
}

.actions a > span {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3px;
  text-align: center;
  line-height: 1.15;
  white-space: normal;
  width: 100%;
  position: relative;
  z-index: 1;
  margin-left: 25px;
}

.actions a > span strong {
  margin-left: 1px;
}

/* Página web */

.website {
  color: var(--white);
  background-color: #00308D;
  box-shadow: 0 7px 17px rgba(89, 156, 20, 0.2);
}

.googlemaps {
  color: #00308D;
  background-color: #91d53d;
  box-shadow: 0 7px 17px rgba(89, 156, 20, 0.2);
}

/* WhatsApp */

.whatsapp {
  color: #00308D;
  background-color: #99DF57;
  box-shadow: 0 7px 17px rgba(18, 159, 66, 0.28);
}

/* Teléfono */

.actions .phone {
  min-height: 44px;
  color: #5B5B5B;;
  background-color: var(--white);
  border: 1px solid #BFBFB9;
}

.actions .phone > img {
  width: 24px;
  height: 24px;
  padding: 3px;
}

/* Celulares pequeños */

@media (max-width: 390px) {
  .logo-header {
    height: 86px;
  }

  .logo-header img {
    width: 170px;
  }

  .photo-hero {
    height: 320px;
  }

  .main-card {
    min-height: calc(100svh - 361px);
    margin: -65px 10px 0;
    padding: 28px 14px 23px;
  }

  /* Beneficios */

  .benefit-icon {
    width: 46px;
    height: 46px;
  }

  .benefit-icon img {
    width: 22px;
    height: 22px;
  }

  .benefit p {
    font-size: 8.2px;
  }

  /* Encabezado de redes */

  .follow-heading {
    margin-top: 26px;
  }

  /* Redes sociales */

  .social-links {
    gap: 3px;
  }

  .social-logo {
    width: 47px;
    height: 47px;
    border-radius: 14px;
  }

  .social-links small {
    font-size: 7.6px;
  }

  /* Botones inferiores */

  .actions {
    gap: 9px;
    margin-top: 24px;
  }

  .actions a {
    gap: 10px;
    min-height: 47px;
    padding: 8px 12px;
    font-size: 10px;
  }

  .actions a > img {
    width: 24px;
    height: 24px;
  }

  .actions .phone {
    min-height: 42px;
  }

  .actions .phone > img {
    width: 24px;
    height: 24px;
    padding: 3px;
  }
}

/* Pantallas mayores */

@media (min-width: 481px) {
  body {
    padding: 24px 0;
  }

  .mobile-landing {
    border-radius: 6px;
  }
}

/* =========================================================
   Ajustes responsive conservadores
   Mantienen intacta la composición original de 480px.
   ========================================================= */

html,
body {
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
}

.mobile-landing {
  max-width: 480px;
}

.main-card,
.benefits,
.social-links,
.actions,
.actions a,
.actions a > span {
  min-width: 0;
}

/* Evita que los textos largos empujen las columnas en móviles estrechos. */
.benefit p,
.social-links small,
.actions a > span {
  overflow-wrap: anywhere;
}

/* Teléfonos de 360px y menores. */
@media (max-width: 360px) {
  .main-card {
    margin-left: 8px;
    margin-right: 8px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .benefits {
    gap: 3px;
  }

  .benefit-icon {
    width: 44px;
    height: 44px;
  }

  .benefit-icon img {
    width: 21px;
    height: 21px;
  }

  .benefit p {
    margin-left: -2px;
    margin-right: -2px;
    font-size: 7.8px;
  }

  .social-links {
    gap: 2px;
  }

  .social-logo {
    width: 44px;
    height: 44px;
    border-radius: 13px;
  }

  .social-logo img {
    transform: scale(0.9);
  }

  .social-links small {
    font-size: 7.2px;
  }

  .actions a {
    padding-left: 10px;
    padding-right: 10px;
    font-size: 9.6px;
  }
}

/* Teléfonos muy pequeños, por ejemplo 320px. */
@media (max-width: 335px) {
  .logo-header img {
    width: 158px;
  }

  .photo-hero {
    height: 300px;
  }

  .main-card {
    margin-top: -60px;
    padding-top: 25px;
  }

  .benefit-icon {
    width: 40px;
    height: 40px;
  }

  .benefit-icon img {
    width: 19px;
    height: 19px;
  }

  .benefit p {
    font-size: 7.2px;
  }

  .section-heading h2 {
    font-size: 19px;
  }

  .social-logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .social-links small {
    font-size: 6.7px;
  }

  .actions {
    gap: 8px;
  }

  .actions a {
    gap: 8px;
    padding-left: 8px;
    padding-right: 8px;
    font-size: 9px;
  }
}

/* En tablets y computadoras se conserva la tarjeta original centrada. */
@media (min-width: 481px) {
  body {
    padding-left: 16px;
    padding-right: 16px;
  }

  .mobile-landing {
    width: 100%;
    max-width: 480px;
  }
}

/* =========================================================
   TABLET + DESKTOP
   El móvil (0–767px) conserva exactamente la composición base.
   A partir de 768px el layout cambia de forma intencional.
   ========================================================= */

/* TABLETS: iPad, iPad Air, tablets Android y similares */
@media (min-width: 768px) and (max-width: 1023px) {
  body {
    padding: 20px 18px;
  }

  .mobile-landing {
    width: min(100%, 860px);
    max-width: 860px;
    min-height: auto;
    padding-bottom: 0;
    border-radius: 24px;
    overflow: hidden;
  }

  .logo-header {
    height: 106px;
    border-radius: 0 0 24px 24px;
  }

  .logo-header img {
    width: 205px;
    max-height: 66px;
  }

  .photo-hero {
    height: 390px;
  }

  .photo-hero img {
    object-position: center 58%;
  }

  .main-card {
    display: flex;
    flex-direction: column;
    min-height: 0;
    margin: -72px 24px 24px;
    padding: 28px 26px 28px;
    border-radius: 24px;
  }

  .benefits {
    gap: 12px;
    margin-top: 2px;
  }

  .benefit-icon {
    width: 52px;
    height: 52px;
  }

  .benefit-icon img {
    width: 24px;
    height: 24px;
  }

  .benefit p {
    margin-top: 8px;
    font-size: 9.2px;
  }

  .follow-heading {
    margin: 26px 0 14px;
  }

  .follow-heading h2 {
    font-size: 20px;
  }

  .follow-heading > span {
    width: 28px;
  }

  .social-links {
    gap: 10px;
    margin-top: 2px;
  }

  .social-logo {
    width: 50px;
    height: 50px;
    border-radius: 14px;
  }

  .social-links small {
    font-size: 7.4px;
  }

  .actions {
    gap: 10px;
    margin-top: 24px;
  }

  .actions a {
    min-height: 52px;
    font-size: 10.6px;
    border-radius: 14px;
  }

  .actions .phone {
    min-height: 44px;
  }
}

/* COMPUTADORAS: composición horizontal real, no móvil estirado */
@media (min-width: 1024px) {
  html,
  body {
    min-height: 100%;
  }

  body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 34px 28px;
  }

  .mobile-landing {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(410px, 0.85fr);
    grid-template-rows: 118px 1fr;
    width: min(100%, 1120px);
    max-width: 1120px;
    min-height: 0;
    padding-bottom: 0;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, #f3e8da 0%, #f7f4ed 100%);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.16);
  }

  .logo-header {
    grid-column: 1 / -1;
    grid-row: 1;
    height: 118px;
    border-radius: 0 0 24px 24px;
  }

  .logo-header img {
    width: 225px;
    max-height: 74px;
  }

  .photo-hero {
    grid-column: 1;
    grid-row: 2;
    height: 610px;
    align-self: stretch;
    border-radius: 0 28px 0 0;
  }

  .photo-hero img {
    object-position: center 55%;
  }

  .main-card {
    grid-column: 2;
    grid-row: 2;
    align-self: stretch;
    justify-content: flex-start;
    min-height: 0;
    margin: 28px;
    margin-left: 24px;
    padding: 34px 30px 30px;
    border-radius: 28px;
    gap: 0;
  }

  .benefits {
    gap: 10px;
  }

  .benefit-icon {
    width: 58px;
    height: 58px;
  }

  .benefit-icon img {
    width: 27px;
    height: 27px;
  }

  .benefit p {
    margin-top: 10px;
    font-size: 9.5px;
  }

  .follow-heading {
    margin-top: 48px;
    margin-bottom: 24px;
  }

  .follow-heading h2 {
    font-size: 23px;
  }

  .follow-heading > span {
    width: 32px;
  }

  .social-links {
    gap: 8px;
  }

  .social-logo {
    width: 54px;
    height: 54px;
  }

  .social-links small {
    font-size: 8px;
  }

  .actions {
    gap: 12px;
    margin-top: 48px;
  }

  .actions a {
    min-height: 54px;
    font-size: 11px;
  }

  .actions .phone {
    min-height: 48px;
  }
}

/* Pantallas de escritorio muy anchas */
@media (min-width: 1400px) {
  body {
    padding-top: 46px;
    padding-bottom: 46px;
  }

  .mobile-landing {
    max-width: 1180px;
    grid-template-columns: minmax(0, 1.18fr) minmax(430px, 0.82fr);
  }

  .photo-hero {
    height: 640px;
  }

  .main-card {
    margin: 32px;
    margin-left: 26px;
    padding: 38px 34px 34px;
  }
}

/* Correcciones finales solicitadas */

/* Los cinco perfiles ocupan cinco columnas iguales y quedan en una sola fila. */
.social-links {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

/* Sube el bloque superior de WhatsApp y llamadas. */
.main-card > .actions:first-child {
  margin-top: 0;
}

/* Diferencia claramente la reseña del botón del sitio web. */
.googlemaps {
  color:  #00308D;
  background-color: #99DF57;
  box-shadow: 0 7px 17px rgba(6, 61, 164, 0.28);
}

.googlemaps > img {
  width: 24px;
  height: 24px;
  padding: 0;
  object-fit: contain;
  object-position: center;
  transform: none;
}
