/* ==========================================================================
   Stylo Corporativo — estilos generales
   Colores y tipografía extraídos directamente del diseño de Figma.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900&display=swap');

:root{
  --navy:#00345a;
  --orange:#ff7515;
  --lime:#c2cc66;
  --cyan:#11b5ea;
  --blue:#0e64a3;
  --footer-bg:#032136;
  --text-gray:#464646;
  --placeholder-gray:#757575;
  --divider: rgba(213,214,219,0.5);
  --reviews-bg: rgba(146,148,150,0.1);
  --name-blue:#101299;
  --white:#ffffff;
  --black:#000000;
  --container: 1620px;
  --font: 'Poppins', sans-serif;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font);
  color:var(--black);
  background:var(--white);
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font-family:var(--font); cursor:pointer; border:none; }
p{ margin:0; }
ul{ margin:0; padding:0; list-style:none; }

.container{
  width:100%;
  max-width:var(--container);
  margin-inline:auto;
  padding-inline:clamp(16px, 4.3%, 94px);
}

.visually-hidden{
  position:absolute !important;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  padding:14px 36px;
  font-weight:700;
  font-size:18px;
  letter-spacing:0.0375rem;
  text-transform:uppercase;
  transition:background-color .2s ease;
  white-space:nowrap;
}
.btn-lime{ background:var(--lime); color:var(--white); }
.btn-lime:hover{ background:var(--cyan); }
.btn-orange{ background:var(--orange); color:var(--white); }
.btn-orange:hover{ background:#e05f00; }

/* ---------------------------------- Header / Hero ---------------------------------- */
.hero{
  position:relative;
  color:var(--white);
  background:#1b1d1f;
  overflow:hidden;
}
.hero__bg{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  z-index:0;
}
.hero__scrim{
  position:absolute; inset:0;
  background:radial-gradient(ellipse at 55% 45%, rgba(153,161,175,.30), rgba(27,29,31,.30) 80%);
  z-index:1;
}
.hero__navband{
  position:relative;
  z-index:2;
  width:100%;
  background:rgba(255,255,255,.08);
  border-bottom:1px solid rgba(255,255,255,.14);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}
.hero__inner{
  position:relative;
  z-index:2;
  padding-top:32px;
}
.hero__nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  flex-wrap:wrap;
  padding-block:16px;
}
.hero__logo img{ width:150px; height:auto; }
.hero__links{
  display:flex;
  align-items:center;
  gap:44px;
  flex-wrap:wrap;
}
.hero__links a{
  font-weight:600;
  font-size:16px;
}
.hero__links .btn{ padding:10px 30px; font-size:16px; }

.hero__content{
  max-width:920px;
  padding-block:110px 90px;
}
.hero__kicker{
  font-weight:600;
  font-size:clamp(28px,3.6vw,48px);
  line-height:1.15;
  text-shadow:0 4px 9.5px rgba(0,0,0,.6);
  margin:0 0 6px;
}
.hero__title{
  font-weight:900;
  font-size:clamp(28px,3.6vw,48px);
  line-height:1.15;
  text-shadow:0 4px 4px rgba(0,0,0,.25);
  margin:0 0 40px;
}
.hero__search{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  background:var(--white);
  border-radius:999px;
  padding:7px;
  max-width:600px;
}
.hero__search input{
  border:0;
  outline:0;
  background:transparent;
  flex:1;
  padding:12px 16px;
  font-family:var(--font);
  font-size:14px;
  color:var(--placeholder-gray);
  min-width:0;
}
.hero__search .btn{ flex:none; }
.hero__strip{
  height:26px;
  background:var(--orange);
  position:relative;
  z-index:2;
}

/* ---------------------------------- Intro / Servicios ---------------------------------- */
.intro{
  padding-block:110px;
}
.intro__grid{
  display:flex;
  align-items:stretch;
  gap:60px;
}
.intro__text{ flex:1 1 640px; min-width:0; }
.intro__kicker{
  font-weight:300;
  font-size:28px;
  letter-spacing:4px;
  text-transform:uppercase;
  margin:0 0 12px;
}
.intro__title{
  font-weight:600;
  font-size:clamp(28px,3.2vw,43px);
  color:var(--orange);
  margin:0 0 24px;
}
.intro__desc{
  color:var(--text-gray);
  font-size:16px;
  line-height:1.55;
  letter-spacing:.03em;
}
.intro__desc p + p{ margin-top:1em; }

.stats{
  display:flex;
  gap:56px;
  margin-top:48px;
  flex-wrap:wrap;
}
.stat{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
  text-align:center;
  width:132px;
}
.stat img{ width:64px; height:64px; }
.stat span{
  font-weight:600;
  font-size:18px;
  color:var(--black);
}

