/* ===================================
   IEE ALONE - Modern Architecture CSS
   Palette: Dark Navy #0d1117, Teal #00bcd4, White #ffffff, Light Grey #f5f7fa
   =================================== */

:root {
  --dark: #0d1117;
  --dark-2: #161b22;
  --dark-3: #21262d;
  --teal: #00bcd4;
  --teal-dark: #0097a7;
  --teal-light: #4dd0e1;
  --white: #ffffff;
  --grey-light: #f5f7fa;
  --grey-mid: #8b949e;
  --grey-text: #c9d1d9;
  --text-dark: #1c1c1e;
  --border: rgba(255,255,255,0.08);
  --shadow: 0 8px 40px rgba(0,0,0,0.3);
  --radius: 12px;
  --radius-sm: 6px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--dark);
  color: var(--grey-text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--white);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }

p { color: var(--grey-text); margin-bottom: 1rem; }
a { color: var(--teal); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--teal-light); }

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  display: block;
  margin-bottom: 0.75rem;
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 2rem;
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(13, 17, 23, 0.98);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
}

.nav-logo img {
  height: 78px;
  width: auto;
  background: transparent;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  align-items: center;
}

.nav-links a {
  display: block;
  padding: 0.5rem 0.9rem;
  color: var(--grey-text);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  letter-spacing: 0.02em;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: var(--border);
}

.nav-cta a {
  background: var(--teal);
  color: var(--dark) !important;
  font-weight: 700;
  padding: 0.55rem 1.25rem;
  border-radius: 50px;
}

.nav-cta a:hover {
  background: var(--teal-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,188,212,0.4);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  /* Reset all browser button defaults */
  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}

.nav-toggle:focus,
.nav-toggle:focus-visible,
.nav-toggle:active {
  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== PHONE BAR ===== */
.phone-bar {
  background: var(--teal);
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--dark);
  margin-top: 100px;
  letter-spacing: 0.02em;
}

.phone-bar a {
  color: var(--dark);
  font-weight: 800;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/Gemini_Generated_Image_igfi6rigfi6rigfi.png');
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,17,23,0.97) 0%, rgba(13,17,23,0.7) 50%, rgba(0,188,212,0.1) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-text h1 {
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, var(--white) 0%, var(--teal-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text .highlight {
  color: var(--teal);
  -webkit-text-fill-color: var(--teal);
}

.hero-text p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  color: var(--grey-text);
}

.hero-price {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0,188,212,0.1);
  border: 1px solid rgba(0,188,212,0.3);
  border-radius: 50px;
  padding: 0.6rem 1.25rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--teal);
  font-weight: 600;
}

.hero-price .price-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  letter-spacing: 0.03em;
}

.btn-primary {
  background: var(--teal);
  color: var(--dark);
}

.btn-primary:hover {
  background: var(--teal-light);
  color: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,188,212,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.25);
}

.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1rem;
}

/* ===== CALCULATOR CARD ===== */
.hero-calculator {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.calc-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.calc-title::before {
  content: '';
  width: 4px;
  height: 20px;
  background: var(--teal);
  border-radius: 2px;
  display: inline-block;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--grey-mid);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.form-group select,
.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--dark-3);
  border: 1px solid var(--border);
  color: var(--white);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,188,212,0.15);
}

.form-group select option {
  background: var(--dark-3);
  color: var(--white);
}

.calc-result {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-top: 1rem;
  display: none;
}

.calc-result.visible { display: block; }

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}

.result-row:last-child { border-bottom: none; }

.result-row.total {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--teal);
  padding-top: 0.75rem;
}

.result-label { color: var(--grey-mid); }
.result-value { color: var(--white); font-weight: 600; }

.calc-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}

.calc-buttons .btn {
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  padding: 0.65rem 1rem;
}

/* ===== SECTIONS ===== */
section {
  padding: 5rem 2rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 4rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.05rem;
}

/* ===== FEATURES GRID ===== */
.features-section {
  background: var(--dark-2);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,188,212,0.3);
  box-shadow: 0 16px 40px rgba(0,188,212,0.1);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 52px;
  height: 52px;
  background: rgba(0,188,212,0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.6;
}

/* ===== PROCESS SECTION ===== */
.process-section { background: var(--dark); }

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  position: relative;
}

.process-step {
  text-align: center;
  position: relative;
  padding: 2rem 1.5rem;
}

