:root {
  --navy: #0d2f57;
  --green: #17633e;
  --green-dark: #0d4b31;
  --red: #e21e2b;
  --blue: #1768b3;
  --orange: #e67d08;
  --cream: #fffaf0;
  --text: #18344d;
  --muted: #62727c;
  --line: #e4e9e8;
  --white: #ffffff;
  --shadow: 0 10px 35px rgba(13, 47, 87, .08);
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

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

button, input { font: inherit; }

.container {
  width: min(1180px, 92%);
  margin-inline: auto;
}

/* Header */
.site-header {
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand img {
  width: 205px;
  height: 62px;
  object-fit: contain;
  object-position: left center;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 700;
}

.main-nav a {
  position: relative;
}

.main-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 3px;
  border-radius: 999px;
  background: transparent;
}

.main-nav a.active::after,
.main-nav a:hover::after {
  background: var(--red);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 18px rgba(13,47,87,.13);
}

.btn-primary {
  color: #fff;
  background: var(--green);
}

.btn-full { width: 100%; }

/* Hero */
.hero {
  padding-top: 12px;
}

.hero-image {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: 20px;
}

/* Sections */
.section {
  padding: 55px 0 0;
}

.section-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 32px;
}

.eyebrow {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.section-heading h1 {
  margin: 8px 0 8px;
  color: var(--navy);
  font-size: clamp(34px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: -.045em;
}

.section-heading h1::after {
  content: "";
  display: block;
  width: 55px;
  height: 4px;
  margin: 15px auto 0;
  background: var(--red);
  border-radius: 999px;
}

.section-heading p {
  color: var(--muted);
  margin: 15px 0 0;
}

/* Modules */
.module-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.module-card {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,.04);
  overflow: hidden;
}

.module-green { background: #eef7ed; }
.module-red { background: #fff0f0; }
.module-blue { background: #eef6ff; }
.module-orange { background: #fff8e9; }

.module-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 23px;
  margin-bottom: 15px;
}

.module-green .module-icon { background: var(--green); }
.module-red .module-icon { background: var(--red); }
.module-blue .module-icon { background: var(--blue); }
.module-orange .module-icon { background: var(--orange); }

.module-card h2 {
  margin: 0 0 7px;
  color: var(--navy);
  font-size: 19px;
  line-height: 1.15;
}

.module-card p {
  min-height: 66px;
  margin: 0 0 13px;
  color: #506471;
  font-size: 14px;
  line-height: 1.45;
}

.module-card img {
  width: 100%;
  height: 105px;
  object-fit: cover;
  border-radius: 13px;
  margin-bottom: 12px;
}

.btn-module {
  width: 100%;
  color: #fff;
}

.module-green .btn-module { background: var(--green); }
.module-red .btn-module { background: var(--red); }
.module-blue .btn-module { background: var(--blue); }
.module-orange .btn-module { background: var(--orange); }

/* Panels */
.split-section,
.lower-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 25px;
  box-shadow: var(--shadow);
}

.panel-heading {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.panel-icon,
.whatsapp-icon {
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--navy);
  font-size: 20px;
}

.panel h2 {
  color: var(--navy);
  font-size: 20px;
  line-height: 1.2;
  margin: 0 0 4px;
}

.panel p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.login-form {
  display: grid;
  gap: 13px;
}

.login-form > label {
  color: #4e606c;
  font-size: 12px;
  font-weight: 700;
}

.login-form input[type="email"],
.login-form input[type="password"] {
  width: 100%;
  margin-top: 6px;
  padding: 12px 13px;
  border: 1px solid #dce4e7;
  border-radius: 10px;
  outline: none;
  color: var(--text);
  background: #fff;
}

.login-form input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(23,99,62,.10);
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #0b589c;
  font-size: 12px;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #61727d;
}

.whatsapp-panel {
  background: #f1f8ef;
  border-color: #dbe9d8;
  position: relative;
  overflow: hidden;
}

.whatsapp-panel::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  right: -90px;
  bottom: -100px;
  border-radius: 50%;
  border: 28px solid rgba(23,99,62,.06);
}

.whatsapp-icon {
  background: #198c4b;
}

.whatsapp-panel h2 {
  max-width: 480px;
  margin-top: 13px;
}

.whatsapp-panel p {
  max-width: 540px;
  margin: 8px 0 16px;
}

.phone-link {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #d4e3d0;
  background: #fff;
  padding: 12px 15px;
  border-radius: 10px;
  margin-bottom: 12px;
}

.phone-link span {
  color: #188c4a;
  font-weight: 900;
}

.phone-link strong {
  color: var(--navy);
}

/* Lower blocks */
.lower-grid {
  padding-bottom: 55px;
}

.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.panel-title-row h2 { margin: 0; }

.panel-title-row > a {
  color: #0b589c;
  font-size: 12px;
  font-weight: 800;
}

.update-list {
  display: grid;
  gap: 5px;
}

.update {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 11px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid #eef1f1;
}

.update:last-child { border-bottom: 0; }

.update-dot {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef5ee;
  color: var(--green);
  font-weight: 900;
}

.update strong {
  display: block;
  color: var(--navy);
  font-size: 13px;
}

.update small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.update time {
  display: block;
  margin-top: 4px;
  color: #829099;
  font-size: 10px;
}

.slider-controls {
  display: flex;
  gap: 6px;
}

.slider-controls button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 50%;
  color: var(--navy);
  cursor: pointer;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.tip-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 8px;
  border: 1px solid #edf0ee;
  border-radius: 13px;
}

.tip-card img {
  width: 100%;
  height: 105px;
  object-fit: cover;
  border-radius: 9px;
}

.tip-card strong {
  color: var(--navy);
  font-size: 12px;
  line-height: 1.3;
}

