/* css/estilos.css */
:root{
  --bg: #0b0f14;
  --surface: rgba(255,255,255,.06);
  --surface-2: rgba(255,255,255,.10);
  --text: #e9eef5;
  --muted: rgba(233,238,245,.72);
  --border: rgba(233,238,245,.14);
  --shadow: 0 18px 40px rgba(0,0,0,.35);
  --accent: #f05a28; /* naranja corporativo */
  --accent-2: #ff7b4d;
  --container: 1160px;
  --radius: 18px;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family: Roboto, system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  background: radial-gradient(1200px 700px at 15% 10%, rgba(240,90,40,.20), transparent 55%),
              radial-gradient(900px 600px at 85% 20%, rgba(255,123,77,.14), transparent 50%),
              linear-gradient(180deg, #070a0e 0%, #0b0f14 100%);
  color: var(--text);
  line-height: 1.6;
}

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; text-underline-offset: 4px; }

.container{
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.skip-link{
  position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{
  left: 1rem; top: 1rem; width:auto; height:auto;
  background:#fff; color:#000; padding:.6rem .9rem; border-radius: 10px; z-index:9999;
}

/* Header / nav */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  background: rgba(7,10,14,.62);
  border-bottom: 1px solid var(--border);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 0;
}

.brand img{
  height: 44px;
  width: auto;
  display:block;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.25));
}

.nav{
  display:flex;
  align-items:center;
  gap: .3rem;
}

.nav-link{
  padding: .55rem .8rem;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 500;
  transition: background .2s ease, color .2s ease;
}
.nav-link:hover{
  background: rgba(255,255,255,.06);
  color: var(--text);
  text-decoration:none;
}
.nav-link.active{
  background: rgba(240,90,40,.16);
  color: var(--text);
  border: 1px solid rgba(240,90,40,.25);
}
.nav-link.cta{
  margin-left: .2rem;
  background: linear-gradient(135deg, rgba(240,90,40,.95), rgba(255,123,77,.95));
  color: #0b0f14;
  font-weight: 700;
  border: 0;
}
.nav-link.cta:hover{
  filter: brightness(1.06);
}

.nav-toggle{
  display:none;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  border-radius: 12px;
  padding: .55rem .65rem;
  cursor:pointer;
}
.nav-toggle span{
  display:block;
  width: 22px;
  height: 2px;
  background: rgba(233,238,245,.85);
  margin: 4px 0;
}