.step-num {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: var(--dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 900;
  margin: 0 auto 1.25rem;
  box-shadow: 0 4px 20px rgba(0,188,212,0.35);
}

.process-step h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.process-step p {
  font-size: 0.875rem;
  margin: 0;
}

/* ===== STATS ===== */
.stats-section {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--dark-2) 100%);
  padding: 4rem 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item .stat-num {
  font-size: 3rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat-item .stat-label {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ===== GALLERY SECTION ===== */
.gallery-section { background: var(--dark-2); }

.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.gallery-item {
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
}

.gallery-item:first-child {
  grid-row: span 2;
  aspect-ratio: auto;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img { transform: scale(1.05); }

/* ===== FAQ SECTION ===== */
.faq-section { background: var(--dark); }

.faq-list {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: rgba(0,188,212,0.25);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  background: var(--dark-2);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  gap: 1rem;
}

.faq-question:hover { background: var(--dark-3); }

.faq-toggle {
  width: 24px;
  height: 24px;
  background: rgba(0,188,212,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
  color: var(--teal);
  transition: var(--transition);
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
  background: var(--teal);
  color: var(--dark);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  background: var(--dark-3);
}

.faq-item.open .faq-answer {
  max-height: 600px;
  padding: 1.25rem 1.5rem;
}

.faq-answer p, .faq-answer li {
  font-size: 0.9rem;
  color: var(--grey-text);
  margin-bottom: 0.5rem;
}

.faq-answer ul, .faq-answer ol {
  padding-left: 1.5rem;
  margin-top: 0.5rem;
}

/* ===== TESTIMONIALS ===== */
.testimonials-section { background: var(--dark-2); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -0.5rem;
  left: 1.5rem;
  font-size: 5rem;
  color: var(--teal);
  opacity: 0.3;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-text {
  font-style: italic;
  color: var(--grey-text);
  margin-bottom: 1.5rem;
  padding-top: 1rem;
  font-size: 0.95rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--dark);
  font-size: 0.9rem;
}

.author-info strong {
  display: block;
  color: var(--white);
  font-size: 0.9rem;
}

.author-info span {
  font-size: 0.8rem;
  color: var(--grey-mid);
}

.stars {
  color: #f59e0b;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

/* ===== PROVINCES ===== */
.provinces-section { background: var(--dark); }

.provinces-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}

.province-link {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  background: transparent;
  border: none;
  color: var(--grey-text);
  font-size: 0.875rem;
  transition: var(--transition);
  text-align: center;
  position: relative;
}

.province-link::after {
  content: '·';
  position: absolute;
  right: -2px;
  color: var(--border);
  font-size: 1rem;
}

.province-link:last-child::after {
  display: none;
}

.province-link:hover {
  color: var(--teal);
  background: transparent;
  transform: none;
}

/* ===== CONTACT SECTION ===== */
.contact-section { background: var(--dark-2); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h3 {
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(0,188,212,0.1);
  border: 1px solid rgba(0,188,212,0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  color: var(--white);
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.contact-item span {
  font-size: 0.875rem;
  color: var(--grey-mid);
}

.contact-form {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form .btn {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}

/* ===== BLOG ===== */
.blog-section { background: var(--dark); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,188,212,0.25);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}

.blog-card-img {
  height: 200px;
  overflow: hidden;
  background: var(--dark-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  flex-shrink: 0;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-img img { transform: scale(1.05); }

.blog-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-body p {
  flex: 1;
}

.blog-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(0,188,212,0.1);
  color: var(--teal);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.blog-card h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.blog-card p {
  font-size: 0.875rem;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-link {
  font-size: 0.825rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* ===== FOOTER ===== */
footer {
  background: var(--dark-2);
  border-top: 1px solid var(--border);
  padding: 4rem 2rem 1.5rem;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--grey-mid);
  transition: var(--transition);
  text-decoration: none;
}

.social-link:hover {
  color: #E1306C;
  border-color: #E1306C;
  background: rgba(225, 48, 108, 0.08);
}

.social-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

.footer-col h4 {
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.footer-col ul { list-style: none; }

.footer-col ul li {
  margin-bottom: 0.6rem;
}

.footer-col ul li a {
  font-size: 0.875rem;
  color: var(--grey-mid);
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--teal);
  padding-left: 4px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 1.5rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--grey-mid);
}

/* ===== PAGE HERO (for inner pages) ===== */
.page-hero {
  padding: 8.5rem 2rem 3rem;
  background: linear-gradient(180deg, var(--dark-2) 0%, var(--dark) 100%);
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  margin-bottom: 0.75rem;
}

.page-hero p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--grey-mid);
  margin-bottom: 1rem;
}

.breadcrumb a { color: var(--teal); }
.breadcrumb span { opacity: 0.5; }

/* ===== ABOUT PAGE ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-img img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.about-content h2 { margin-bottom: 1.25rem; }

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.tag {
  background: rgba(0,188,212,0.1);
  border: 1px solid rgba(0,188,212,0.2);
  color: var(--teal);
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ===== HIRE PAGE ===== */
.hire-form-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem;
  max-width: 760px;
  margin: 0 auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-item:first-child {
    grid-row: 1;
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 100px;
    left: 0;
    right: 0;
    background: var(--dark-2);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.25rem;
    border-bottom: 1px solid var(--border);
  }
  
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-item:first-child {
    grid-column: 1;
  }
  
  .hero-buttons { flex-direction: column; }
  
  .calc-buttons { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  section { padding: 3rem 1rem; }
  .hero-content { padding: 5rem 1rem 3rem; }
}

/* Blog grid 3x2 responsive */
@media (max-width: 900px) {
  .blog-grid-3col {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 560px) {
  .blog-grid-3col {
    grid-template-columns: 1fr !important;
  }
  /* Process steps 3x2 on mobile */
  .process-steps,
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes countUp {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fade-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* Scroll animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Teal divider */
.teal-divider {
  width: 48px;
  height: 3px;
  background: var(--teal);
  border-radius: 2px;
  margin: 1rem auto 0;
  display: block;
}

/* Alert/banner */
.info-banner {
  background: rgba(0,188,212,0.08);
  border: 1px solid rgba(0,188,212,0.2);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  color: var(--grey-text);
}

/* Table */
.provinces-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.provinces-table td {
  padding: 0.6rem 0.75rem;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--dark-3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--grey-mid); }

/* ===== WHATSAPP FLOATING BUTTON ===== */
.wa-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.5);
  transition: all 0.3s ease;
  text-decoration: none;
}
.wa-float:hover {
  background: #1da851;
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,.65);
}
.wa-float svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}
.wa-float-tooltip {
  position: absolute;
  right: 68px;
  background: var(--dark-2, #161b22);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  border: 1px solid rgba(255,255,255,.1);
}
.wa-float:hover .wa-float-tooltip {
  opacity: 1;
}
@media (max-width: 480px) {
  .wa-float { bottom: 1.25rem; right: 1.25rem; width: 52px; height: 52px; }
  .wa-float svg { width: 28px; height: 28px; }
}

/* ===== INSTAGRAM FLOATING BUTTON ===== */
.ig-float {
  position: fixed;
  bottom: 6.5rem;
  right: 2rem;
  z-index: 9999;
  width: 58px;
  height: 58px;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(214,36,159,.45);
  transition: all 0.3s ease;
  text-decoration: none;
}
.ig-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(214,36,159,.65);
}
.ig-float svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}
@media (max-width: 480px) {
  .ig-float { bottom: 5.5rem; right: 1.25rem; width: 52px; height: 52px; }
  .ig-float svg { width: 24px; height: 24px; }
}

/* ===== X (TWITTER) FLOATING BUTTON ===== */
.x-float {
  position: fixed;
  bottom: 11rem;
  right: 2rem;
  z-index: 9999;
  width: 58px;
  height: 58px;
  background: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.5);
  transition: all 0.3s ease;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.15);
}
.x-float:hover {
  background: #111;
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(0,0,0,.7);
}
@media (max-width: 480px) {
  .x-float { bottom: 10rem; right: 1.25rem; width: 52px; height: 52px; }
  .x-float svg { width: 22px !important; height: 22px !important; }
}


.footer-social .social-link { transition: color 0.2s ease, opacity 0.2s ease; }
.footer-social .social-link:hover { opacity: 1; }
.footer-social .social-link[aria-label="Instagram"]:hover { color: #E1306C !important; }
.footer-social .social-link[aria-label="WhatsApp"]:hover  { color: #25D366 !important; }
.footer-social .social-link[aria-label="X (Twitter)"]:hover { color: #fff !important; }

/* ===== FLOATING BUTTONS — TOOLTIPS + BORDER HOVER FIX ===== */

/* Tooltip shown on ALL float buttons */
.ig-float .wa-float-tooltip,
.x-float  .wa-float-tooltip {
  position: absolute;
  right: 68px;
  background: var(--dark-2, #161b22);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  border: 1px solid rgba(255,255,255,.1);
}
.ig-float:hover .wa-float-tooltip { opacity: 1; }
.x-float:hover  .wa-float-tooltip { opacity: 1; }

/* Border/outline on hover with correct brand color */
.wa-float { outline: 2px solid transparent; outline-offset: 3px; }
.ig-float { outline: 2px solid transparent; outline-offset: 3px; }
.x-float  { outline: 2px solid transparent; outline-offset: 3px; }

.wa-float:hover { outline-color: #25D366; }
.ig-float:hover { outline-color: #d6249f; }
.x-float:hover  { outline-color: rgba(255,255,255,.6); }

/* Footer social hover: border/underline in brand color */
.footer-social .social-link {
  border: 1px solid transparent;
  border-radius: 50px;
  padding: 0.2rem 0.6rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.footer-social .social-link[aria-label="Instagram"]:hover { border-color: #E1306C; }
.footer-social .social-link[aria-label="WhatsApp"]:hover  { border-color: #25D366; }
.footer-social .social-link[aria-label="X (Twitter)"]:hover { border-color: rgba(255,255,255,.6); }

/* Mobile: contratar 2-col grids → 1 col */
@media (max-width: 700px) {
  .contratar-descuentos-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ================================================================
   COMPREHENSIVE MOBILE RESPONSIVE FIXES
   ================================================================ */

/* ── Footer: override inline grid style on mobile ── */
@media (max-width: 768px) {
  /* Footer grid — override inline style="grid-template-columns:..." */
  footer .footer-grid,
  .footer-grid[style] {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* Footer social row → wrap nicely */
  .footer-social {
    flex-wrap: wrap;
    gap: .5rem;
  }

  /* All 2-col inline grids → 1 col */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Nosotros / about image+text grid */
  [style*="grid-template-columns:1fr 1fr"][style*="align-items"] {
    grid-template-columns: 1fr !important;
  }

  /* Stats grid → 2 col on tablet */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Features grid → 1 col */
  .features-grid {
    grid-template-columns: 1fr !important;
  }

  /* Process steps → 1 col */
  .process-steps,
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns: repeat(3, 1fr)"],
  [style*="grid-template-columns:repeat(4,1fr)"],
  [style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: 1fr !important;
  }

  /* Testimonials → 1 col */
  .testimonials-grid {
    grid-template-columns: 1fr !important;
  }

  /* Hero calculator: position & width */
  .hero-calculator {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Hero content padding */
  .hero-content {
    grid-template-columns: 1fr !important;
    padding: 5rem 1rem 2rem !important;
  }

  /* Page hero padding */
  .page-hero {
    padding: 5rem 1.25rem 2.5rem !important;
  }

  /* ITE/IEE info + calc two-col sections */
  [style*="display:grid"][style*="1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Contratar discount grid */
  .contratar-descuentos-grid {
    grid-template-columns: 1fr !important;
  }

  /* Payment 2-col */
  [style*="grid-template-columns:1fr 1fr"][style*="max-width:760px"],
  [style*="grid-template-columns: 1fr 1fr"][style*="max-width"] {
    grid-template-columns: 1fr !important;
  }

  /* Blog grid */
  .blog-grid-3col {
    grid-template-columns: 1fr !important;
  }

  /* Gallery grid override inline */
  [style*="grid-template-columns:repeat(3,1fr)"][class*="gallery"],
  .gallery-grid[style] {
    grid-template-columns: 1fr !important;
  }

  /* Municipality/province process 3-col → 1 col */
  [style*="repeat(3"] {
    grid-template-columns: 1fr !important;
  }

  /* Contratar badges bar */
  [style*="grid-template-columns:repeat(auto-fit"] {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Float buttons: stack tighter on small screens */
  .wa-float  { bottom: 1.25rem; right: 1.25rem; width: 50px; height: 50px; }
  .ig-float  { bottom: 5.25rem; right: 1.25rem; width: 50px; height: 50px; }
  .x-float   { bottom: 9.25rem; right: 1.25rem; width: 50px; height: 50px; }
  .wa-float svg { width: 26px; height: 26px; }
  .ig-float svg { width: 22px; height: 22px; }
  .x-float svg  { width: 20px !important; height: 20px !important; }

  /* Tooltip hidden on mobile (no hover on touch) */
  .wa-float-tooltip { display: none; }

  /* Phone bar wrap */
  .phone-bar { font-size: .8rem; padding: .4rem 1rem; text-align: center; }
}

@media (max-width: 480px) {
  section { padding: 3rem 1rem !important; }

  /* Stats 2 col on very small */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }

  /* h1 sizing */
  h1 { font-size: clamp(1.6rem, 7vw, 2.5rem) !important; }
  h2 { font-size: clamp(1.25rem, 5vw, 2rem) !important; }

  /* Hero price badge */
  .hero-price { font-size: 1rem; }

  /* Footer bottom text wrap */
  .footer-bottom p {
    font-size: .7rem;
    line-height: 1.6;
  }

  /* Section labels */
  .section-label { font-size: .7rem; letter-spacing: .08em; }
}

/* ===== COOKIE BANNER ===== */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: rgba(13,17,23,0.97);
  border-top: 1px solid rgba(0,188,212,0.3);
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  backdrop-filter: blur(8px);
  box-shadow: 0 -4px 30px rgba(0,0,0,0.4);
}
#cookie-banner p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--grey-text);
  flex: 1;
  min-width: 200px;
  line-height: 1.6;
}
#cookie-banner a {
  color: var(--teal);
  text-decoration: underline;
}
.cookie-buttons {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}
#cookie-accept {
  background: var(--teal);
  color: var(--dark);
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}
#cookie-accept:hover {
  background: var(--teal-light);
  transform: translateY(-1px);
}
#cookie-reject {
  background: transparent;
  color: var(--grey-mid);
  border: 1px solid var(--border);
  padding: 0.6rem 1.25rem;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}
#cookie-reject:hover {
  border-color: var(--grey-mid);
  color: var(--white);
}
@media (max-width: 600px) {
  #cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.25rem;
  }
  .cookie-buttons { width: 100%; }
  #cookie-accept, #cookie-reject { flex: 1; text-align: center; }
}

/* ALONE-DESIGN-LAYER-V1 */

/* ============================================================================
   ALONE — CAPA DE DISEÑO "DELINEADO"
   Lenguaje visual derivado del logo: dibujo técnico de líneas, dos azules.
   Solo estilo. No altera estructura, cálculo, formularios ni SEO.
   ============================================================================ */

/* ── 1. TOKENS ───────────────────────────────────────────────────────────── */
:root {
  /* Tinta: más profunda y con sesgo azul, como tinta de plano */
  --ink:        #080B10;
  --dark:       #0B0F15;
  --dark-2:     #111722;
  --dark-3:     #19212F;

  /* Los dos azules del logo */
  --teal:       #00BCD4;   /* cian del logo — acento primario */
  --teal-dark:  #0A9CB4;
  --teal-light: #5CE1F2;
  --indigo:     #2E44D0;   /* azul profundo del logo — compañero de profundidad */

  --white:      #FFFFFF;
  --grey-text:  #C3CDD9;
  --grey-mid:   #7D8A9B;

  --border:      rgba(255,255,255,0.07);
  --border-lit:  rgba(0,188,212,0.30);

  /* Superficies de vidrio */
  --surface:      rgba(255,255,255,0.028);
  --surface-hi:   rgba(255,255,255,0.052);

  --shadow:      0 20px 60px rgba(0,0,0,0.45);
  --shadow-lift: 0 26px 70px rgba(0,0,0,0.55);
  --glow-teal:   0 0 0 1px rgba(0,188,212,0.22), 0 18px 50px rgba(0,188,212,0.14);

  --radius:    18px;
  --radius-sm: 10px;

  /* Tipografía */
  --font-display: 'Sora', 'Inter', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-tech:    'JetBrains Mono', ui-monospace, monospace;

  --transition: all 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── 2. ATMÓSFERA ────────────────────────────────────────────────────────── */
body {
  background-color: var(--ink);
  background-image:
    radial-gradient(880px 520px at 10% -10%, rgba(0,188,212,0.10), transparent 62%),
    radial-gradient(760px 460px at 94% 2%,  rgba(46,68,208,0.13), transparent 64%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

/* ── 3. TIPOGRAFÍA ───────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.028em;
  line-height: 1.08;
}
h1 { font-weight: 800; }
h2 { font-weight: 700; letter-spacing: -0.024em; }
h3 { font-weight: 600; letter-spacing: -0.015em; }

.hero-text h1 { letter-spacing: -0.038em; }

.hero-text .highlight,
h1 .highlight, h2 .highlight {
  background: linear-gradient(100deg, var(--teal) 8%, var(--teal-light) 52%, #7C8CFF 96%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ── 4. FIRMA: la línea de cota ──────────────────────────────────────────
   Cada eyebrow se dibuja como una acotación de plano: línea guía + tick,
   y el texto en monoespaciada, como se anota una medida en un alzado.     */
.section-label {
  font-family: var(--font-tech);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-flex;
  align-items: flex-end;
  gap: 0.75rem;
  line-height: 1;
}
.section-label::before {
  content: '';
  width: 30px;
  height: 8px;
  flex: none;
  border-left: 1px solid var(--teal);
  border-bottom: 1px solid var(--teal);
  opacity: 0.55;
  transform: translateY(-1px);
}

.teal-divider {
  display: block;
  width: 68px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--teal), rgba(46,68,208,0.75));
}

/* ── 5. NAVEGACIÓN ───────────────────────────────────────────────────────── */
.navbar {
  background: rgba(8,11,16,0.72);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.navbar.scrolled {
  background: rgba(8,11,16,0.92);
  border-bottom-color: rgba(0,188,212,0.16);
}
.nav-links a {
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: var(--transition);
}
.nav-cta a {
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.phone-bar {
  font-family: var(--font-tech);
  font-weight: 600;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--teal), #17A8C9 60%, #536FFF);
}

/* ── 6. BOTONES ──────────────────────────────────────────────────────────── */
.btn {
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.012em;
  transition: var(--transition);
}
.btn-primary {
  background: linear-gradient(135deg, #14D2E8 0%, var(--teal) 45%, #0A9BC2 100%);
  color: #04222B;
  border: none;
  box-shadow: 0 8px 26px rgba(0,188,212,0.26);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(0,188,212,0.38);
  filter: saturate(115%);
}
.btn-outline {
  border: 1px solid rgba(255,255,255,0.16);
  background: var(--surface);
  color: var(--white);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn-outline:hover {
  border-color: var(--border-lit);
  background: var(--surface-hi);
  transform: translateY(-2px);
}

/* ── 7. HERO ─────────────────────────────────────────────────────────────── */
/* La retícula de plano solo vive aquí: es el "papel" sobre el que se dibuja. */
.hero-overlay {
  background:
    linear-gradient(rgba(255,255,255,0.030) 1px, transparent 1px) 0 0 / 34px 34px,
    linear-gradient(90deg, rgba(255,255,255,0.030) 1px, transparent 1px) 0 0 / 34px 34px,
    radial-gradient(1000px 600px at 15% 0%, rgba(0,188,212,0.13), transparent 60%),
    linear-gradient(180deg, rgba(8,11,16,0.74) 0%, rgba(8,11,16,0.93) 100%);
}

.hero-price {
  border-radius: 999px;
  border: 1px solid var(--border-lit);
  background: rgba(0,188,212,0.07);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-family: var(--font-tech);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.hero-price .price-num {
  font-family: var(--font-tech);
  font-weight: 600;
  color: var(--teal);
}

/* ── 8. CALCULADORA ──────────────────────────────────────────────────────── */
.hero-calculator {
  border-radius: 22px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(25,33,47,0.90), rgba(11,15,21,0.94));
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.05);
}
.calc-title {
  font-family: var(--font-display);
  letter-spacing: -0.015em;
}
.form-group label {
  font-family: var(--font-tech);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-mid);
}
.form-group select,
.form-group input,
#unitsCustom {
  border-radius: 12px !important;
  border: 1px solid var(--border) !important;
  background: rgba(8,11,16,0.66) !important;
  color: var(--white) !important;
  transition: var(--transition);
}
.form-group select:focus,
.form-group input:focus,
#unitsCustom:focus {
  outline: none;
  border-color: var(--border-lit) !important;
  box-shadow: 0 0 0 3px rgba(0,188,212,0.14) !important;
}

.calc-result {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(8,11,16,0.5);
}
.result-label {
  font-family: var(--font-tech);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--grey-mid);
}
.result-value {
  font-family: var(--font-tech);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.result-row.total .result-value {
  font-size: 1.5rem;
  color: var(--teal);
  letter-spacing: -0.02em;
}

/* ── 9. TARJETAS DE VIDRIO ───────────────────────────────────────────────── */
.feature-card,
.testimonial-card,
.process-step,
.faq-item,
.gallery-item,
.contact-item {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}
.feature-card:hover,
.testimonial-card:hover,
.process-step:hover {
  transform: translateY(-5px);
  border-color: var(--border-lit);
  background: var(--surface-hi);
  box-shadow: var(--glow-teal);
}

.feature-icon {
  border-radius: 14px;
  background: linear-gradient(140deg, rgba(0,188,212,0.18), rgba(46,68,208,0.16));
  border: 1px solid rgba(0,188,212,0.20);
}

/* Los pasos SÍ son una secuencia, así que el número se numera como cota */
.step-num {
  font-family: var(--font-tech);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--teal);
  background: rgba(0,188,212,0.10);
  border: 1px solid rgba(0,188,212,0.24);
  border-radius: 12px;
}

/* ── 10. CIFRAS ──────────────────────────────────────────────────────────── */
.stat-item {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: var(--transition);
}
.stat-item:hover { border-color: var(--border-lit); background: var(--surface-hi); }
.stat-item .stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(160deg, var(--white), var(--teal-light) 70%, var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-item .stat-label {
  font-family: var(--font-tech);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-mid);
}

/* ── 11. TESTIMONIOS ─────────────────────────────────────────────────────── */
.author-avatar {
  border-radius: 12px;
  background: linear-gradient(140deg, var(--teal), var(--indigo));
  color: #06222A;
  font-family: var(--font-display);
  font-weight: 700;
}
.stars { color: var(--teal); letter-spacing: 0.14em; }
.testimonial-text { color: var(--grey-text); }
.author-info strong { font-family: var(--font-display); letter-spacing: -0.01em; }

/* ── 12. FAQ ─────────────────────────────────────────────────────────────── */
.faq-item:hover { border-color: var(--border-lit); background: var(--surface-hi); }
.faq-question { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.015em; }
.faq-toggle { color: var(--teal); transition: var(--transition); }

/* ── 13. CHIPS DE PROVINCIA / MUNICIPIO ──────────────────────────────────── */
.province-link {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.42rem 0.95rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--grey-text);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: -0.008em;
  text-decoration: none;
  transition: var(--transition);
}
.province-link:hover {
  border-color: var(--border-lit);
  background: rgba(0,188,212,0.10);
  color: var(--white);
  transform: translateY(-2px);
}
.provinces-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
}

/* ── 14. AVISOS ──────────────────────────────────────────────────────────── */
.info-banner {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0,188,212,0.20);
  border-left: 3px solid var(--teal);
  background: rgba(0,188,212,0.06);
}
.contact-icon {
  border-radius: 12px;
  background: linear-gradient(140deg, rgba(0,188,212,0.16), rgba(46,68,208,0.14));
  border: 1px solid rgba(0,188,212,0.20);
}

/* ── 15. PIE ─────────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--border); background: rgba(8,11,16,0.72); }
.footer-col h4 {
  font-family: var(--font-tech);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey-mid);
}
.footer-col a, .footer-brand p { color: var(--grey-text); }
.footer-col a { transition: var(--transition); }
.footer-col a:hover { color: var(--teal); }
.footer-bottom { border-top: 1px solid var(--border); }
.footer-bottom p { font-family: var(--font-tech); font-size: 0.72rem; letter-spacing: 0.02em; }

/* ── 16. BOTONES FLOTANTES + COOKIES ─────────────────────────────────────── */
.wa-float, .ig-float, .x-float { box-shadow: 0 10px 30px rgba(0,0,0,0.45); }
.wa-float-tooltip {
  font-family: var(--font-tech);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  border-radius: 999px;
}
#cookie-banner {
  background: rgba(8,11,16,0.94);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  backdrop-filter: saturate(150%) blur(16px);
  border-top: 1px solid var(--border-lit);
}
#cookie-accept {
  background: linear-gradient(135deg, #14D2E8, var(--teal) 55%, #0A9BC2);
  color: #04222B;
  font-family: var(--font-display);
  font-weight: 700;
}

/* ── 17. SUELO DE CALIDAD ────────────────────────────────────────────────── */
a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .feature-card:hover, .testimonial-card:hover, .process-step:hover,
  .btn:hover, .province-link:hover { transform: none !important; }
}

@media (max-width: 768px) {
  .section-label { font-size: 0.64rem; letter-spacing: 0.16em; }
  .section-label::before { width: 20px; }
  .provinces-grid { gap: 0.45rem; }
  .province-link { font-size: 0.8rem; padding: 0.38rem 0.8rem; }
  .result-row.total .result-value { font-size: 1.3rem; }
}

/* ALONE-LAYOUT-LAYER-V1 */

/* ============================================================================
   ALONE — CAPA DE COMPOSICIÓN
   Rompe el ritmo "cabecera centrada + rejilla" repetido en cada sección.
   La fotografía pasa a ser estructura, no adorno.
   ============================================================================ */

/* ── HERO: fotografía real de arquitectura ───────────────────────────────── */
.hero-bg {
  background-image: url('../img/arq-atardecer.jpg') !important;
  background-size: cover !important;
  background-position: center 62% !important;
  filter: saturate(0.9) contrast(1.04);
}

/* ── CABECERA ALINEADA A LA IZQUIERDA (rompe el centrado constante) ──────── */
.section-header.is-left {
  text-align: left;
  max-width: 620px;
  margin-left: 0;
}
.section-header.is-left .teal-divider { margin-left: 0; }

/* ── BLOQUE EDITORIAL: foto + contenido asimétrico ───────────────────────── */
.editorial {
  padding: clamp(4rem, 9vw, 7.5rem) 2rem;
  background: var(--dark);
  position: relative;
}
.editorial-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}
.editorial-media { position: relative; }
.editorial-media img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
  max-height: 440px;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