.tip-card span {
  color: #0b589c;
  font-size: 11px;
  font-weight: 800;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 13px;
}

.slider-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #aeb8be;
}

.slider-dots span.active { background: var(--navy); }

/* Footer */
.site-footer {
  background: var(--navy);
  color: #fff;
  border-top: 7px solid var(--red);
}

.footer-inner {
  min-height: 125px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-brand img {
  width: 66px;
  height: 66px;
  object-fit: contain;
  border-radius: 50%;
}

.footer-brand strong {
  font-size: 13px;
}

.footer-brand p {
  margin: 3px 0 0;
  color: #d5e1e9;
  font-size: 12px;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  font-weight: 900;
  font-size: 20px;
}

/* Responsive */
@media (max-width: 980px) {
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .split-section,
  .lower-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .header-inner {
    min-height: 70px;
  }

  .brand img { width: 155px; height: 52px; }

  .main-nav {
    gap: 10px;
    font-size: 12px;
  }

  .main-nav a:not(.btn) { display: none; }

  .main-nav .btn {
    padding: 10px 13px;
  }

  .hero-image {
    aspect-ratio: 1.5 / 1;
    border-radius: 13px;
  }

  .section { padding-top: 40px; }

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

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

  .tip-card { display: grid; grid-template-columns: 95px 1fr; }
  .tip-card img { grid-row: span 2; height: 78px; }

  .footer-inner {
    padding: 22px 0;
    align-items: flex-start;
  }
}

@media (max-width: 460px) {
  .container { width: 94%; }

  .brand img { width: 140px; }

  .panel { padding: 19px; }

  .form-options {
    align-items: flex-start;
    flex-direction: column;
  }

  .phone-link {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
}



/* =========================================================
   SITIO PÚBLICO DEL NEGOCIO
========================================================= */

.client-hero {
    margin-top: 24px;
}

.client-cover {
    display: block;
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: 24px;
}

.client-profile {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: -55px;
    margin-left: 35px;
    position: relative;
    z-index: 2;
}

.client-profile-image-wrap {
    width: 120px;
    height: 120px;
    min-width: 120px;
    border-radius: 50%;
    padding: 5px;
    background: #fff;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.15);
}

.client-profile-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.client-profile-info {
    padding-top: 55px;
}

.client-profile-info h1 {
    margin: 3px 0 0;
}


/* =========================================================
   CONTACTO
========================================================= */

.whatsapp-panel {
    text-align: center;
}

.whatsapp-panel .btn {
    display: inline-flex;
    margin-top: 10px;
}


/* =========================================================
   REDES SOCIALES
========================================================= */

.social-section {
    text-align: center;
}

.social-section .section-heading {
    margin-bottom: 28px;
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.10);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.social-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 9px 24px rgba(0, 0, 0, 0.15);
}

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


/* =========================================================
   GALERÍA
========================================================= */

.gallery-category {
    margin-bottom: 45px;
}

.gallery-category > h3 {
    margin-bottom: 20px;
}

.gallery-product-image {
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 18px;
}

.gallery-product-image img {
    display: block;
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.gallery-product-image.secondary {
    margin-top: 18px;
}


/* =========================================================
   MÓVIL
========================================================= */

@media (max-width: 700px) {

    .client-cover {
        height: 240px;
        border-radius: 18px;
    }

    .client-profile {
        margin-top: -42px;
        margin-left: 18px;
        gap: 14px;
    }

    .client-profile-image-wrap {
        width: 90px;
        height: 90px;
        min-width: 90px;
        padding: 4px;
    }

    .client-profile-info {
        padding-top: 42px;
    }

    .client-profile-info h1 {
        font-size: 1.5rem;
    }

    .social-links {
        gap: 16px;
    }

    .social-link {
        width: 58px;
        height: 58px;
        border-radius: 16px;
    }

    .social-link img {
        width: 34px;
        height: 34px;
    }

    .gallery-product-image img {
        height: 210px;
    }
}

/* =========================================================
   CONTACTO + REDES SOCIALES
========================================================= */

.contact-social-panel {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    align-items: center;
    gap: 40px;
    padding: 42px 50px;
}

.contact-social-column {
    text-align: center;
}

.contact-social-column h2 {
    margin: 8px 0 10px;
}

.contact-social-column p {
    margin: 0 auto 22px;
    max-width: 480px;
}

.contact-social-divider {
    width: 1px;
    height: 110px;
    background: rgba(0, 0, 0, 0.10);
}

.social-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin-top: 18px;
}

.social-link {
    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 16px;
    background: #fff;

    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.10);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.social-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 9px 24px rgba(0, 0, 0, 0.15);
}

.social-link svg {
    width: 30px;
    height: 30px;

    fill: currentColor;
    stroke: currentColor;
    stroke-width: 1.8;
}

.social-link .social-dot {
    fill: currentColor;
    stroke: none;
}


/* =========================================================
   FOTO DE PERFIL DEL NEGOCIO
========================================================= */

.client-profile-image-wrap {
    width: 90px;
    height: 90px;
    min-width: 90px;

    padding: 4px;

    border-radius: 50%;
    background: #fff;

    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.15);
}

.client-profile-image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    border-radius: 50%;
}


/* =========================================================
   MÓVIL
========================================================= */

@media (max-width: 700px) {

    .contact-social-panel {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 32px 22px;
    }

    .contact-social-divider {
        width: 80%;
        height: 1px;
        margin: 0 auto;
    }

    .client-profile-image-wrap {
        width: 76px;
        height: 76px;
        min-width: 76px;
    }

    .social-links {
        gap: 14px;
    }

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

    .social-link svg {
        width: 28px;
        height: 28px;
    }

}
