/* ===================================
   MILIMÉTRICA PRODUCCIONES - STYLES
   Exact 1:1 Match with www.milimetrica.info
   =================================== */

/* Google Fonts - Exact match with BaseKit theme */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Poppins:wght@300;400;500;600;700&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
  /* Exact Colors from www.milimetrica.info (BaseKit style sheet) */
  --primary: #191A1B;         /* Deep Charcoal / Near-black (BaseKit style-dark) */
  --primary-dark: #121314;
  --primary-light: #2c2e30;
  
  --accent: #F79A68;          /* Official Warm Terracotta / Coral Orange (BaseKit style-accent) */
  --accent-light: #f9b38e;
  --accent-dark: #e07f4b;
  
  --spare: #6DAF4C;           /* Sustainability Green (BaseKit style-spare) */
  
  --white: #ffffff;
  --off-white: #ffffff;
  --light-gray: #f8f8f8;
  --border-gray: #e0e0e0;
  --divider-gray: #d0d0d0;
  
  --text-dark: #191A1B;
  --text-medium: #333333;
  --text-light: #666666;
  
  /* Exact Typography from www.milimetrica.info */
  --font-heading: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Poppins', 'Segoe UI', Arial, sans-serif;
  
  /* Layout */
  --container-max: 1200px;
  --transition: 0.25s ease;
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.06);
  --shadow-md: 0 6px 24px rgba(0,0,0,0.08);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-style: normal;
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

/* ===== CONTAINER ===== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-style: normal;
  color: var(--text-dark);
  line-height: 1.2;
  letter-spacing: -0.5px;
  text-transform: none;
}

h1 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
}

h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
}

h3 {
  font-size: clamp(1.3rem, 2vw, 1.65rem);
}

h4 {
  font-size: 1.15rem;
  font-weight: 600;
}

p, li, label, input, textarea, select {
  font-family: var(--font-body);
  font-weight: 400;
  font-style: normal;
}

p {
  font-size: 1.0625rem; /* ~17px */
  line-height: 1.85;
  margin-bottom: 1.2rem;
  color: var(--text-medium);
}

p:last-child {
  margin-bottom: 0;
}

/* ===== PREHEADER ===== */
.preheader {
  background-color: var(--primary);
  padding: 6px 0;
}

.preheader .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.lang-selector {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #aaaaaa;
  font-size: 0.8rem;
  font-family: var(--font-body);
  font-weight: 400;
  padding: 2px 6px;
  transition: color var(--transition);
}

.lang-item.active,
.lang-item:hover {
  color: var(--white);
}

.lang-flag {
  width: 16px;
  height: 11px;
  border-radius: 2px;
}

.lang-flag-es {
  background: linear-gradient(to bottom, #c60b1e 0%, #c60b1e 25%, #ffc400 25%, #ffc400 75%, #c60b1e 75%, #c60b1e 100%);
}

.lang-flag-en {
  background: #012169;
}

/* ===== HEADER & NAVIGATION ===== */
.site-header {
  background-color: var(--white);
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 10px rgba(0,0,0,0.03);
}

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

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 75px;
  max-height: 85px;
  width: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  justify-content: flex-end;
}

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px 22px;
}

.main-nav a {
  display: inline-block;
  padding: 6px 0;
  font-family: var(--font-body);
  font-size: 0.95rem; /* ~15px */
  font-weight: 400;
  color: rgba(25, 26, 27, 0.75);
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--primary);
  border-bottom-color: var(--accent);
}