/* Cota flotante: la cifra se sale del marco, como una acotación sobre el plano */
.editorial-badge {
  position: absolute;
  right: -22px;
  bottom: 34px;
  padding: 1.05rem 1.4rem;
  border-radius: 18px;
  border: 1px solid var(--border-lit);
  background: rgba(11,15,21,0.88);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}
.editorial-badge .n {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
  background: linear-gradient(160deg, var(--white), var(--teal-light) 72%, var(--teal));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.editorial-badge .l {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--font-tech);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-mid);
}

/* Las ventajas como filas acotadas, no como cuatro cajas iguales */
.feature-rows { margin-top: 2.2rem; }
.feature-row {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 1.15rem;
  align-items: start;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  transition: var(--transition);
}
.feature-row:last-child { border-bottom: 1px solid var(--border); }
.feature-row:hover { border-top-color: var(--border-lit); }
.feature-row .ic {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 13px;
  font-size: 1.15rem;
  background: linear-gradient(140deg, rgba(0,188,212,0.16), rgba(46,68,208,0.14));
  border: 1px solid rgba(0,188,212,0.20);
}
.feature-row h3 {
  font-size: 1.02rem;
  margin: 0 0 0.3rem;
  color: var(--white);
}
.feature-row p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--grey-text);
}

/* ── BANDA DE CIFRAS SOBRE FOTOGRAFÍA (sustituye la barra cian plana) ───── */
.stats-section {
  position: relative;
  background:
    linear-gradient(180deg, rgba(8,11,16,0.80) 0%, rgba(8,11,16,0.90) 100%),
    url('../img/arq-hormigon-luz.jpg') center/cover no-repeat;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: clamp(3.5rem, 7vw, 6rem) 2rem;
}
.stats-section .stat-item {
  background: transparent;
  border: none;
  border-left: 1px solid var(--border);
  border-radius: 0;
  padding-left: 1.6rem;
  text-align: left;
}
.stats-section .stat-item:hover { background: transparent; border-left-color: var(--teal); }
.stats-section .stat-num { font-size: clamp(2.4rem, 5vw, 3.4rem); }