.intro__image{
  flex:1 1 min(38%, 460px);
  align-self:stretch;
  border-radius:4px;
  background-image:url('assets/hero-side.webp');
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}
@media (max-width: 900px){
  .intro__image{ display:none; }
}

/* ---------------------------------- Catálogo / Nuestro Trabajo ---------------------------------- */
.catalogo{
  padding-block:80px 60px;
  background:#f7fafc;
}
.section-title{
  text-align:center;
  font-weight:600;
  font-size:clamp(32px,4.5vw,58px);
  color:var(--navy);
  margin:0 0 56px;
}

.product-grid{
  column-count:3;
  column-gap:40px;
}
@media (max-width: 900px){
  .product-grid{ column-count:2; }
}
@media (max-width: 600px){
  .product-grid{ column-count:1; }
}
.product-card{
  break-inside:avoid;
  margin-bottom:24px;
  background:var(--white);
  position:relative;
}
.product-card__media{
  position:relative;
  width:100%;
  overflow:hidden;
  background:#e5e7eb;
  line-height:0;
}
.product-card__media img{
  width:100%;
  height:auto;
  display:block;
}
.product-card__caption{
  text-align:center;
  padding:12px 20px;
  font-weight:600;
  font-size:18px;
  color:var(--black);
}

.product-card__add-btn{
  position:absolute;
  z-index:2;
  right:12px;
  bottom:12px;
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:var(--white);
  color:var(--navy);
  font-size:20px;
  line-height:1;
  box-shadow:0 4px 10px rgba(0,0,0,.2);
  transition:background-color .15s ease, color .15s ease;
}
.product-card__add-btn:hover{ background:var(--orange); color:var(--white); }
.product-card__add-btn.is-selected{ background:var(--orange); color:var(--white); }

/* ---------------------------------- Cotización lateral (Nuestro Trabajo) ---------------------------------- */
.quote-fab{
  position:fixed;
  z-index:85;
  right:24px;
  bottom:24px;
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:14px 22px;
  border-radius:999px;
  background:var(--orange);
  color:var(--white);
  font-weight:700;
  font-size:13px;
  box-shadow:0 10px 25px rgba(0,0,0,.25);
}
.quote-fab[hidden]{ display:none; }
.quote-fab:hover{ background:#e05f00; }
.quote-fab span{
  display:grid;
  place-items:center;
  min-width:22px;
  height:22px;
  padding:0 4px;
  border-radius:50%;
  background:var(--white);
  color:var(--orange);
  font-size:11px;
  font-weight:800;
}

.quote-backdrop{
  position:fixed;
  inset:0;
  z-index:80;
  background:rgba(0,20,36,.5);
  backdrop-filter:blur(2px);
}

.quote-drawer{
  position:fixed;
  z-index:90;
  top:0;
  right:0;
  width:min(480px, 100%);
  height:100dvh;
  background:var(--white);
  color:var(--black);
  box-shadow:-20px 0 50px rgba(0,0,0,.18);
  transform:translateX(104%);
  visibility:hidden;
  transition:transform .3s ease;
}
.quote-drawer.is-open{ transform:translateX(0); visibility:visible; }
.quote-drawer__header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  padding:24px 28px;
  border-bottom:1px solid rgba(0,52,90,.14);
}
.quote-drawer__header h2{
  margin:0;
  color:var(--navy);
  font-size:24px;
  font-weight:700;
}
.quote-drawer__eyebrow{
  margin:0 0 6px;
  color:var(--orange);
  font-size:10px;
  font-weight:700;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.quote-drawer__close{
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  border-radius:50%;
  border:1px solid rgba(0,52,90,.2);
  background:var(--white);
  color:var(--navy);
  font-size:20px;
  line-height:1;
}
.quote-drawer__body{
  height:calc(100dvh - 93px);
  padding:20px 28px 40px;
  overflow-y:auto;
}
.quote-drawer__empty{
  margin:0 0 20px;
  padding:16px;
  border:1px dashed rgba(0,52,90,.25);
  border-radius:12px;
  background:#f7fafc;
  color:var(--text-gray);
  font-size:12px;
  line-height:1.5;
}
.quote-selected-item{
  display:grid;
  grid-template-columns:56px 1fr auto;
  align-items:center;
  gap:12px;
  margin-bottom:10px;
  padding:8px;
  border:1px solid rgba(0,52,90,.12);
  border-radius:10px;
}
.quote-selected-item img{
  width:56px;
  height:48px;
  border-radius:8px;
  object-fit:cover;
}
.quote-selected-item strong{
  font-size:12px;
  font-weight:600;
}
.quote-selected-item button{
  border:0;
  background:transparent;
  color:var(--text-gray);
  font-size:16px;
  cursor:pointer;
}
.quote-drawer__grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-top:24px;
}
.quote-drawer__grid label{
  display:grid;
  gap:6px;
  color:var(--navy);
  font-size:11px;
  font-weight:600;
}
.quote-drawer__span-2{ grid-column:1 / -1; }
.quote-drawer__grid input,
.quote-drawer__grid textarea{
  width:100%;
  padding:11px 12px;
  border:1px solid rgba(0,52,90,.2);
  border-radius:8px;
  font-family:var(--font);
  font-size:13px;
  color:var(--black);
}
.quote-drawer__grid textarea{ resize:vertical; }
.quote-drawer__submit{ width:100%; margin-top:18px; }
.quote-drawer__note{
  margin:12px 4px 0;
  color:var(--text-gray);
  font-size:10px;
  line-height:1.5;
  text-align:center;
}

