/* ===== Embaldosados FJVM — hoja de estilos global ===== */

:root{
  --blue: #5B95D6;
  --blue-dark: #2E5F92;
  --blue-darker: #1E3F63;
  --navy: #14212F;
  --sand: #F5F2EC;
  --sand-dark: #E9E3D8;
  --white: #FFFFFF;
  --grey: #5A6472;
  --grey-light: #8A93A1;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(20, 33, 47, 0.10);
  --shadow-lg: 0 20px 50px rgba(20, 33, 47, 0.18);
  --maxw: 1180px;
}

*{ box-sizing: border-box; margin:0; padding:0; }

html{ scroll-behavior: smooth; }

body{
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.container{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

h1,h2,h3,h4{
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1.15;
}

h1{ font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
h2{ font-size: clamp(1.7rem, 3vw, 2.35rem); }
h3{ font-size: 1.25rem; }

p{ color: var(--grey); }

.eyebrow{
  display:inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-dark);
  background: rgba(91,149,214,0.12);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* ===== Header ===== */
header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(20,33,47,0.07);
}

.navwrap{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.brand{ display:flex; align-items:center; gap:12px; }
.brand img{ height: 44px; width:auto; }
.brand-text{ font-weight: 800; font-size: 1.15rem; color: var(--navy); letter-spacing: -0.01em; }
.brand-text span{ display:block; font-weight:600; font-size:0.66rem; letter-spacing:0.12em; text-transform:uppercase; color: var(--grey-light); }

nav ul{
  list-style:none;
  display:flex;
  gap: 32px;
  align-items:center;
}

nav a{
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  position: relative;
  padding: 6px 2px;
  transition: color .2s ease;
}
nav a:hover{ color: var(--blue-dark); }
nav a.active{ color: var(--blue-dark); }
nav a.active::after{
  content:"";
  position:absolute; left:0; right:0; bottom:-4px;
  height: 3px; border-radius: 3px; background: var(--blue);
}

.btn{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  background: var(--blue);
  color: var(--white) !important;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  box-shadow: 0 8px 20px rgba(91,149,214,0.35);
}
.btn:hover{ background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(46,95,146,0.4); }

.btn-outline{
  background: transparent;
  color: var(--navy) !important;
  border: 1.5px solid rgba(20,33,47,0.18);
  box-shadow: none;
}
.btn-outline:hover{ background: var(--navy); color: var(--white) !important; border-color: var(--navy); }

.navcta{ display:flex; align-items:center; gap:20px; }

.burger{ display:none; background:none; border:none; cursor:pointer; padding:6px; }
.burger span{ display:block; width:24px; height:2.5px; background:var(--navy); margin:5px 0; border-radius:2px; }

/* ===== Hero ===== */
.hero{
  position:relative;
  min-height: 86vh;
  display:flex;
  align-items:center;
  overflow:hidden;
  background: var(--navy);
}
.hero img.bg{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit: cover;
  opacity: 0.55;
}
.hero::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(20,33,47,0.55) 0%, rgba(20,33,47,0.35) 45%, rgba(20,33,47,0.85) 100%);
}
.hero-inner{
  position:relative;
  z-index:2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 100px 24px;
  color: var(--white);
}
.hero h1{ color: var(--white); max-width: 680px; }
.hero p.lead{
  color: rgba(255,255,255,0.88);
  max-width: 560px;
  font-size: 1.12rem;
  margin: 22px 0 34px;
}
.hero .eyebrow{ background: rgba(255,255,255,0.14); color: var(--white); }
.hero-actions{ display:flex; gap:16px; flex-wrap:wrap; }

.page-hero{
  position:relative;
  background: var(--navy);
  color: var(--white);
  padding: 130px 24px 70px;
  overflow:hidden;
}
.page-hero img.bg{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:0.32; }
.page-hero::after{ content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(20,33,47,0.75), rgba(20,33,47,0.92)); }
.page-hero-inner{ position:relative; z-index:2; max-width: var(--maxw); margin:0 auto; }
.page-hero h1{ color:var(--white); }
.page-hero p{ color: rgba(255,255,255,0.82); max-width:600px; margin-top:14px; font-size:1.05rem; }