/* ── CIERRE A SANGRE: el voladizo curvo como fondo del CTA final ────────── */
.contact-section {
  position: relative;
  background:
    linear-gradient(105deg, rgba(8,11,16,0.96) 0%, rgba(8,11,16,0.88) 46%, rgba(8,11,16,0.58) 100%),
    url('../img/arq-curva.jpg') center 38% / cover no-repeat;
  border-top: 1px solid var(--border);
}
/* Hairline de cota sobre la foto, para que lea como un alzado acotado */
.contact-section::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--teal), rgba(46,68,208,0.5) 45%, transparent 80%);
}
.contact-section .contact-item {
  background: rgba(11,15,21,0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* ── PROCESO COMO LÍNEA DE TIEMPO ────────────────────────────────────────── */
.process-steps.is-timeline { position: relative; }
.process-steps.is-timeline::before {
  content: '';
  position: absolute;
  top: 30px; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-lit) 15%, var(--border-lit) 85%, transparent);
  z-index: 0;
}
.process-steps.is-timeline .process-step {
  position: relative;
  z-index: 1;
  background: transparent;
  border: none;
  text-align: center;
}
.process-steps.is-timeline .process-step:hover { transform: translateY(-4px); box-shadow: none; }
.process-steps.is-timeline .step-num {
  margin: 0 auto 1.1rem;
  background: var(--dark);
  box-shadow: 0 0 0 6px var(--dark);
}

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .editorial-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .editorial-media img { aspect-ratio: 16 / 10; max-height: 320px; }
  .editorial-badge { right: 14px; bottom: -18px; padding: 0.85rem 1.1rem; }
  .editorial-badge .n { font-size: 1.9rem; }
  .section-header.is-left { max-width: none; }


  .stats-section .stat-item { padding-left: 1rem; }

  .process-steps.is-timeline::before { display: none; }
  .process-steps.is-timeline .step-num { box-shadow: none; }
}