.main-nav li.active a {
  color: var(--primary);
  font-weight: 500;
  border-bottom: 2px solid var(--accent);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  border: none;
  background: none;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ===== HERO SECTION (CLEAN & NATURAL) ===== */
.hero {
  position: relative;
  height: 290px;
  min-height: 260px;
  overflow: hidden;
  background-color: var(--primary);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero.jpg');
  background-size: cover;
  background-position: 50% 50%;
}

.hero-overlay {
  display: none; /* NO dark blue overlay! Exact natural corrugated kraft paper */
}

/* ===== PAGE TITLE BANNER (INNER PAGES) ===== */
.page-title-banner {
  position: relative;
  height: 220px;
  min-height: 200px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-color: var(--primary);
}

.page-title-banner .bg-img {
  position: absolute;
  inset: 0;
  background-image: url('../images/header-banner.jpg');
  background-size: cover;
  background-position: 50% 50%;
}

.page-title-banner .overlay {
  position: absolute;
  inset: 0;
  background: rgba(25, 26, 27, 0.45); /* Soft neutral dark layer */
}

.page-title-banner .title-content {
  position: relative;
  z-index: 2;
  padding: 40px 0;
  width: 100%;
}

.page-title-banner h1 {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  text-shadow: 0 2px 15px rgba(0,0,0,0.35);
}

.page-title-strip {
  height: 8px;
  background: var(--accent);
}

.breadcrumb {
  padding: 14px 0;
  font-size: 0.85rem;
  color: var(--text-light);
}

.breadcrumb a {
  color: var(--text-light);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb span {
  margin: 0 8px;
}

/* ===== INTRO SECTION ===== */
.intro-section {
  padding: 55px 0 35px;
  text-align: center;
  background: var(--white);
}

.intro-section h1 {
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.25;
  max-width: 900px;
  margin: 0 auto 16px;
  letter-spacing: -0.5px;
}

.intro-section h2,
.intro-section .subtitle {
  color: #333333;
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 400;
  font-style: normal; /* STRICTLY NOT ITALIC */
  margin-bottom: 24px;
}

.intro-divider {
  width: 70px;
  height: 3px;
  background: var(--divider-gray);
  margin: 0 auto;
  border-radius: 2px;
}

/* ===== FEATURES STRIP (WARM CORAL / TERRACOTTA #F79A68) ===== */
.features-section {
  background-color: var(--accent); /* EXACT BaseKit style-accent: #F79A68 */
  padding: 55px 0;
  color: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.feature-card {
  padding: 10px 14px;
  text-align: left;
}

.feature-card h4 {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.feature-card p {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  font-style: normal; /* STRICTLY NOT ITALIC */
  line-height: 1.7;
  margin: 0;
}

.features-cta {
  text-align: center;
  padding-top: 35px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-transform: none;
  letter-spacing: 0;
}

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

.btn-white:hover {
  background-color: #f0f0f0;
  color: var(--primary);
}

.btn-primary {
  background-color: var(--accent);
  color: var(--white);
}

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

.btn-secondary {
  background-color: transparent;
  color: var(--white);
  border: 1.5px solid var(--white);
}

.btn-secondary:hover {
  background-color: var(--white);
  color: var(--primary);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
}

/* ===== PAGE SECTION ===== */
.page-section {
  padding: 60px 0;
}

/* ===== FOCUSED CONTAINER (MATCHES ORIGINAL BASEKIT 860px WRAPPER) ===== */
.container-focused {
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.two-col img {
  border-radius: 6px;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

/* ===== THREE COL / ENCAJABIO & FSC ===== */
.three-col-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1.2fr;
  gap: 40px;
  align-items: center;
}

/* ===== ADVANTAGES GRID ===== */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 35px;
}

.adv-card {
  background: var(--white);
  border-radius: 4px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--accent);
}

.adv-card h4 {
  color: var(--primary);
  margin-bottom: 12px;
}

.adv-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

/* ===== GALLERY GRID ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: stretch;
}

.gallery-grid img,
.aspect-square-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

/* ===== STATS STRIP ===== */
.stats-strip {
  background: var(--primary);
  padding: 55px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-item {
  color: var(--white);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.5px;
}

/* ===== CONTACT SECTION ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 50px;
}

.contact-info h2 {
  color: var(--primary);
  margin-bottom: 20px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.contact-icon {
  width: 38px;
  height: 38px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--white);
}

.contact-detail-text h5 {
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
  color: var(--primary);
}

.contact-detail-text p,
.contact-detail-text a {
  font-size: 0.95rem;
  color: var(--text-medium);
  margin: 0;
}

.contact-detail-text a:hover {
  color: var(--accent);
}

.contact-form {
  background: var(--white);
  padding: 35px;
  border-radius: 6px;
  box-shadow: var(--shadow-md);
}

.contact-form h3 {
  color: var(--primary);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d5d5d5;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: border-color var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

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

/* ===== EU BANNER ===== */
.eu-banner {
  background: var(--white);
  padding: 30px 0;
  border-top: 1px solid var(--border-gray);
  border-bottom: 1px solid var(--border-gray);
}

.eu-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.eu-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  text-align: center;
  flex: 1;
}

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

.eu-logos img {
  height: 55px;
  object-fit: contain;
}

/* ===== FOOTER ===== */
.site-footer {
  background-color: var(--primary);
  color: rgba(255,255,255,0.8);
  padding: 55px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 35px;
  padding-bottom: 35px;
}

.footer-col h5 {
  color: var(--accent-light);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
  text-align: center;
}

.footer-col p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  line-height: 1.7;
  text-align: center;
  margin: 0;
}

.footer-col a {
  color: rgba(255,255,255,0.7);
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copyright {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

.footer-links a:hover {
  color: var(--accent);
}

/* ===== COOKIE CONSENT STYLES ===== */
.cookie-banner {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  background: rgba(25, 26, 27, 0.97);
  color: var(--white);
  padding: 20px 0;
  z-index: 9999;
  transition: bottom 0.4s ease;
  border-top: 2px solid var(--accent);
}

.cookie-banner.visible {
  bottom: 0;
}

.cookie-banner-content {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-banner-text h4 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.cookie-banner-text p {
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 9px 18px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}

.cookie-btn-accept {
  background: var(--accent);
  color: var(--white);
}

.cookie-btn-reject {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

.cookie-btn-config {
  background: transparent;
  color: #bbb;
  border: 1px solid rgba(255,255,255,0.3);
}

.cookie-trigger-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  border: 2px solid var(--accent);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9998;
}

.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  padding: 20px;
}

.cookie-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cookie-modal {
  background: var(--white);
  border-radius: 6px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-md);
}

.cookie-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid #eee;
}

.cookie-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.cookie-modal-body {
  padding: 20px 24px;
}

.cookie-category {
  background: #f9f9f9;
  border-radius: 4px;
  padding: 14px;
  margin-bottom: 12px;
}

.cookie-cat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.cookie-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
}

.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #ccc;
  transition: .3s;
  border-radius: 22px;
}