/* Hero */
.hero{
  padding: 4.6rem 0 2.2rem;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 1.6rem;
  align-items: stretch;
}
.hero-card{
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-copy{
  padding: 2.1rem;
}
.kicker{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  color: rgba(233,238,245,.82);
  font-weight:600;
  font-family: Montserrat, Roboto, Arial, sans-serif;
  letter-spacing:.06em;
  text-transform: uppercase;
  font-size: .78rem;
}
.kicker-dot{
  width: 10px; height: 10px; border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(240,90,40,.12);
}
.hero h1{
  font-family: Montserrat, Roboto, Arial, sans-serif;
  font-size: clamp(2rem, 3.1vw, 3.1rem);
  line-height: 1.1;
  margin: .8rem 0 .6rem;
}
.hero p{
  color: var(--muted);
  margin: 0 0 1.3rem;
  font-size: 1.06rem;
}
.hero-actions{
  display:flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.1rem;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: .55rem;
  padding: .78rem 1.05rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-weight: 700;
  transition: transform .15s ease, filter .15s ease, background .2s ease;
}
.btn:hover{ transform: translateY(-1px); text-decoration:none; background: rgba(255,255,255,.06); }
.btn.primary{
  background: linear-gradient(135deg, rgba(240,90,40,.98), rgba(255,123,77,.98));
  border: none;
  color: #0b0f14;
}
.btn.primary:hover{ filter: brightness(1.06); }
.btn.ghost{ background: transparent; }

.hero-side{
  padding: 1.2rem;
  display:grid;
  gap: .9rem;
}
.stat{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  padding: 1.1rem 1.1rem .95rem;
}
.stat strong{
  display:block;
  font-family: Montserrat, Roboto, Arial, sans-serif;
  font-size: 1.12rem;
}
.stat span{
  display:block;
  color: var(--muted);
  font-size: .95rem;
  margin-top: .25rem;
}

/* Sections */
.section{
  padding: 2.2rem 0;
}
.section-title{
  display:flex;
  align-items:flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.section-title h2{
  margin: 0;
  font-family: Montserrat, Roboto, Arial, sans-serif;
  font-size: 1.55rem;
  letter-spacing: .01em;
}
.section-title p{
  margin: 0;
  color: var(--muted);
  max-width: 56ch;
}

.grid{
  display:grid;
  gap: 1rem;
}
.grid.cols-3{ grid-template-columns: repeat(3, 1fr); }
.grid.cols-2{ grid-template-columns: repeat(2, 1fr); }

.card{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  padding: 1.2rem;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}
.card h3{
  margin: .1rem 0 .35rem;
  font-family: Montserrat, Roboto, Arial, sans-serif;
  font-size: 1.15rem;
}
.card p{ margin: 0; color: var(--muted); }
.card .chip{
  display:inline-block;
  margin-top: .85rem;
  padding: .26rem .55rem;
  border-radius: 999px;
  border: 1px solid rgba(240,90,40,.25);
  background: rgba(240,90,40,.12);
  color: rgba(233,238,245,.92);
  font-size: .82rem;
}

/* Content page header */
.page-head{
  padding: 2.5rem 0 1.2rem;
}
.breadcrumb{
  color: rgba(233,238,245,.70);
  font-size: .92rem;
}
.page-head h1{
  margin: .35rem 0 .35rem;
  font-family: Montserrat, Roboto, Arial, sans-serif;
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  line-height: 1.15;
}
.lead{ color: var(--muted); max-width: 80ch; }

/* Lists */
.ul-clean{
  margin: .6rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}
.ul-clean li{ margin: .28rem 0; }

/* Gallery */
.gallery{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: .9rem;
}
.gitem{
  grid-column: span 4;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.035);
  padding: .9rem;
}
.gitem h3{ margin: 0 0 .25rem; font-size: 1.05rem; font-family: Montserrat, Roboto, Arial, sans-serif; }
.gitem p{ margin:0; color: var(--muted); font-size: .95rem; }

/* Form */
form{ margin-top: .8rem; }
.field{
  display:flex;
  flex-direction: column;
  gap: .35rem;
  margin-bottom: .9rem;
}
label{ font-weight: 600; color: rgba(233,238,245,.90); }
input, textarea{
  width: 100%;
  padding: .8rem .9rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.22);
  color: var(--text);
  outline: none;
}
input:focus, textarea:focus{
  border-color: rgba(240,90,40,.55);
  box-shadow: 0 0 0 4px rgba(240,90,40,.14);
}
textarea{ min-height: 140px; resize: vertical; }

.alert{
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  border-radius: var(--radius);
  padding: 1rem;
  color: var(--muted);
}
.alert.ok{ border-color: rgba(46, 204, 113, .35); }
.alert.err{ border-color: rgba(231, 76, 60, .35); }

/* Footer */
.site-footer{
  border-top: 1px solid var(--border);
  background: rgba(7,10,14,.55);
  padding: 2.2rem 0;
  margin-top: 2.4rem;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.2fr .9fr .9fr;
  gap: 1.4rem;
  align-items:start;
}
.footer-brand img{ height: 36px; width:auto; display:block; }
.footer-links{ list-style:none; padding:0; margin:.6rem 0 0; }
.footer-links li{ margin: .35rem 0; }
.footer-links a{ color: var(--muted); }
.footer-links a:hover{ color: var(--text); text-decoration: none; }

.muted{ color: var(--muted); }
.small{ font-size: .92rem; }

.badges{ display:flex; gap:.5rem; margin-top: .9rem; flex-wrap:wrap; }
.badge{
  border: 1px solid rgba(240,90,40,.25);
  background: rgba(240,90,40,.12);
  color: rgba(233,238,245,.92);
  padding: .28rem .55rem;
  border-radius: 999px;
  font-size: .82rem;
}

/* Responsive */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .grid.cols-3{ grid-template-columns: 1fr; }
  .grid.cols-2{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }
  .gallery .gitem{ grid-column: span 6; }
}
@media (max-width: 760px){
  .nav-toggle{ display:block; }
  .nav{
    position:absolute;
    right: 1rem;
    top: 74px;
    width: min(92vw, 360px);
    flex-direction: column;
    align-items: stretch;
    padding: .7rem;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(7,10,14,.92);
    box-shadow: var(--shadow);
    display:none;
  }
  .nav.open{ display:flex; }
  .nav-link{ padding: .75rem .9rem; }
  .gallery .gitem{ grid-column: span 12; }
}
/* --- V2 Enhancements: Projects / Clients / WhatsApp --- */

/* Media */
.img-cover{
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: calc(var(--radius) - 6px);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
}