@media (max-width: 560px) {
  .feature-row { grid-template-columns: 38px 1fr; gap: 0.85rem; }
  .feature-row .ic { width: 38px; height: 38px; font-size: 1rem; }
}

/* El efecto de fondo fijo solo en equipos con ratón: iOS y Android lo ignoran
   o lo renderizan mal, y en iPad horizontal un umbral por anchura no basta. */
@media (hover: hover) and (pointer: fine) {
  .stats-section { background-attachment: fixed; }
}

/* ALONE-PAGES-LAYER-V1 */

/* ============================================================================
   ALONE — CAPA 3: PÁGINAS INTERIORES
   FAQ, Blog, Nosotros y cabeceras. Aquí estaba lo más plano de todo el sitio.
   ============================================================================ */

/* ── CABECERA DE PÁGINA INTERIOR ─────────────────────────────────────────
   Afecta a FAQ, Nosotros, Blog, Contacta, Contratar y los 6 artículos.
   Antes: bloque de color liso. Ahora: muro de hormigón + retícula de plano. */
.page-hero {
  position: relative;
  background:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px) 0 0 / 34px 34px,
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px) 0 0 / 34px 34px,
    linear-gradient(100deg, rgba(8,11,16,0.95) 0%, rgba(8,11,16,0.86) 52%, rgba(8,11,16,0.62) 100%),
    url('../img/arq-hormigon-luz.jpg') center 42% / cover no-repeat;
  border-bottom: 1px solid var(--border);
  text-align: left;
  /* El propio relleno crea la caja de 1180px: todo comparte borde izquierdo */
  padding: clamp(6.5rem, 12vw, 9rem)
           clamp(1.5rem, calc((100vw - 1180px) / 2), 40vw)
           clamp(3rem, 6vw, 4.5rem);
}
/* Ningún hijo se centra por su cuenta */
.page-hero > * { max-width: none; margin-left: 0; margin-right: 0; }
.page-hero .breadcrumb { justify-content: flex-start; margin-bottom: 1.1rem; }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.05rem); max-width: 17ch; margin: 0 0 1rem; }
.page-hero p { max-width: 60ch; margin: 0; color: var(--grey-text); font-size: 1.02rem; }
.page-hero::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, var(--teal), rgba(46,68,208,0.45) 42%, transparent 78%);
}
.breadcrumb { font-family: var(--font-tech); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; }
.breadcrumb a { color: var(--teal); }