.cookie-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .cookie-slider {
  background-color: var(--accent);
}

input:checked + .cookie-slider:before {
  transform: translateX(18px);
}

.cookie-modal-footer {
  padding: 14px 24px;
  border-top: 1px solid #eee;
  text-align: right;
}

/* ===== RESPONSIVE MEDIA QUERIES (TABLETS & MOBILES) ===== */

/* Tablets & Small Laptops (max-width: 1024px) */
@media (max-width: 1024px) {
  .header-inner {
    padding: 12px 20px;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .two-col {
    gap: 36px;
  }
  
  .three-col-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  
  .three-col-grid p {
    text-align: left;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

/* Tablet Portrait & Mobile Menu Trigger (max-width: 960px) */
@media (max-width: 960px) {
  .site-header {
    position: sticky;
    top: 0;
  }

  .header-inner {
    padding: 10px 20px;
    position: relative;
  }

  .logo-img {
    height: 56px;
    max-height: 60px;
  }

  /* Hamburger Toggle */
  .menu-toggle {
    display: flex;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
  }

  .menu-toggle span {
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }

  /* Dropdown Drawer Nav */
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    border-top: 1px solid #eeeeee;
    padding: 8px 0 16px;
    z-index: 1000;
  }

  .main-nav.open {
    display: block !important;
    animation: fadeInMenu 0.25s ease forwards;
  }

  @keyframes fadeInMenu {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .main-nav a {
    display: block;
    padding: 13px 24px;
    font-size: 1rem;
    font-weight: 400;
    color: #191A1B;
    border-bottom: 1px solid #f2f2f2;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
  }

  .main-nav a:hover,
  .main-nav li.active a {
    background-color: #fdf6f2;
    color: var(--accent);
    border-left-color: var(--accent);
    border-bottom: 1px solid #f2f2f2;
    padding-left: 28px;
  }

  /* Hero & Banner Heights on Tablet */
  .hero {
    height: 250px;
    min-height: 220px;
  }

  .page-title-banner {
    height: 200px;
    min-height: 180px;
  }
}

/* Smartphone / Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
  .container {
    padding: 0 18px;
  }

  .preheader .container {
    justify-content: center;
  }

  .intro-section {
    padding: 40px 0 25px;
  }

  .intro-section h1 {
    font-size: clamp(1.6rem, 5vw, 2.1rem);
    line-height: 1.25;
  }

  .intro-section h2,
  .intro-section .subtitle {
    font-size: 1.15rem;
    margin-bottom: 20px;
  }

  /* Hero Banner on Mobile */
  .hero {
    height: 210px;
    min-height: 190px;
  }

  .page-title-banner {
    height: 170px;
    min-height: 150px;
  }

  .page-title-banner .title-content {
    padding: 30px 0;
  }

  .page-title-banner h1 {
    font-size: 1.8rem;
  }

  /* Grids Collapse to 1 Column */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .feature-card {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding: 18px 0 0;
  }

  .feature-card:first-child {
    border-top: none;
    padding-top: 0;
  }

  .two-col,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .adv-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Form Styling */
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-form {
    padding: 24px 18px;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    font-size: 16px; /* Avoids auto-zoom on iOS safari */
  }

  /* Footer on Mobile */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
    text-align: center;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
  }

  /* EU Banner Mobile */
  .eu-banner-inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .eu-logos {
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
  }

  .eu-logos img {
    height: 46px;
  }

  /* Cookie Banner Mobile */
  .cookie-banner-content {
    flex-direction: column;
    text-align: center;
    gap: 14px;
    padding: 0 16px;
  }

  .cookie-banner-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .cookie-btn {
    width: 100%;
    min-height: 42px;
    text-align: center;
  }

  .cookie-trigger-btn {
    bottom: 14px;
    left: 14px;
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}

/* Extra Small Phones (max-width: 480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 14px;
  }

  .logo-img {
    height: 48px;
    max-height: 50px;
  }

  .btn {
    width: 100%;
    padding: 12px 18px;
    font-size: 0.92rem;
  }

  .intro-section h1 {
    font-size: 1.5rem;
  }

  .intro-section h2,
  .intro-section .subtitle {
    font-size: 1.05rem;
  }

  .contact-form {
    padding: 20px 14px;
  }
}

/* ===== ENCAJABIO PHOTOGRAPHIC & ODS GALLERY ===== */
.eb-materials-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
  margin-top: 30px;
}

.eb-materials-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.eb-materials-photos img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.eb-materials-photos img:hover {
  transform: scale(1.02);
}

.eb-offer-card {
  background: var(--off-white);
  border-left: 4px solid var(--primary);
  padding: 24px 28px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.eb-offer-card h3 {
  color: var(--primary);
  font-size: 1.25rem;
  margin-bottom: 16px;
  font-family: var(--font-heading);
}

.eb-offer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.eb-offer-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  font-weight: 500;
  color: var(--text-dark);
}

.eb-offer-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-weight: bold;
}

.ods-section-title {
  text-align: center;
  margin-bottom: 12px;
  color: var(--primary);
  font-size: 1.6rem;
}

.ods-section-desc {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 30px auto;
  color: var(--text-medium);
}

.ods-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.ods-item {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ods-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.ods-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

/* Material spec detail bullet lists */
.eb-spec-block {
  margin-bottom: 24px;
}

.eb-spec-block h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 8px;
  font-weight: 600;
}

.eb-spec-list {
  list-style: disc;
  padding-left: 20px;
  line-height: 1.7;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.eb-spec-list li {
  margin-bottom: 4px;
}

.eb-spec-list strong {
  color: var(--text-dark);
  font-weight: 600;
}

@media (max-width: 992px) {
  .eb-materials-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .ods-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .eb-materials-photos img {
    height: 220px;
  }
}