/* Logo grid (Clientes) */
.logo-grid{
  display:grid;
  grid-template-columns: repeat(6, 1fr);
  gap: .9rem;
  align-items: center;
}
.logo-tile{
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  border-radius: var(--radius);
  padding: .9rem;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height: 86px;
}
.logo-tile img{
  max-width: 100%;
  max-height: 52px;
  width: auto;
  height: auto;
  filter: drop-shadow(0 10px 16px rgba(0,0,0,.18));
}

/* Filters */
.filters{
  display:flex;
  flex-wrap:wrap;
  gap: .55rem;
  margin: 1rem 0 1.1rem;
}
.filter-btn{
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  padding: .55rem .85rem;
  border-radius: 999px;
  font-weight: 700;
  cursor:pointer;
}
.filter-btn.active{
  background: rgba(240,90,40,.16);
  border-color: rgba(240,90,40,.28);
  color: var(--text);
}
.filter-btn:hover{ background: rgba(255,255,255,.06); }

/* Project cards */
.project-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.project-card{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  padding: .9rem;
  overflow: hidden;
}
.project-card h3{
  margin: .75rem 0 .15rem;
  font-family: Montserrat, Roboto, Arial, sans-serif;
  font-size: 1.05rem;
}
.project-card p{
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
}

/* WhatsApp floating */
.wa-float{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1200;
  display:flex;
  align-items:center;
  gap: .6rem;
  padding: .75rem .9rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(240,90,40,.98), rgba(255,123,77,.98));
  color: #0b0f14;
  font-weight: 900;
  border: none;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
.wa-float:hover{ filter: brightness(1.06); text-decoration:none; }
.wa-icon{
  width: 36px; height: 36px;
  border-radius: 999px;
  background: rgba(0,0,0,.16);
  display:grid;
  place-items:center;
  font-weight: 900;
}

.cta-strip{
  margin-top: 1.2rem;
  border: 1px solid rgba(240,90,40,.25);
  background: rgba(240,90,40,.10);
  border-radius: var(--radius);
  padding: 1rem;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.cta-strip strong{ font-family: Montserrat, Roboto, Arial, sans-serif; }
.cta-strip .btn{ margin: 0; }

@media (max-width: 980px){
  .logo-grid{ grid-template-columns: repeat(3, 1fr); }
  .project-grid{ grid-template-columns: 1fr; }
}
@media (max-width: 520px){
  .logo-grid{ grid-template-columns: repeat(2, 1fr); }
  .wa-float{ right: 12px; bottom: 12px; }
}

/* ---------------------------
   Theme (v4)
--------------------------- */
html[data-theme="light"]{
  --bg: #f6f7fb;
  --surface: rgba(15, 23, 42, .05);
  --surface-2: rgba(15, 23, 42, .08);
  --text: #0b1220;
  --muted: rgba(11, 18, 32, .72);
  --border: rgba(11, 18, 32, .14);
  --shadow: 0 18px 46px rgba(2, 6, 23, .12);
}

/* Logos según tema */
.brand-logo{ height: 34px; width: auto; display: none; }
html[data-theme="dark"] .brand-logo-dark{ display:block; }
html[data-theme="light"] .brand-logo-light{ display:block; }

/* Switcher */
.theme-switch{ position: relative; display:flex; align-items:center; }
.theme-btn{
  width:44px; height:44px;
  border-radius: 999px;
  border:1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display:grid; place-items:center;
  cursor:pointer;
}
.theme-ico{ font-weight:900; opacity:.9; }
.theme-menu{
  position:absolute; right:0; top:52px;
  min-width: 190px;
  background: rgba(20, 26, 34, .92);
  border:1px solid var(--border);
  border-radius: 14px;
  padding: .35rem;
  display:none;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
html[data-theme="light"] .theme-menu{ background: rgba(255,255,255,.94); }
.theme-menu.open{ display:block; }
.theme-opt{
  width:100%;
  text-align:left;
  padding:.65rem .7rem;
  border-radius: 10px;
  border:0;
  background: transparent;
  color: var(--text);
  cursor:pointer;
  font-weight:800;
}
.theme-opt:hover{ background: var(--surface-2); }

/* Light mode: asegurar contraste en header/footer */
html[data-theme="light"] .site-header{
  background: rgba(255,255,255,.70);
}
html[data-theme="light"] .site-footer{
  background: rgba(255,255,255,.55);
}


/* v5: Áreas cards tono naranja medio */
.area-card{background: rgba(240,90,40,.14) !important; border:1px solid rgba(240,90,40,.22) !important;}
.area-card h3{color: rgba(233,238,245,.95);}
.area-card p{color: rgba(233,238,245,.78);}