/* ── FAQ: dos columnas con panel fijo ────────────────────────────────────
   Antes: pila de cajas centradas. Ahora: el titular se queda anclado a la
   izquierda mientras se recorren las preguntas.                            */
.faq-split {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}
.faq-aside { position: sticky; top: 120px; }
.faq-aside h2 { margin: 0.7rem 0 1rem; }
.faq-aside p { color: var(--grey-text); font-size: 0.94rem; }
.faq-aside .faq-help {
  margin-top: 1.6rem;
  padding: 1.2rem 1.3rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  background: rgba(0,188,212,0.05);
}
.faq-aside .faq-help strong { display: block; color: var(--white); margin-bottom: 0.35rem; font-size: 0.94rem; }
.faq-aside .faq-help a { color: var(--teal); font-family: var(--font-tech); font-size: 0.9rem; }

/* Riel lateral que se enciende al abrir: la pregunta activa queda "acotada" */
.faq-item {
  position: relative;
  padding-left: 1.5rem !important;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.faq-item::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--border);
  transition: var(--transition);
}
.faq-item:hover::before { background: rgba(0,188,212,0.45); }
.faq-item.active::before,
.faq-item.open::before { background: linear-gradient(180deg, var(--teal), var(--indigo)); }
.faq-toggle {
  font-family: var(--font-tech);
  font-weight: 500;
  font-size: 1.15rem;
  width: 30px; height: 30px;
  display: inline-grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: 9px;
  flex: none;
}
.faq-item:hover .faq-toggle { border-color: var(--border-lit); color: var(--teal); }

/* ── BLOG: destacado grande + resto ──────────────────────────────────────
   Antes: seis tarjetas idénticas en rejilla 3×2. Ahora hay jerarquía.      */
.blog-grid-3col { align-items: stretch; grid-auto-rows: 1fr; }
.blog-card { height: 100%; }
.blog-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-lit);
  box-shadow: var(--glow-teal);
}
.blog-card-img { overflow: hidden; aspect-ratio: 16 / 10; }
.blog-card-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.blog-card-body h3 { font-size: 1.08rem; margin: 0.7rem 0 0.55rem; }
.blog-card-body p { font-size: 0.89rem; line-height: 1.65; color: var(--grey-text); flex: 1; }
.blog-tag {
  align-self: flex-start;
  font-family: var(--font-tech);
  font-size: 0.61rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(0,188,212,0.28);
  background: rgba(0,188,212,0.07);
}
.blog-card-link {
  margin-top: 1.1rem;
  font-family: var(--font-tech);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--teal);
  text-decoration: none;
  align-self: flex-start;
  transition: var(--transition);
}
.blog-card-link:hover { letter-spacing: 0.1em; }


/* ── TESTIMONIOS: la comilla como marca de agua ──────────────────────────── */
.testimonial-card { position: relative; overflow: hidden; }
.testimonial-card::after {
  content: '”';
  position: absolute;
  right: 1rem; top: -1.4rem;
  font-family: var(--font-display);
  font-size: 7rem;
  line-height: 1;
  color: rgba(0,188,212,0.10);
  pointer-events: none;
}

/* ── NOSOTROS ────────────────────────────────────────────────────────────── */
.about-grid { align-items: center; }
.about-img { position: relative; }
.about-img img {
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  width: 100%;
  object-fit: cover;
  display: block;
}
.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.6rem; }
.tag {
  font-family: var(--font-tech);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-text);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: var(--transition);
}
.tag:hover { border-color: var(--border-lit); color: var(--white); }

/* Franja manifiesto a sangre: el criterio del estudio, sobre hormigón */
.manifesto {
  position: relative;
  padding: clamp(4.5rem, 9vw, 7rem) 2rem;
  background:
    linear-gradient(95deg, rgba(8,11,16,0.94) 0%, rgba(8,11,16,0.80) 55%, rgba(8,11,16,0.50) 100%),
    url('../img/arq-atardecer.jpg') center 58% / cover no-repeat;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.manifesto-inner { max-width: 1180px; margin: 0 auto; }
.manifesto blockquote {
  margin: 1rem 0 0;
  max-width: 700px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.1vw, 2.05rem);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.028em;
  color: var(--white);
}
.manifesto blockquote em { font-style: normal; color: var(--teal); }
.manifesto cite {
  display: block;
  margin-top: 1.4rem;
  font-family: var(--font-tech);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-style: normal;
  color: var(--grey-mid);
}

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .faq-split { grid-template-columns: 1fr; gap: 2rem; }
  .faq-aside { position: static; }
          .page-hero { padding-left: 1.25rem; padding-right: 1.25rem; }
}
@media (max-width: 560px) {
    .testimonial-card::after { font-size: 5rem; }
}

/* ── CONTACTO: fuera las cajas, filas acotadas ───────────────────────────
   Los recuadros de teléfono/email cargaban mucho. Se sustituyen por filas
   separadas con hairline, en la misma lógica de acotación del resto.      */
.contact-item {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center;
  gap: 1.1rem;
  padding: 1.15rem 0 !important;
  border-bottom: 1px solid var(--border) !important;
  transition: var(--transition);
}
.contact-item:last-of-type { border-bottom: 0 !important; }
.contact-item:hover { border-bottom-color: var(--border-lit) !important; }

.contact-icon {
  width: 42px; height: 42px;
  flex: none;
  display: grid; place-items: center;
  font-size: 1.05rem;
  border-radius: 12px;
  background: rgba(0,188,212,0.07) !important;
  border: 1px solid rgba(0,188,212,0.18) !important;
  transition: var(--transition);
}
.contact-item:hover .contact-icon {
  background: rgba(0,188,212,0.13) !important;
  border-color: var(--border-lit) !important;
}
.contact-item strong {
  display: block;
  font-family: var(--font-tech);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey-mid);
  margin-bottom: 0.22rem;
}
.contact-item span, .contact-item span a { color: var(--grey-text); font-size: 0.95rem; }
.contact-item span a { text-decoration: none; transition: var(--transition); }
.contact-item span a:hover { color: var(--teal); }

