/* ============================================================
   AYD SRL — Hoja de estilos principal
   Paleta: Acero/Industrial
   ============================================================ */

:root{
  --navy: #0F2438;
  --navy-2: #16324A;
  --steel: #2C5A78;
  --orange: #E8622C;
  --orange-dark: #C74E1E;
  --teal: #10858A;
  --ink: #1A2229;
  --muted: #5C6B76;
  --line: #E1E6EA;
  --paper: #F6F8F9;
  --white: #FFFFFF;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(15, 36, 56, 0.10);
  --shadow-lg: 0 12px 34px rgba(15, 36, 56, 0.16);
  --maxw: 1180px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:'Inter', -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--ink);
  background:var(--white);
  line-height:1.6;
}
h1,h2,h3,h4,h5{
  font-family:'Space Grotesk','Inter',sans-serif;
  color:var(--navy);
  line-height:1.15;
  margin:0 0 .5em 0;
  letter-spacing:-0.01em;
}
a{color:inherit;text-decoration:none;}
img{max-width:100%;display:block;}
ul{margin:0;padding:0;list-style:none;}
.container{max-width:var(--maxw);margin:0 auto;padding:0 24px;}
:focus-visible{outline:3px solid var(--orange);outline-offset:2px;}

/* ---------- Topbar ---------- */
.topbar{
  background:var(--navy);
  color:#B9C6D0;
  font-size:.82rem;
}
.topbar .container{
  display:flex;justify-content:flex-end;gap:22px;
  padding-top:8px;padding-bottom:8px;
  flex-wrap:wrap;
}
.topbar a{color:#DCE6EC;transition:color .15s;}
.topbar a:hover{color:var(--orange);}
.topbar .item{display:inline-flex;align-items:center;gap:7px;}

/* ---------- Header / Nav ---------- */
.site-header{
  background:var(--white);
  border-bottom:1px solid var(--line);
  position:sticky;top:0;z-index:50;
}
.site-header .container{
  display:flex;align-items:center;justify-content:space-between;
  padding-top:12px;padding-bottom:12px;
  gap:20px;
}
.logo img{height:46px;width:auto;flex-shrink:0;}
.logo{display:flex;align-items:center;gap:10px;}

nav.main-nav ul{display:flex;align-items:center;gap:0;flex-wrap:nowrap;white-space:nowrap;}
nav.main-nav a{
  display:block;padding:9px 11px;
  font-size:.82rem;font-weight:600;color:var(--navy-2);
  border-radius:6px;transition:background .15s,color .15s;
  white-space:nowrap;
}
nav.main-nav a:hover{background:var(--paper);color:var(--orange-dark);}
nav.main-nav a.active{color:var(--orange-dark);}

.menu-toggle{
  display:none;background:none;border:1px solid var(--line);
  border-radius:6px;padding:8px 10px;cursor:pointer;
}
.menu-toggle span{display:block;width:20px;height:2px;background:var(--navy);margin:4px 0;}

/* ---------- Hero ---------- */
.hero{
  background:linear-gradient(120deg,var(--navy) 0%,var(--navy-2) 55%,var(--steel) 100%);
  color:var(--white);
  position:relative;
  overflow:hidden;
}
.hero .container{
  padding-top:74px;padding-bottom:74px;
  display:grid;grid-template-columns:1.1fr .9fr;gap:40px;align-items:center;
}
.hero-eyebrow{
  display:inline-block;font-size:.75rem;font-weight:700;letter-spacing:.12em;
  text-transform:uppercase;color:var(--orange);margin-bottom:14px;
}
.hero h1{color:var(--white);font-size:clamp(1.9rem,3.6vw,2.9rem);max-width:16ch;}
.hero p{color:#C7D4DD;font-size:1.05rem;max-width:46ch;margin:16px 0 26px;}
.hero-art{
  aspect-ratio:4/3;border-radius:16px;
  background:
    radial-gradient(circle at 30% 30%, rgba(232,98,44,.35), transparent 55%),
    radial-gradient(circle at 75% 70%, rgba(16,133,138,.35), transparent 55%),
    #0B1B2B;
  border:1px solid rgba(255,255,255,.12);
  position:relative;
  display:flex;align-items:center;justify-content:center;
}
.hero-art::before{
  content:"";position:absolute;inset:18px;
  border:1px dashed rgba(255,255,255,.25);border-radius:10px;
  pointer-events:none;z-index:2;
}
.hero-art .pulse-line{
  position:absolute;left:10%;right:10%;top:50%;height:2px;
  background:linear-gradient(90deg,transparent,var(--orange),transparent);
  z-index:2;
}

/* ---------- Carrusel del hero ---------- */
.hero-carousel{
  position:absolute;inset:18px;border-radius:10px;overflow:hidden;
}
.hero-carousel .slide{
  position:absolute;inset:0;opacity:0;transition:opacity .9s ease;
}
.hero-carousel .slide.is-active{opacity:1;}
.hero-carousel .slide img{width:100%;height:100%;object-fit:cover;}
.hero-carousel .slide-caption{
  position:absolute;left:0;right:0;bottom:0;padding:14px 16px;
  background:linear-gradient(0deg,rgba(11,27,43,.88),transparent);
  color:#fff;font-size:.8rem;font-weight:600;
}
.hero-carousel .dots{
  position:absolute;right:12px;bottom:10px;display:flex;gap:6px;z-index:3;
}
.hero-carousel .dots span{
  width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,.35);
  transition:background .2s;
}
.hero-carousel .dots span.is-active{background:var(--orange);}

/* Insignia "Representante Oficial" */
.badge-box{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:16px;text-align:center;position:relative;z-index:2;
  width:100%;padding:0 24px;
}
.badge-box .badge-ring{
  width:118px;height:118px;border-radius:50%;flex-shrink:0;
  border:1.5px solid rgba(255,255,255,.25);
  display:flex;align-items:center;justify-content:center;position:relative;
  background:rgba(255,255,255,.04);
}
.badge-box .badge-ring::before{
  content:"";position:absolute;inset:-10px;border-radius:50%;
  border:1px dashed rgba(232,98,44,.5);
}
.badge-box .badge-ring img{max-width:72px;max-height:72px;width:auto;object-fit:contain;}
.badge-box .badge-text{display:flex;flex-direction:column;align-items:center;gap:4px;}
.badge-box .badge-year{
  font-family:'Space Grotesk',sans-serif;font-weight:700;font-size:1.4rem;color:var(--orange);
}
.badge-box .badge-title{color:var(--white);font-weight:700;font-size:1.05rem;max-width:20ch;line-height:1.3;}
.badge-box .badge-sub{color:#9FB3C1;font-size:.85rem;max-width:26ch;}

.btn{
  display:inline-flex;align-items:center;gap:8px;
  padding:12px 22px;border-radius:8px;font-weight:700;font-size:.92rem;
  transition:transform .15s,box-shadow .15s,background .15s;
  border:none;cursor:pointer;
}
.btn-primary{background:var(--orange);color:var(--white);}
.btn-primary:hover{background:var(--orange-dark);transform:translateY(-1px);}
.btn-ghost{background:transparent;color:var(--white);border:1px solid rgba(255,255,255,.4);}
.btn-ghost:hover{background:rgba(255,255,255,.1);}

/* ---------- Sections generales ---------- */
.section{padding:64px 0;}
.section-tight{padding:44px 0;}
.section-alt{background:var(--paper);}
.section-title{font-size:clamp(1.5rem,2.6vw,2.1rem);}
.section-kicker{
  font-size:.78rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  color:var(--teal);margin-bottom:10px;display:block;
}
.section-lead{color:var(--muted);max-width:64ch;font-size:1.02rem;}
.section-head{margin-bottom:38px;}

/* ---------- Page header (paginas internas) ---------- */
.page-hero{
  background:var(--navy);color:var(--white);
  padding:48px 0;
}
.page-hero .container{padding-top:0;padding-bottom:0;}
.page-hero h1{color:var(--white);font-size:clamp(1.6rem,3vw,2.3rem);margin-bottom:6px;}
.breadcrumb{font-size:.82rem;color:#9FB3C1;}
.breadcrumb a:hover{color:var(--orange);}

/* ---------- Grid genérico de tarjetas ---------- */
.grid{display:grid;gap:24px;}
.grid-2{grid-template-columns:repeat(2,1fr);}
.grid-3{grid-template-columns:repeat(3,1fr);}
.grid-4{grid-template-columns:repeat(4,1fr);}

.card{
  background:var(--white);border:1px solid var(--line);border-radius:var(--radius);
  overflow:hidden;transition:box-shadow .18s,transform .18s,border-color .18s;
  display:flex;flex-direction:column;height:100%;
}
.card:hover{box-shadow:var(--shadow-lg);transform:translateY(-3px);border-color:transparent;}
.card-media{
  aspect-ratio:16/10;background:var(--navy);position:relative;overflow:hidden;
  display:flex;align-items:center;justify-content:center;
}
.card-media img{width:100%;height:100%;object-fit:cover;}
.card-body{padding:20px 20px 22px;display:flex;flex-direction:column;gap:10px;flex:1;}
.card-body h3{font-size:1.02rem;line-height:1.3;}
.card-link{
  margin-top:auto;font-weight:700;font-size:.85rem;color:var(--orange-dark);
  display:inline-flex;align-items:center;gap:6px;
}
.card a.card-cover{position:absolute;inset:0;z-index:2;}

/* Solución cards (icono + etiqueta, estilo ficha) */
.sol-card{
  background:var(--white);border-radius:14px;overflow:hidden;
  border:1px solid var(--line);
  display:flex;flex-direction:column;align-items:center;height:100%;
  transition:transform .18s, box-shadow .18s;
}
.sol-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg);}
.sol-card .num{
  font-family:'Space Grotesk',sans-serif;font-weight:700;color:var(--teal);
  font-size:.72rem;letter-spacing:.08em;margin-top:16px;
}
.sol-card .sol-media{
  width:140px;height:140px;margin:10px auto 20px;
  display:flex;align-items:center;justify-content:center;
}
.sol-card .sol-media img{max-width:100%;max-height:100%;object-fit:contain;}
.sol-card .sol-title-bar{
  width:100%;background:var(--navy);color:var(--white);
  padding:16px 16px 18px;text-align:center;margin-top:auto;
}
.sol-card .sol-title-bar h3{color:var(--white);font-size:.9rem;margin:0 0 8px;line-height:1.35;}
.sol-card .goto{font-size:.74rem;color:#B9C6D0;font-weight:600;}

/* Proyecto cards (con imagen) */
.project-row{
  display:grid;grid-template-columns:220px 1fr;gap:0;
  border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;
  margin-bottom:20px;background:var(--white);
}
.project-row .proj-media{background:var(--paper);}
.project-row .proj-media img{width:100%;height:100%;object-fit:cover;min-height:150px;}
.project-row .proj-body{padding:22px 24px;}
@media(max-width:720px){
  .project-row{grid-template-columns:1fr;}
  .project-row .proj-media img{max-height:180px;}
}

/* Industria card - icono */
.industry-card{
  position:relative;border-radius:var(--radius);overflow:hidden;
  background:linear-gradient(160deg,var(--navy) 0%, var(--steel) 100%);
  color:var(--white);padding:26px 20px;min-height:168px;
  display:flex;flex-direction:column;justify-content:flex-end;gap:8px;
  border:1px solid rgba(255,255,255,.06);
  transition:transform .18s, box-shadow .18s;
}
.industry-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg);}
.industry-card .icon{width:34px;height:34px;color:var(--orange);margin-bottom:6px;}
.industry-card h3{color:var(--white);font-size:1rem;margin:0;}
.industry-card .goto{font-size:.78rem;color:#B9C6D0;font-weight:600;}
.industry-card::after{
  content:"";position:absolute;right:-30px;top:-30px;width:110px;height:110px;
  border-radius:50%;background:rgba(232,98,44,.14);
}

/* Unidad de negocio */
.brand-card{
  border:1px solid var(--line);border-radius:var(--radius);padding:30px;
  display:flex;flex-direction:column;gap:16px;align-items:flex-start;
  background:var(--white);transition:box-shadow .18s,transform .18s;
}
.brand-card:hover{box-shadow:var(--shadow-lg);transform:translateY(-3px);}
.brand-card img.brand-logo{height:46px;width:auto;object-fit:contain;}
.brand-card .brand-shot{
  width:100%;aspect-ratio:16/9;border-radius:8px;overflow:hidden;background:var(--paper);
}
.brand-card .brand-shot img{width:100%;height:100%;object-fit:cover;}

/* Servicios */
.service-card .card-media{background:var(--paper);}
.service-card .card-media img{object-fit:contain;padding:14px;}

/* ---------- Franja "por qué elegirnos" / stats ---------- */
.stats{
  display:grid;grid-template-columns:repeat(4,1fr);gap:24px;
  background:var(--navy);color:var(--white);border-radius:16px;
  padding:40px 30px;
}
.stat b{display:block;font-family:'Space Grotesk',sans-serif;font-size:2.1rem;color:var(--orange);}
.stat span{font-size:.85rem;color:#B9C6D0;}

/* ---------- Listas con check ---------- */
.check-list li{
  position:relative;padding-left:28px;margin-bottom:12px;color:var(--ink);
}
.check-list li::before{
  content:"";position:absolute;left:0;top:6px;width:16px;height:16px;
  border-radius:4px;background:var(--teal);
}
.check-list li::after{
  content:"";position:absolute;left:5px;top:9px;width:6px;height:9px;
  border-right:2px solid var(--white);border-bottom:2px solid var(--white);
  transform:rotate(45deg);
}

/* ---------- Contacto ---------- */
.contact-card{
  border:1px solid var(--line);border-radius:var(--radius);padding:26px;background:var(--white);
  display:flex;flex-direction:column;gap:10px;
}
.contact-card h3{font-size:1.05rem;}
.contact-card .cline{font-size:.92rem;color:var(--muted);}
.contact-card .cline b{color:var(--ink);}
.map-wrap{border-radius:var(--radius);overflow:hidden;border:1px solid var(--line);}
.map-wrap-sm{
  max-width:460px;margin:0 auto;background:var(--paper);
  padding:18px;border-radius:var(--radius);border:1px solid var(--line);
}
.map-wrap-sm img{width:100%;height:auto;border-radius:6px;}

/* ---------- Footer ---------- */
footer{background:var(--navy);color:#B9C6D0;padding:56px 0 26px;margin-top:40px;}
.footer-grid{display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr;gap:32px;}
footer h4{color:var(--white);font-size:.95rem;margin-bottom:16px;}
footer p{font-size:.87rem;color:#9FB3C1;}
footer ul li{margin-bottom:9px;}
footer a{font-size:.87rem;color:#B9C6D0;transition:color .15s;}
footer a:hover{color:var(--orange);}
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.12);margin-top:40px;padding-top:20px;
  display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;
  font-size:.8rem;color:#7F94A3;
}
.social-row{display:flex;gap:10px;margin-top:6px;}
.social-row a{
  width:34px;height:34px;border-radius:50%;border:1px solid rgba(255,255,255,.2);
  display:flex;align-items:center;justify-content:center;
}
.social-row a:hover{border-color:var(--orange);color:var(--orange);}

.whatsapp-fab{
  position:fixed;right:22px;bottom:22px;z-index:60;
  width:56px;height:56px;border-radius:50%;background:#25D366;color:#fff;
  display:flex;align-items:center;justify-content:center;box-shadow:var(--shadow-lg);
}

/* ---------- Responsive ---------- */
@media(max-width:1180px) and (min-width:721px){
  .site-header .container{max-width:100%;padding:0 16px;}
  nav.main-nav a{padding:9px 8px;font-size:.76rem;}
}
@media(max-width:980px){
  .hero .container{grid-template-columns:1fr;}
  .hero-art{order:-1;max-width:420px;}
  .grid-4{grid-template-columns:repeat(2,1fr);}
  .grid-3{grid-template-columns:repeat(2,1fr);}
  .footer-grid{grid-template-columns:1fr 1fr;}
  .stats{grid-template-columns:repeat(2,1fr);}
}
@media(max-width:720px){
  .topbar .container{justify-content:center;text-align:center;}
  .menu-toggle{display:block;}
  nav.main-nav{
    display:none;position:absolute;left:0;right:0;top:100%;
    background:var(--white);border-bottom:1px solid var(--line);
    box-shadow:var(--shadow);
  }
  nav.main-nav.open{display:block;}
  nav.main-nav ul{flex-direction:column;padding:10px;}
  .grid-2,.grid-3,.grid-4{grid-template-columns:1fr;}
  .footer-grid{grid-template-columns:1fr;}
  .stats{grid-template-columns:1fr 1fr;}
}