body.quote-no-scroll{ overflow:hidden; }

.catalog-toast{
  position:fixed;
  z-index:120;
  left:50%;
  bottom:24px;
  transform:translate(-50%, 12px);
  padding:12px 22px;
  border-radius:999px;
  background:var(--navy);
  color:var(--white);
  font-size:12px;
  font-weight:600;
  opacity:0;
  pointer-events:none;
  transition:opacity .2s ease, transform .2s ease;
  box-shadow:0 10px 20px rgba(0,0,0,.2);
}
.catalog-toast.is-visible{ opacity:1; transform:translate(-50%, 0); }

@media (max-width: 560px){
  .quote-drawer__grid{ grid-template-columns:1fr; }
  .quote-drawer__span-2{ grid-column:auto; }
  .quote-fab{ right:16px; bottom:16px; padding:12px 18px; }
}

/* ---------------------------------- Editor de catálogo ---------------------------------- */
.catalog-toolbar{
  display:flex;
  justify-content:center;
  margin:-24px 0 40px;
}
.catalog-toolbar__btn{
  background:var(--navy);
  color:var(--white);
  border-radius:999px;
  padding:14px 32px;
  font-size:12px;
  font-weight:600;
  letter-spacing:.03em;
  box-shadow:0 4px 10px rgba(0,0,0,.15);
}
.catalog-toolbar__btn:hover{ background:var(--cyan); }

.catalog-edit-bar{
  display:none;
  align-items:center;
  justify-content:center;
  gap:16px;
  flex-wrap:wrap;
  margin:0 0 32px;
  padding:14px 20px;
  background:#eaf3f8;
  border:1px dashed var(--cyan);
  border-radius:12px;
  font-size:12px;
  color:var(--navy);
}
.catalog-edit-bar__hint{ font-weight:500; }
.catalog-edit-bar__actions{ display:flex; gap:12px; }
.catalog-edit-bar__actions button{
  border-radius:999px;
  padding:12px 24px;
  font-size:11px;
  font-weight:600;
}
#catalog-reset-btn{ background:transparent; border:1px solid var(--navy); color:var(--navy); }
#catalog-reset-btn:hover{ background:var(--navy); color:var(--white); }

.product-card.is-editing .product-card__media{ cursor:default; }
.product-card__edit-overlay{
  position:absolute; inset:0;
  background:rgba(0,52,90,.55);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  opacity:0;
  transition:opacity .15s ease;
}
.product-card.is-editing .product-card__media:hover .product-card__edit-overlay,
.product-card.is-editing .product-card__media:focus-within .product-card__edit-overlay{
  opacity:1;
}
.product-card__upload-btn,
.product-card__delete-btn{
  background:var(--white);
  color:var(--navy);
  border-radius:999px;
  padding:12px 24px;
  font-size:11px;
  font-weight:600;
  cursor:pointer;
}
.product-card__delete-btn{ background:var(--orange); color:var(--white); }
.product-card__caption.is-editable{
  outline:2px dashed var(--cyan);
  outline-offset:4px;
  border-radius:4px;
  cursor:text;
}

.catalog-add-wrapper{
  display:none;
  justify-content:center;
  margin-top:8px;
}
.catalog-add-btn{
  background:var(--white);
  border:2px dashed var(--navy);
  color:var(--navy);
  border-radius:12px;
  padding:20px 36px;
  font-weight:600;
  font-size:14px;
}
.catalog-add-btn:hover{ background:var(--navy); color:var(--white); }

.catalog-toolbar--left{
  justify-content:flex-start;
  margin:32px 0 0;
}