/* El salto a #cookies no debe quedar bajo la barra fija */
#cookies, .legal-block h3[id], [id]:target { scroll-margin-top: 150px; }
#cookies:target {
  animation: destacaAncla 2.4s ease-out 1;
  border-radius: 6px;
}
@keyframes destacaAncla {
  0%, 22%  { box-shadow: -14px 0 0 -10px var(--teal); }
  100%     { box-shadow: -14px 0 0 -10px transparent; }
}
@media (prefers-reduced-motion: reduce) { #cookies:target { animation: none; } }

/* La sección legal es la última: necesita recorrido para que el ancla
   #cookies pueda situarse bajo la barra fija y no quede recortada. */
main > section:last-of-type { padding-bottom: 9rem !important; }
@media (max-width: 768px) { main > section:last-of-type { padding-bottom: 6rem !important; } }

/* ── Galería simétrica: todas las piezas al mismo formato ───────────────
   Las fotos tienen proporciones muy distintas (1.07, 1.5, 1.78) y sin
   recorte cada una imponía su alto. Se normalizan a 4:3 con recorte. */
.gallery-grid { align-items: stretch; }
.gallery-grid .gallery-item {
  aspect-ratio: 4 / 3 !important;
  height: auto !important;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.gallery-grid .gallery-item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
}

/* ── Cabecera de sección: menos aire cuando lo que sigue es texto corto ── */
.section-header { margin-bottom: 2.5rem; }

/* La rejilla original daba a la primera foto 2fr y dos filas, dejando dos
   celdas vacías cuando solo hay tres imágenes. Se iguala a tres columnas. */
.gallery-grid:not([style]) {
  grid-template-columns: repeat(3, 1fr) !important;
  grid-template-rows: auto !important;
}
.gallery-grid .gallery-item:first-child {
  grid-row: auto !important;
  grid-column: auto !important;
  aspect-ratio: 4 / 3 !important;
}
@media (max-width: 900px) { .gallery-grid:not([style]) { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 560px) { .gallery-grid:not([style]) { grid-template-columns: 1fr !important; } }

/* ── Imágenes de contenido: dimensiones deterministas ───────────────────
   Había reglas superpuestas que declaraban a la vez altura explícita y
   aspect-ratio. Con ancho y alto fijados el navegador ignora la proporción,
   y esa ambigüedad la resuelve mal Safari al restaurar desde la caché de
   retroceso: reaparece la imagen deformada. Se deja una sola fuente de
   verdad —altura explícita— y el recorte lo hace object-fit.            */
.about-img img,
.editorial-media img {
  width: 100% !important;
  aspect-ratio: auto !important;
  max-height: none !important;
  object-fit: cover !important;
  display: block;
}
.about-img img      { height: clamp(240px, 28vw, 410px) !important; }
.editorial-media img { height: clamp(240px, 30vw, 440px) !important; }

.blog-card-img { aspect-ratio: auto !important; height: 210px !important; }
.blog-card-img img { width: 100% !important; height: 100% !important; object-fit: cover !important; }

@media (max-width: 900px) {
  .about-img img       { height: clamp(200px, 46vw, 300px) !important; }
  .editorial-media img { height: clamp(200px, 48vw, 320px) !important; }
  .blog-card-img       { height: 190px !important; }
}

/* ════════════════════════════════════════════════════════════════════════
   ACCESIBILIDAD TÁCTIL Y LEGIBILIDAD EN MÓVIL
   WCAG 2.2 pide 24×24 px mínimo; Apple y Material recomiendan 44×44.
   Los enlaces dentro de párrafos quedan exentos por la propia norma.
   ════════════════════════════════════════════════════════════════════════ */

/* El botón de menú es un control primario: debe cumplir 44×44 */
.nav-toggle {
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

@media (max-width: 900px) {
  /* Etiquetas técnicas: en monoespaciada y mayúsculas, 10px no se lee */
  .section-label      { font-size: 0.78rem !important; letter-spacing: 0.14em !important; }
  .tag                { font-size: 0.78rem !important; }
  .cap-num            { font-size: 0.8rem !important; }
  .editorial-badge .l { font-size: 0.72rem !important; }
  .form-group label   { font-size: 0.76rem !important; }
  .result-label       { font-size: 0.8rem !important; }
  .stat-item .stat-label { font-size: 0.76rem !important; }
  .footer-col h4      { font-size: 0.78rem !important; }
  .footer-bottom p    { font-size: 0.78rem !important; }
  .blog-tag           { font-size: 0.7rem !important; }
  .recorrido-lista .n { font-size: 0.85rem !important; }

  /* Objetivos táctiles con altura suficiente */
  .province-link {
    min-height: 44px;
    padding: 0.6rem 1rem;
    align-items: center;
  }
  .footer-social .social-link {
    min-height: 44px;
    align-items: center;
    padding: 0.5rem 0.75rem;
  }
  .footer-col ul a {
    display: inline-block;
    min-height: 40px;
    line-height: 40px;
  }
  .nav-links a {
    display: block;
    min-height: 44px;
    line-height: 44px;
  }
}

/* Últimos ajustes: etiquetas del blog, migas de pan y enlace de tarjeta */
@media (max-width: 900px) {
  .blog-tag        { font-size: 0.8rem !important; }
  .breadcrumb      { font-size: 0.78rem !important; }
  .breadcrumb a    { display: inline-block; min-height: 40px; line-height: 40px; padding: 0 0.2rem; }
  .editorial-badge .l { font-size: 0.76rem !important; }
  .blog-card-link  { min-height: 44px; display: inline-flex; align-items: center; }
}

/* La cabecera de columna del pie pasa de h4 a h3 por jerarquía semántica */
.footer-col h3 {
  font-family: var(--font-tech);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey-mid);
  margin: 0 0 1rem;
}
/* Los titulares de tarjeta del blog pasan a h2 sin cambiar de aspecto */
.blog-card-body h2 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 0.7rem 0 0.55rem;
  color: var(--white);
}
@media (max-width: 900px) { .footer-col h3 { font-size: 0.78rem; } }

/* ── Cabecera centrada (municipios y provincias) ────────────────────────
   Estas páginas envuelven el hero en un div con text-align:center en línea.
   El límite de ancho que damos al H1 en las páginas interiores lo dejaba
   anclado a la izquierda mientras el resto se centraba de verdad.
   La corrección se aplica SOLO dentro de ese contenedor centrado, para no
   descolocar las cabeceras alineadas a la izquierda.                      */
.page-hero div[style*="text-align:center"] > *,
.page-hero div[style*="text-align: center"] > * {
  margin-left: auto !important;
  margin-right: auto !important;
}
.page-hero div[style*="text-align:center"] h1,
.page-hero div[style*="text-align: center"] h1 {
  max-width: 22ch !important;
}
.page-hero div[style*="text-align:center"] p,
.page-hero div[style*="text-align: center"] p {
  max-width: 60ch !important;
}

/* ALONE-STAGE-LAYER-V1 */

/* ============================================================================
   ALONE — ESCENA CON SCROLL
   Travelling sobre un paramento de hormigón mientras aparece el proceso.
   Sin librerías. Solo transform y opacity (compuestos por GPU).
   ============================================================================ */

.scrollstage { position: relative; background: var(--ink); }

/* Pista alta: define cuánto scroll dura la escena */
.scrollstage-track { position: relative; height: 340vh; }

/* Fotograma fijo mientras se recorre la pista */
.scrollstage-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding-bottom: 3.25rem;   /* zona reservada a la barra de avance */
}

/* Las cuatro fotos del proceso. El grupo se desplaza y acerca según el avance. */
.scrollstage-media {
  position: absolute;
  inset: -8% -4%;
  will-change: transform;
  transform: scale(1.06);
}
/* Cada fotograma cruza en opacidad y asienta su escala: entra reposando */
.scrollstage-media .stage-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transform: scale(1.075);
  filter: grayscale(0.12) contrast(1.04) brightness(0.88);
  transition: opacity 0.85s cubic-bezier(0.4,0,0.2,1),
              transform 1.9s cubic-bezier(0.22,1,0.36,1);
  will-change: opacity, transform;
}
.scrollstage-media .stage-img.is-active { opacity: 1; transform: scale(1); }

/* Velo para que el texto siempre tenga contraste */
.scrollstage-pin::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(8,11,16,0.94) 0%, rgba(8,11,16,0.74) 44%, rgba(8,11,16,0.26) 100%),
    linear-gradient(180deg, rgba(8,11,16,0.55) 0%, transparent 22%, transparent 74%, rgba(8,11,16,0.75) 100%);
  pointer-events: none;
}

.scrollstage-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 clamp(1.5rem, calc((100vw - 1180px) / 2), 40vw);
}
.scrollstage-content h2 { max-width: 15ch; margin: 0.8rem 0 2.4rem; }