/* ===== Sections ===== */
section{ padding: 90px 0; }
.section-alt{ background: var(--sand); }
.section-head{ max-width: 640px; margin-bottom: 52px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }

/* ===== Stats strip ===== */
.stats{
  display:grid;
  grid-template-columns: repeat(4,1fr);
  gap: 24px;
  margin-top: 56px;
}
.stat{ text-align:center; padding: 20px; }
.stat .num{ font-size: 2.4rem; font-weight:800; color: var(--blue-dark); letter-spacing:-0.02em; }
.stat .label{ color: var(--grey); font-size:0.92rem; margin-top:6px; }

/* ===== Cards / grids ===== */
.grid-3{ display:grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.grid-2{ display:grid; grid-template-columns: repeat(2,1fr); gap: 28px; }

.card{
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(20,33,47,0.05);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.icon-box{
  width: 54px; height:54px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  display:flex; align-items:center; justify-content:center;
  margin-bottom: 20px;
  color:#fff;
}
.icon-box svg{ width:26px; height:26px; }

.card h3{ margin-bottom: 10px; }
.card p{ font-size: 0.96rem; }

/* Service card with image */
.svc-card{
  border-radius: var(--radius);
  overflow:hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  border: 1px solid rgba(20,33,47,0.05);
}
.svc-card .img-wrap{ height: 190px; overflow:hidden; }
.svc-card .img-wrap img{ width:100%; height:100%; object-fit:cover; transition: transform .4s ease; }
.svc-card:hover .img-wrap img{ transform: scale(1.06); }
.svc-card .body{ padding: 26px 24px; }
.svc-card .body p{ font-size:0.94rem; }

/* ===== Split / feature blocks ===== */
.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items:center;
}
.split img{ border-radius: var(--radius); box-shadow: var(--shadow-lg); width:100%; height:100%; object-fit:cover; }
.split.reverse{ direction: rtl; }
.split.reverse > *{ direction: ltr; }

.check-list{ list-style:none; margin-top: 22px; }
.check-list li{
  display:flex; align-items:flex-start; gap:12px;
  margin-bottom: 14px; color: var(--navy); font-weight:500; font-size:0.98rem;
}
.check-list li svg{ flex-shrink:0; width:20px; height:20px; margin-top:2px; color: var(--blue); }

/* ===== Gallery ===== */
.gallery{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery figure{
  position:relative;
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/5;
}
.gallery figure.wide{ grid-column: span 2; aspect-ratio: 16/10; }
.gallery img{ width:100%; height:100%; object-fit:cover; transition: transform .5s ease; }
.gallery figure:hover img{ transform: scale(1.08); }
.gallery figcaption{
  position:absolute; left:0; right:0; bottom:0;
  padding: 20px 18px 16px;
  background: linear-gradient(180deg, rgba(20,33,47,0) 0%, rgba(20,33,47,0.75) 100%);
  color:#fff; font-weight:700; font-size:0.95rem;
}

/* ===== Values / about ===== */
.value-row{ display:flex; gap:18px; margin-bottom: 26px; }
.value-row .num{ font-weight:800; font-size:1.4rem; color: var(--blue); min-width: 46px; }

/* ===== Testimonial / CTA band ===== */
.cta-band{
  background: linear-gradient(120deg, var(--navy), var(--blue-darker));
  color: var(--white);
  border-radius: 20px;
  padding: 60px 50px;
  display:flex; align-items:center; justify-content:space-between;
  gap: 30px;
  flex-wrap:wrap;
}
.cta-band h2{ color:#fff; margin-bottom:8px; }
.cta-band p{ color: rgba(255,255,255,0.8); }

/* ===== Contact ===== */
.contact-grid{ display:grid; grid-template-columns: 1fr 1.15fr; gap: 50px; }
.contact-info-card{
  background: var(--navy);
  color:#fff;
  border-radius: var(--radius);
  padding: 40px 34px;
}
.contact-info-card h3{ color:#fff; }
.contact-item{ display:flex; gap:16px; align-items:flex-start; margin-top:26px; }
.contact-item .icon-box{ width:44px; height:44px; margin-bottom:0; flex-shrink:0; }
.contact-item .icon-box svg{ width:20px; height:20px; }
.contact-item a, .contact-item span{ color: rgba(255,255,255,0.85); font-weight:500; }
.contact-item strong{ display:block; color:#fff; font-size:0.92rem; margin-bottom:2px; }

.social-row{ display:flex; gap:12px; margin-top:32px; }
.social-row a{
  width:40px; height:40px; border-radius:50%;
  background: rgba(255,255,255,0.1);
  display:flex; align-items:center; justify-content:center;
  transition: background .2s ease;
}
.social-row a:hover{ background: var(--blue); }
.social-row svg{ width:18px; height:18px; color:#fff; }

form{ display:flex; flex-direction:column; gap: 18px; }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
label{ font-size:0.85rem; font-weight:700; color: var(--navy); margin-bottom:6px; display:block; }
input, textarea, select{
  width:100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1.5px solid rgba(20,33,47,0.14);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--navy);
  background: var(--sand);
  transition: border-color .2s ease, background .2s ease;
}
input:focus, textarea:focus, select:focus{ outline:none; border-color: var(--blue); background:#fff; }
textarea{ resize: vertical; min-height: 130px; }

.map-wrap{ border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow); margin-top: 50px; }
.map-wrap iframe{ width:100%; height: 360px; border:0; display:block; }

/* ===== Footer ===== */
footer{ background: var(--navy); color: rgba(255,255,255,0.7); padding: 60px 0 28px; }
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand{ display:flex; align-items:center; gap:12px; margin-bottom:16px; }
.footer-brand img{ height:38px; }
.footer-brand span{ color:#fff; font-weight:800; font-size:1.05rem; }
footer h4{ color:#fff; font-size:0.9rem; text-transform:uppercase; letter-spacing:0.08em; margin-bottom:18px; }
footer ul{ list-style:none; }
footer ul li{ margin-bottom:10px; }
footer ul a{ color: rgba(255,255,255,0.65); font-size:0.92rem; transition: color .2s ease; }
footer ul a:hover{ color: var(--blue); }
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display:flex; justify-content:space-between; align-items:center;
  font-size: 0.85rem; flex-wrap:wrap; gap:10px;
}

/* ===== Utilities ===== */
.mt-0{margin-top:0;}
.text-center{text-align:center;}

/* ===== Responsive ===== */
@media (max-width: 980px){
  .grid-3{ grid-template-columns: repeat(2,1fr); }
  .split{ grid-template-columns: 1fr; gap: 34px; }
  .split.reverse{ direction: ltr; }
  .stats{ grid-template-columns: repeat(2,1fr); }
  .contact-grid{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px){
  nav{ position:fixed; top:73px; left:0; right:0; background:#fff; flex-direction:column; padding: 10px 24px 26px; box-shadow: var(--shadow); transform: translateY(-140%); transition: transform .3s ease; }
  nav.open{ transform: translateY(0); }
  nav ul{ flex-direction:column; align-items:flex-start; gap:16px; width:100%; }
  .navcta .btn-outline{ display:none; }
  .burger{ display:block; }
  .grid-3{ grid-template-columns: 1fr; }
  .navwrap{ padding: 12px 14px; flex-wrap: nowrap; gap: 6px; }
  .brand{ gap: 7px; min-width: 0; flex-shrink: 1; overflow: hidden; }
  .brand img{ height: 30px; flex-shrink: 0; }
  .brand-text{ font-size: 0.72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .brand-text span{ display: none; }
  .navcta{ flex-shrink: 0; gap: 8px; }
  .navcta .btn{ padding: 9px 14px; font-size: 0.78rem; white-space: nowrap; }
  .burger{ flex-shrink: 0; padding: 6px 0 6px 4px; }
  .gallery{ grid-template-columns: repeat(2,1fr); }
  .gallery figure.wide{ grid-column: span 2; }
  .form-row{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns: 1fr; }
  .cta-band{ flex-direction:column; align-items:flex-start; padding: 40px 28px; }
  .hero-inner, .page-hero{ padding-top: 120px; }
  section{ padding: 64px 0; }
}