/* ---------------------------------- Editor de reseñas (panel dormido, sin enlazar) ---------------------------------- */
.reviews-editor-list{
  display:flex;
  flex-direction:column;
  gap:16px;
}
.reviews-editor-row{
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:16px;
  align-items:start;
  padding:16px;
  border:1px solid rgba(0,52,90,.14);
  border-radius:12px;
  background:var(--white);
}
.reviews-editor-row__photo{
  position:relative;
  width:80px;
  height:80px;
  border-radius:50%;
  overflow:hidden;
  background:var(--navy);
  color:var(--white);
  display:grid;
  place-items:center;
  font-weight:700;
  font-size:22px;
}
.reviews-editor-row__photo img{ width:100%; height:100%; object-fit:cover; }
.reviews-editor-row__photo-btn{
  position:absolute;
  inset:0;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  padding-bottom:4px;
  background:rgba(0,20,36,.55);
  color:var(--white);
  font-size:9px;
  font-weight:600;
  opacity:0;
  cursor:pointer;
  transition:opacity .15s ease;
}
.reviews-editor-row__photo:hover .reviews-editor-row__photo-btn{ opacity:1; }
.reviews-editor-row__fields{ display:grid; gap:10px; }
.reviews-editor-row__fields-top{ display:grid; grid-template-columns:1fr 1fr 150px; gap:10px; }
.reviews-editor-row__fields-top--two{ grid-template-columns:1fr 150px; }
.reviews-editor-row__fields input,
.reviews-editor-row__fields textarea,
.reviews-editor-row__fields select{
  width:100%;
  padding:9px 11px;
  border:1px solid rgba(0,52,90,.2);
  border-radius:8px;
  font-family:var(--font);
  font-size:12px;
  color:var(--black);
  background:var(--white);
}
.reviews-editor-row__fields textarea{ resize:vertical; }
.reviews-editor-row__photo--wide{
  width:120px;
  height:80px;
  border-radius:10px;
}
.reviews-editor-row__product-photo{ display:flex; align-items:center; gap:10px; }
.reviews-editor-row__product-photo-upload{
  width:100px;
  height:70px;
  border-radius:10px;
  border:1px dashed rgba(0,52,90,.3);
  overflow:hidden;
  display:grid;
  place-items:center;
  cursor:pointer;
  flex:none;
  background:#f7f9fa;
}
.reviews-editor-row__product-photo-upload img{ width:100%; height:100%; object-fit:cover; }
.reviews-editor-row__product-photo-upload span{
  font-size:10px;
  font-weight:600;
  color:var(--navy);
  text-align:center;
  padding:0 6px;
}
.reviews-editor-row__product-photo-remove{
  background:transparent;
  color:var(--orange);
  font-size:11px;
  font-weight:600;
}
.reviews-editor-row__badges{ display:flex; align-items:center; gap:8px; }
.reviews-editor-row__badge{
  font-size:10px;
  font-weight:700;
  letter-spacing:.03em;
  text-transform:uppercase;
  border-radius:999px;
  padding:3px 10px;
}
.reviews-editor-row__badge.is-pending{ background:#fff1e2; color:var(--orange); }
.reviews-editor-row__badge.is-approved{ background:#e4f6ea; color:#1f8a4c; }
.reviews-editor-row__date{ font-size:11px; color:var(--text-gray); }
.reviews-editor-row.is-pending{ border-color:var(--orange); background:#fffaf4; }
.reviews-editor-row__actions{ display:flex; flex-direction:column; gap:8px; }
.reviews-editor-row__delete{
  background:var(--orange);
  color:var(--white);
  border-radius:999px;
  padding:12px 22px;
  font-size:11px;
  font-weight:600;
}
.reviews-editor-row__delete:hover{ background:#e05f00; }
.reviews-editor-row__approve{
  background:#1f8a4c;
  color:var(--white);
  border-radius:999px;
  padding:12px 22px;
  font-size:11px;
  font-weight:600;
}
.reviews-editor-row__approve:hover{ background:#166b3a; }
.reviews-filter{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:16px; }
.reviews-filter__btn{
  background:var(--white);
  border:1px solid rgba(0,52,90,.25);
  color:var(--navy);
  border-radius:999px;
  padding:11px 20px;
  font-size:12px;
  font-weight:600;
}
.reviews-filter__btn.is-active{ background:var(--navy); color:var(--white); border-color:var(--navy); }
@media (max-width: 560px){
  .reviews-editor-row{ grid-template-columns:1fr; }
  .reviews-editor-row__fields-top{ grid-template-columns:1fr; }
}

.catalog-edit-bar__save{
  background:var(--orange);
  color:var(--white);
  border-radius:999px;
  padding:13px 26px;
  font-size:11px;
  font-weight:600;
}
.catalog-edit-bar__save:hover{ background:#e05f00; }
.catalog-edit-bar__save:disabled{
  background:#c9d3da;
  color:#7c8894;
  cursor:default;
}
.catalog-toolbar .catalog-edit-bar__save{ margin-left:auto; }
.catalog-toolbar{ align-items:center; }

.editor-modal-root{
  display:none;
  position:fixed; inset:0;
  background:rgba(0,20,36,.55);
  align-items:center;
  justify-content:center;
  z-index:1000;
  padding:16px;
}
.editor-modal-root.is-open{ display:flex; }
.editor-modal{
  background:var(--white);
  border-radius:16px;
  padding:32px;
  width:100%;
  max-width:360px;
  box-shadow:0 20px 40px rgba(0,0,0,.25);
}
.editor-modal h3{
  margin:0 0 8px;
  color:var(--navy);
  font-size:20px;
  font-weight:700;
}
.editor-modal p{
  margin:0 0 16px;
  font-size:12px;
  color:var(--text-gray);
}
.editor-modal__input{
  width:100%;
  border:1px solid #ccd3da;
  border-radius:8px;
  padding:12px;
  font-family:var(--font);
  font-size:13px;
  margin-bottom:8px;
  outline:0;
}
.editor-modal__input:focus{ border-color:var(--cyan); }
.editor-modal__error{ color:var(--orange) !important; font-size:11px !important; }
.editor-modal__actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:8px;
}
.editor-modal__btn{
  border-radius:999px;
  padding:13px 26px;
  font-weight:600;
  font-size:12px;
}
.editor-modal__btn--ghost{ background:transparent; color:var(--navy); border:1px solid #ccd3da; }
.editor-modal__btn--ghost:hover{ background:#f2f4f6; }
.editor-modal__btn--primary{ background:var(--navy); color:var(--white); }
.editor-modal__btn--primary:hover{ background:var(--cyan); }
.editor-modal__btn--danger{ background:var(--orange); color:var(--white); }
.editor-modal__btn--danger:hover{ background:#e05f00; }

.editor-toast{
  position:fixed;
  left:50%;
  bottom:24px;
  transform:translate(-50%, 20px);
  background:var(--navy);
  color:var(--white);
  padding:12px 24px;
  border-radius:999px;
  font-size:12px;
  opacity:0;
  pointer-events:none;
  transition:opacity .2s ease, transform .2s ease;
  z-index:1001;
  box-shadow:0 10px 20px rgba(0,0,0,.2);
}
.editor-toast.is-visible{
  opacity:1;
  transform:translate(-50%, 0);
}

/* ---------------------------------- CTA banner ---------------------------------- */
.cta{
  position:relative;
  color:var(--white);
  overflow:hidden;
}
.cta__bg{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
}
.cta__scrim{
  position:absolute; inset:0;
  background:rgba(0,0,0,.6);
}
.cta__inner{
  position:relative;
  max-width:1240px;
  margin-inline:auto;
  padding:100px clamp(16px, 4.3%, 94px);
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:64px;
  align-items:center;
}
.cta__col{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  text-align:left;
  gap:28px;
}
.cta__kicker{
  font-weight:300;
  font-size:28px;
  letter-spacing:4px;
  text-transform:uppercase;
  margin:0;
}
.cta__title{
  font-weight:600;
  font-size:clamp(30px,4.2vw,58px);
  line-height:1.25;
  text-shadow:0 4px 9.5px rgba(0,0,0,.6);
  margin:0;
}
.cta .btn{ margin-top:12px; }

.cta-steps{
  list-style:none;
  margin:0;
  padding:0;
  width:100%;
  border-top:1px solid rgba(255,255,255,.25);
}
.cta-step{
  display:grid;
  grid-template-columns:auto 1fr;
  column-gap:24px;
  align-items:start;
  padding:24px 0;
  border-bottom:1px solid rgba(255,255,255,.25);
}
.cta-step__number{
  font-family:Georgia, 'Times New Roman', serif;
  font-style:italic;
  font-weight:700;
  font-size:18px;
  color:var(--orange);
  padding-top:4px;
}
.cta-step__title{
  font-weight:700;
  font-size:22px;
  color:var(--white);
  margin:0 0 6px;
  grid-column:2;
}
.cta-step__desc{
  font-size:14px;
  color:rgba(255,255,255,.75);
  margin:0;
  grid-column:2;
}

@media (max-width: 900px){
  .cta__inner{ grid-template-columns:1fr; padding-block:64px; }
}

/* ---------------------------------- Marcas ---------------------------------- */
.marcas{
  padding-block:96px;
}
.marcas__grid{
  display:flex;
  align-items:center;
  gap:80px;
}
.marcas__image{ flex:0 0 auto; width:40%; }
.marcas__image img{ width:100%; height:auto; }
.marcas__content{ flex:1 1 auto; min-width:0; }
.marcas__title{
  font-weight:600;
  font-size:clamp(28px,3.4vw,46px);
  color:var(--navy);
  margin:0 0 28px;
}
.marcas__desc{
  font-size:16px;
  line-height:1.55;
  color:var(--black);
  margin:0 0 48px;
}
.marcas__logos{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:56px 36px;
  align-items:center;
}
.marcas__logos img{
  max-height:56px;
  width:auto;
  margin-inline:auto;
}
@media (max-width: 900px){
  .marcas__grid{ flex-direction:column; }
  .marcas__image{ width:100%; }
}
@media (max-width: 560px){
  .marcas__logos{ grid-template-columns:repeat(2, 1fr); }
}

/* ---------------------------------- Portafolio (acordeón) ---------------------------------- */
.acordeon__toggle{
  display:block;
  cursor:pointer;
  list-style:none;
  background:#f7fafc;
  border-top:1px solid rgba(0,52,90,.14);
  border-bottom:1px solid rgba(0,52,90,.14);
  color:var(--navy);
  transition:background-color .15s ease;
}
.acordeon__toggle::-webkit-details-marker{ display:none; }
.acordeon__toggle:hover{ background:#eef4f8; }
.acordeon__toggle-inner{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:16px;
  padding-block:40px;
  text-align:center;
}
.acordeon__toggle-text{
  display:flex;
  flex-direction:column;
  gap:4px;
  font-weight:700;
  font-size:24px;
}
.acordeon__eyebrow{
  font-weight:600;
  font-size:11px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--orange);
}
.acordeon__chevron{
  width:28px;
  height:28px;
  flex:none;
  color:var(--navy);
  transition:transform .25s ease;
}
.acordeon[open] .acordeon__chevron{ transform:rotate(180deg); }

/* ---------------------------------- Reseñas ---------------------------------- */
.resenas{ background:var(--reviews-bg); padding-block:80px; overflow:hidden; }
.resenas__intro{
  max-width:70%;
  margin:0 auto 56px;
  text-align:center;
}
.resenas__kicker{
  font-weight:300;
  font-size:28px;
  letter-spacing:4px;
  text-transform:uppercase;
  margin:0 0 20px;
}
.resenas__title{
  font-weight:600;
  font-size:clamp(28px,3.4vw,46px);
  color:var(--navy);
  margin:0 0 28px;
}
.resenas__desc{
  font-size:16px;
  line-height:1.55;
  color:var(--text-gray);
  margin:0 0 32px;
}
@media (max-width: 900px){
  .resenas__intro{ max-width:100%; }
}

/* Carrusel (marquee) */
.marquee{
  position:relative;
  width:100%;
  overflow:hidden;
}
.marquee__fade{
  position:absolute;
  top:0; bottom:0;
  width:min(160px, 12vw);
  z-index:2;
  pointer-events:none;
}
.marquee__fade--left{ left:0; background:linear-gradient(to right, var(--reviews-bg), transparent); }
.marquee__fade--right{ right:0; background:linear-gradient(to left, var(--reviews-bg), transparent); }
.marquee__track{
  display:flex;
  width:max-content;
  animation:marquee-scroll 32s linear infinite;
}
.marquee__track.is-paused{ animation-play-state:paused; }
.marquee--single .marquee__track{ animation-duration:16s; }
@keyframes marquee-scroll{
  from{ transform:translateX(0); }
  to{ transform:translateX(-50%); }
}
@media (prefers-reduced-motion: reduce){
  .marquee__track{ animation:none; }
}

.testimonial-card{
  flex:0 0 auto;
  width:min(380px, 82vw);
  margin:0 16px;
  padding:28px;
  background:var(--white);
  border-radius:16px;
  box-shadow:0 4px 6px -4px rgba(0,0,0,.1), 0 10px 15px -3px rgba(0,0,0,.1);
  transition:transform .25s ease, box-shadow .25s ease;
}
/* A partir de aquí el ancho se calcula para que se vean varias tarjetas
   completas a la vez en el carrusel (5 en pantallas anchas, menos en
   pantallas chicas), en vez de un ancho fijo en píxeles. */
@media (min-width: 480px){
  .testimonial-card{ width:calc(50vw - 32px); }
}
@media (min-width: 700px){
  .testimonial-card{ width:calc(33.333vw - 32px); }
}
@media (min-width: 900px){
  .testimonial-card{ width:calc(25vw - 32px); }
}
@media (min-width: 1300px){
  .testimonial-card{ width:calc(20vw - 32px); }
}
.testimonial-card:hover{
  transform:translateY(-4px);
  box-shadow:0 20px 25px -5px rgba(0,0,0,.12), 0 10px 10px -5px rgba(0,0,0,.08);
}
.testimonial-card__head{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:18px;
}
.testimonial-card__avatar{
  width:52px;
  height:52px;
  border-radius:50%;
  object-fit:cover;
  flex:none;
}
.testimonial-card__avatar--initials{
  display:grid;
  place-items:center;
  background:var(--navy);
  color:var(--white);
  font-weight:700;
  font-size:16px;
}
.testimonial-card__name{
  font-weight:700;
  font-size:14px;
  color:var(--black);
  margin:0;
}
.testimonial-card__company{
  font-size:11px;
  color:var(--cyan);
  font-weight:600;
  margin:2px 0 0;
}
.testimonial-card__quote{
  font-size:12px;
  line-height:1.65;
  color:var(--text-gray);
  margin:0;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:4;
  overflow:hidden;
}
.testimonial-card__more{
  background:transparent;
  color:var(--orange);
  font-size:12px;
  font-weight:700;
  padding:0;
  margin-top:6px;
}
.testimonial-card__more:hover{ text-decoration:underline; }
.testimonial-card__product-photo{
  width:100%;
  height:140px;
  object-fit:cover;
  border-radius:10px;
  margin-top:16px;
}

.review-modal{
  /* fixed (no relative): así conserva el centrado nativo del navegador para
     dialog:modal; fixed igual sirve de referencia para el botón de cerrar
     en position:absolute. Con "relative" el modal perdía ese centrado y la
     página saltaba al scroll top al abrirlo. */
  position:fixed;
  margin:auto;
  inset:0;
  width:min(560px, calc(100% - 2rem));
  max-height:calc(100dvh - 2rem);
  padding:36px;
  border:0;
  border-radius:16px;
  background:var(--white);
  box-shadow:0 24px 70px rgba(0,0,0,.22);
  overflow-y:auto;
}
.review-modal::backdrop{ background:rgba(0,20,36,.6); backdrop-filter:blur(4px); }
.review-modal__close{
  position:absolute;
  top:16px; right:16px;
  width:36px; height:36px;
  display:grid;
  place-items:center;
  border-radius:50%;
  border:1px solid rgba(0,52,90,.2);
  background:var(--white);
  color:var(--navy);
  font-size:20px;
  line-height:1;
  cursor:pointer;
}
.review-modal__head{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:20px;
}
.review-modal__avatar{
  width:56px;
  height:56px;
  border-radius:50%;
  object-fit:cover;
  flex:none;
  display:grid;
  place-items:center;
  background:var(--navy);
  color:var(--white);
  font-weight:700;
  font-size:18px;
}
.review-modal__avatar img{ width:100%; height:100%; border-radius:50%; object-fit:cover; }
.review-modal__name{ font-weight:700; font-size:16px; color:var(--black); margin:0; }
.review-modal__company{ font-size:12px; color:var(--cyan); font-weight:600; margin:2px 0 0; }
.review-modal__text{ font-size:14px; line-height:1.7; color:var(--text-gray); margin:0; }

.contact-modal{
  /* fixed (no relative), igual que .review-modal: conserva el centrado
     nativo de dialog:modal y sigue sirviendo de referencia para el botón
     de cerrar en position:absolute. */
  position:fixed;
  margin:auto;
  inset:0;
  width:min(520px, calc(100% - 2rem));
  max-height:calc(100dvh - 2rem);
  padding:36px;
  border:0;
  border-radius:16px;
  background:var(--white);
  box-shadow:0 24px 70px rgba(0,0,0,.22);
  overflow-y:auto;
}
.contact-modal::backdrop{ background:rgba(0,20,36,.6); backdrop-filter:blur(4px); }
.contact-modal__title{ color:var(--navy); font-size:22px; font-weight:700; margin:0 0 6px; }
.contact-modal__desc{ color:var(--text-gray); font-size:13px; margin:0 0 22px; }
.contact-modal__form .form-row{ margin-bottom:12px; }

/* ---------------------------------- Contacto ---------------------------------- */
.contacto{
  position:relative;
  color:var(--white);
  overflow:hidden;
  background-image:url('assets/contact-bg.png');
  background-size:cover;
  background-position:center;
  background-attachment:fixed;
}
.contacto__scrim{
  position:absolute; inset:0;
  background:rgba(0,0,0,.6);
}
.contacto__grid{
  position:relative;
  display:flex;
  gap:16px;
  padding-block:90px;
  flex-wrap:wrap;
}
.contacto__col{ flex:1 1 420px; min-width:0; }
.contacto__title{
  font-weight:800;
  font-size:clamp(32px,4.5vw,58px);
  line-height:1.25;
  text-shadow:0 4px 9.5px rgba(0,0,0,.6);
  margin:0 0 28px;
}
.contacto__desc{
  font-size:16px;
  line-height:1.55;
  max-width:600px;
}

.form-panel{
  background:var(--white);
  border-radius:16px;
  padding:26px 28px;
  box-shadow:0 20px 45px rgba(0,0,0,.25);
}
.form-row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:12px;
}
.form-row:last-of-type{ margin-bottom:0; }
.form-field{
  flex:1 1 260px;
}
.form-field input,
.form-field textarea,
.form-field select{
  width:100%;
  border:1px solid rgba(0,52,90,.15);
  border-radius:8px;
  padding:10px 13px;
  font-family:var(--font);
  font-size:14px;
  color:var(--black);
  outline:0;
  background:var(--white);
}
.form-field textarea{ min-height:64px; resize:vertical; }
.form-field input::placeholder,
.form-field textarea::placeholder{ color:var(--placeholder-gray); }

.form-actions-top{ margin:12px 0; }
.form-attach{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:var(--footer-bg);
  color:var(--white);
  border-radius:8px;
  padding:10px 24px;
  font-weight:700;
  text-transform:uppercase;
  font-size:14px;
}
.form-attach img{ width:17px; height:20px; }

.form-submit-row{
  display:flex;
  justify-content:flex-end;
  margin-top:12px;
}
.btn-submit{
  background:var(--orange);
  color:var(--white);
  border-radius:12px;
  padding:14px 36px;
  font-weight:700;
  font-size:18px;
  letter-spacing:.0375rem;
  text-transform:uppercase;
}
.btn-submit:hover{ background:#e05f00; }

/* ---------------------------------- Footer ---------------------------------- */
.footer{
  position:relative;
  color:var(--white);
  padding-top:56px;
  background-image:url('assets/contact-bg.png');
  background-size:cover;
  background-position:center;
  background-attachment:fixed;
}
.footer__scrim{
  position:absolute; inset:0;
  background:rgba(3,33,54,.55);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}
.footer > .container{ position:relative; z-index:2; }
.footer > .footer__rule{ position:relative; z-index:2; }
.footer__grid{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
  padding-bottom:40px;
}
.footer__brand{ flex:1 1 300px; }
.footer__logo{ width:200px; height:auto; }
.footer__cols{
  flex:3 1 700px;
  display:grid;
  grid-template-columns:repeat(3, 1fr) minmax(280px, 1.5fr);
  gap:32px;
}
.footer__col h4{
  font-weight:700;
  font-size:16px;
  margin:0 0 20px;
}
.footer__col ul li + li{ margin-top:12px; }
.footer__col a{
  color:var(--white);
  font-size:12px;
}
.footer__social{
  display:flex;
  gap:16px;
  margin-bottom:16px;
}
.footer__social a{
  color:var(--lime);
  display:inline-flex;
  width:28px;
  height:28px;
}
.footer__social img{ width:100%; height:100%; object-fit:contain; }
.footer__rule{
  border:0;
  border-top:1px solid var(--divider);
  margin:0;
}
.footer__bottom{
  padding-block:24px;
  text-align:center;
  font-size:12px;
}
@media (max-width: 900px){
  .footer__cols{ grid-template-columns:1fr 1fr; }
}
@media (max-width: 560px){
  .footer__cols{ grid-template-columns:1fr; }
}

/* ---------------------------------- Editor de marcas ---------------------------------- */
.brands-editor-section-fields{
  display:grid;
  gap:12px;
  margin-bottom:24px;
}
.brands-editor-section-fields input,
.brands-editor-section-fields textarea{
  width:100%;
  padding:10px 12px;
  border:1px solid rgba(0,52,90,.2);
  border-radius:8px;
  font-family:var(--font);
  font-size:13px;
  color:var(--black);
}
.brands-editor-section-fields textarea{ resize:vertical; }
.brands-editor-collage__upload{
  width:220px;
  height:120px;
  border-radius:10px;
  border:1px dashed rgba(0,52,90,.3);
  overflow:hidden;
  display:grid;
  place-items:center;
  cursor:pointer;
  background:#f7f9fa;
}
.brands-editor-collage__upload img{ width:100%; height:100%; object-fit:cover; }
.brands-editor-collage__upload span{ font-size:12px; font-weight:600; color:var(--navy); }
.brands-editor-logos-heading{ color:var(--navy); font-size:15px; margin:0 0 14px; }
.brands-editor-logos-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(140px, 1fr));
  gap:14px;
  margin-bottom:20px;
}
.brands-editor-logo-card{
  border:1px solid rgba(0,52,90,.14);
  border-radius:12px;
  padding:12px;
  display:flex;
  flex-direction:column;
  gap:8px;
  align-items:center;
}
.brands-editor-logo-card__upload{
  width:100%;
  height:70px;
  border-radius:8px;
  background:#f7f9fa;
  display:grid;
  place-items:center;
  cursor:pointer;
  overflow:hidden;
}
.brands-editor-logo-card__upload img{ width:100%; height:100%; object-fit:contain; }
.brands-editor-logo-card input[type="text"]{
  width:100%;
  padding:7px 9px;
  border:1px solid rgba(0,52,90,.2);
  border-radius:8px;
  font-family:var(--font);
  font-size:11px;
}
.brands-editor-logo-card__delete{
  background:var(--orange);
  color:var(--white);
  border-radius:999px;
  padding:10px 20px;
  font-size:11px;
  font-weight:600;
}
.brands-editor-logo-card__delete:hover{ background:#e05f00; }

/* ---------------------------------- Utilidades responsivas generales ---------------------------------- */
@media (max-width: 900px){
  .hero__links{ gap:22px; }
  .intro__grid{ flex-direction:column; align-items:flex-start; }
  .marcas__grid{ gap:40px; }
  .contacto__grid{ padding-block:80px; }
}