/* Los pasos: solo el activo se lee a plena luz */
.scrollsteps { list-style: none; margin: 0; padding: 0; max-width: 560px; }
.scrollstep {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 1.2rem;
  align-items: start;
  padding: 1rem 0;
  opacity: 0.26;
  filter: blur(0.4px);
  transform: translateY(6px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22,1,0.36,1), filter 0.55s ease;
}
.scrollstep.is-active { opacity: 1; filter: none; transform: translateY(0); }
.scrollstep .n {
  font-family: var(--font-tech);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--teal);
  padding-top: 0.28rem;
  position: relative;
}
/* Cota: línea que crece hacia el texto cuando el paso se activa */
.scrollstep .n::after {
  content: '';
  position: absolute;
  left: 2.1rem; top: 0.72rem;
  width: 0; height: 1px;
  background: var(--teal);
  transition: width 0.55s cubic-bezier(0.22,1,0.36,1);
}
.scrollstep.is-active .n::after { width: 20px; }
.scrollstep h3 { margin: 0 0 0.35rem; font-size: 1.12rem; color: var(--white); }
.scrollstep p { margin: 0; font-size: 0.93rem; line-height: 1.65; color: var(--grey-text); }

/* Barra de avance: pegada al borde inferior y a todo lo ancho.
   Antes iba flotando y el último paso se le montaba encima. */
.scrollstage-progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: auto;
  height: 3px;
  background: rgba(255,255,255,0.10);
  border-radius: 0;
  overflow: hidden;
  z-index: 3;
}
.scrollstage-progress span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--teal), var(--indigo));
  will-change: width;
}

/* ── Sin escena fija: móvil, pantallas bajas y movimiento reducido ─────────
   Se degrada a una sección normal, legible y sin scroll secuestrado.      */
@media (max-width: 900px), (max-height: 620px) {
  .scrollstage-track { height: auto; }
  .scrollstage-pin { position: static; height: auto; padding: 4rem 0 4.5rem; }
  .scrollstage-media { position: absolute; inset: 0; transform: none !important; }
  .scrollstep { opacity: 1; filter: none; transform: none; }
  .scrollstep .n::after { width: 20px; }
  .scrollstage-media .stage-img { transition: none; transform: none; }
  .scrollstage-progress { display: none; }
  .scrollstage-content h2 { margin-bottom: 1.8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .scrollstage-track { height: auto; }
  .scrollstage-pin { position: static; height: auto; padding: 4rem 0 4.5rem; }
  .scrollstage-media { transform: none !important; }
  .scrollstep { opacity: 1; filter: none; transform: none; transition: none; }
  .scrollstage-media .stage-img { transition: none; transform: none; }
  .scrollstage-progress { display: none; }
}

/* ALONE-RECORRIDO-LAYER-V1 */

/* ============================================================================
   ALONE — RECORRIDO DE UNA INSPECCIÓN
   Ascenso por el edificio en el orden real en que se inspecciona.
   Distinto de la escena del proceso: aquí el indicador es una cota vertical,
   como el alzado de un edificio, no una barra horizontal.
   ============================================================================ */

.recorrido { position: relative; background: var(--ink); }
.recorrido-track { position: relative; height: 420vh; }
.recorrido-pin {
  position: sticky; top: 0;
  height: 100vh;
  overflow: hidden;
}

/* ── Fotogramas ─────────────────────────────────────────────────────────── */
.recorrido-media { position: absolute; inset: -3%; }
.recorrido-media .rec-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transform: scale(1.055);
  filter: grayscale(0.10) contrast(1.03) brightness(0.86);
  transition: opacity 0.9s cubic-bezier(0.4,0,0.2,1),
              transform 2.1s cubic-bezier(0.22,1,0.36,1);
  will-change: opacity, transform;
}
.recorrido-media .rec-img.is-active { opacity: 1; transform: scale(1); }

.recorrido-pin::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(95deg, rgba(8,11,16,0.93) 0%, rgba(8,11,16,0.72) 42%, rgba(8,11,16,0.22) 100%),
    linear-gradient(180deg, rgba(8,11,16,0.62) 0%, transparent 26%, transparent 62%, rgba(8,11,16,0.82) 100%);
  pointer-events: none;
}

.recorrido-inner {
  position: relative; z-index: 2;
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(4.5rem, 9vh, 6.5rem) clamp(1.5rem, calc((100vw - 1180px) / 2), 40vw) clamp(3rem, 7vh, 4.5rem);
}
.recorrido-head h2 { max-width: 16ch; margin: 0.8rem 0 0; }

/* ── Cota vertical: el alzado del edificio ──────────────────────────────── */
.recorrido-rail {
  position: absolute;
  right: clamp(1.5rem, calc((100vw - 1180px) / 2), 40vw);
  top: 50%;
  transform: translateY(-50%);
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 10px;
  z-index: 3;
}
.recorrido-rail li {
  width: 34px; height: 2px;
  background: rgba(255,255,255,0.20);
  border-radius: 2px;
  transition: all 0.5s cubic-bezier(0.22,1,0.36,1);
  position: relative;
}
.recorrido-rail li.is-done { background: rgba(0,188,212,0.42); }
.recorrido-rail li.is-active {
  width: 62px;
  background: var(--teal);
  box-shadow: 0 0 14px rgba(0,188,212,0.5);
}
/* Etiqueta de nivel junto a la cota activa */
.recorrido-rail li.is-active::after {
  content: attr(data-n);
  position: absolute;
  right: 74px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-tech);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  color: var(--teal);
  white-space: nowrap;
}

/* ── Rótulo del punto inspeccionado ─────────────────────────────────────── */
.recorrido-caption { max-width: 470px; align-self: end; }
.cap-num {
  display: block;
  font-family: var(--font-tech);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--teal);
  margin-bottom: 0.7rem;
}
.cap-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--white);
  margin: 0 0 0.7rem;
}
.cap-desc { margin: 0; font-size: 0.98rem; line-height: 1.62; color: var(--grey-text); }

/* El rótulo entra desde abajo al cambiar de punto */
.recorrido-caption.is-swapping .cap-num,
.recorrido-caption.is-swapping .cap-title,
.recorrido-caption.is-swapping .cap-desc {
  opacity: 0;
  transform: translateY(14px);
}
.cap-num, .cap-title, .cap-desc {
  transition: opacity 0.42s ease, transform 0.42s cubic-bezier(0.22,1,0.36,1);
}
.cap-title { transition-delay: 0.05s; }
.cap-desc  { transition-delay: 0.1s; }

/* ── Versión compacta: móvil, pantalla baja o movimiento reducido ────────
   Sin secuestrar el scroll. Una foto de contexto y los diez puntos en lista. */
.recorrido-lista { display: none; }
@media (max-width: 900px), (max-height: 620px), (prefers-reduced-motion: reduce) {
  .recorrido-track { height: auto; }
  .recorrido-pin { position: static; height: auto; }
  .recorrido-media { position: absolute; inset: 0; }
  .recorrido-media .rec-img { transition: none; transform: none; }
  .recorrido-inner {
    height: auto;
    display: block;
    padding: 3.5rem 1.5rem 4rem;
  }
  .recorrido-rail, .recorrido-caption { display: none; }
  .recorrido-lista { display: block; list-style: none; margin: 2rem 0 0; padding: 0; }
  .recorrido-lista li {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 0.9rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
  }
  .recorrido-lista li:last-child { border-bottom: 1px solid var(--border); }
  .recorrido-lista .n {
    font-family: var(--font-tech);
    font-size: 0.78rem; font-weight: 600;
    color: var(--teal); padding-top: 0.2rem;
  }
  .recorrido-lista h3 { margin: 0 0 0.25rem; font-size: 1rem; color: var(--white); }
  .recorrido-lista p { margin: 0; font-size: 0.88rem; line-height: 1.6; color: var(--grey-text); }
}
