/*
Theme Name: NVS Automatización
Theme URI: https://nvsautomatizacion.com
Author: NVS Automatización Colombia S.A.S.
Description: Tema corporativo NVS Automatización (paleta oficial: #1E6BD6 / #00B4FF / #0A2D6B, tipografía Montserrat).
Version: 2.0.0
Text Domain: nvs
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: #222;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== VARIABLES ===== */
:root {
  /* Paleta oficial NVS (hoja de marca) */
  --blue: #1E6BD6;        /* Azul Principal  */
  --blue-light: #00B4FF;  /* Azul Secundario */
  --blue-dark: #0A2D6B;   /* Azul Oscuro     */
  --bg: #f4f8fe;
  --white: #ffffff;
  --gray: #eef3fa;
  --gray2: #dbe5f3;
  --text: #0f2347;
  --text-light: #4a5b78;
  --accent: #e6f2ff;
  --shadow: 0 4px 24px rgba(10,45,107,0.10);
  --radius: 12px;
  --nav-h: 70px;
}

/* ===== NAVBAR (blanco: el logo oficial está diseñado para fondo claro) ===== */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 16px rgba(10,45,107,0.12);
  border-bottom: 3px solid var(--blue);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: var(--nav-h);
}
.nav-logo { display: flex; align-items: center; }
.nav-logo a, .nav-logo .custom-logo-link { display: flex; align-items: center; }
.nav-logo img, .nav-logo .custom-logo { height: 52px; width: auto; max-width: 240px; }
.nav-links { display: flex; align-items: center; gap: 0.2rem; list-style: none; }
.nav-links a {
  color: var(--blue-dark); font-size: 0.92rem; font-weight: 600;
  padding: 8px 16px; border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.nav-links a:hover, .nav-links a.active, .nav-links a[aria-current="page"] {
  background: var(--accent); color: var(--blue);
}
.nav-links a.nav-cta, .nav-links a.nav-cta:hover {
  background: var(--blue); color: #fff; font-weight: 700; padding: 8px 20px;
}
.nav-links a.nav-cta:hover { background: var(--blue-dark); }
.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  padding: 8px; background: none; border: 0;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--blue-dark); border-radius: 2px; transition: 0.3s; }
body { padding-top: var(--nav-h); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 2px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--blue-dark); color: #fff; padding: 10px 16px; z-index: 2000; }
.skip-link:focus { left: 8px; top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ===== PAGE SECTIONS ===== */
.page { display: none; }
/* This tells the browser to show the page ONLY if it has the 'active' class */
.page.active {
    display: block !important;
}

/* ===== HERO ===== */
.hero {
  min-height: calc(100vh - var(--nav-h));
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-dark) 30%, var(--blue) 100%);
  display: flex; align-items: center;
  padding: 60px 2rem 60px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner {
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
  position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,180,255,0.18); color: #fff;
  padding: 6px 16px; border-radius: 50px; font-size: 0.82rem; font-weight: 600;
  border: 1px solid rgba(255,255,255,0.2); margin-bottom: 1.5rem;
}
.hero h1 {
  color: #fff; font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800; line-height: 1.15; margin-bottom: 1.2rem;
}
.hero h1 span { color: var(--blue-light); }
.hero p {
  color: rgba(255,255,255,0.82); font-size: 1.08rem; margin-bottom: 2rem;
  line-height: 1.7;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  background: var(--white); color: var(--blue-dark);
  padding: 14px 32px; border-radius: var(--radius); font-weight: 700;
  font-size: 0.95rem; border: none; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.16); }
.btn-outline {
  background: transparent; color: #fff;
  padding: 14px 32px; border-radius: var(--radius); font-weight: 600;
  font-size: 0.95rem; border: 2px solid rgba(255,255,255,0.5); cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.hero-visual {
  display: flex; flex-direction: column; gap: 1rem;
}
.hero-stats {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem;
}
.hero-stat {
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius); padding: 1.2rem; text-align: center;
}
.hero-stat strong { display: block; color: #fff; font-size: 1.8rem; font-weight: 800; }
.hero-stat span { color: rgba(255,255,255,0.7); font-size: 0.82rem; }
.hero-card {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius); padding: 1.5rem;
}
.hero-card h3 { color: var(--blue-light); font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem; }
.service-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.service-pill {
  background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.9);
  padding: 5px 14px; border-radius: 50px; font-size: 0.8rem; font-weight: 500;
}

/* ===== SECTIONS SHARED ===== */
.section { padding: 80px 2rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label {
  display: inline-block; background: var(--accent); color: var(--blue-dark);
  padding: 5px 14px; border-radius: 50px; font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800;
  color: var(--text); margin-bottom: 0.8rem; line-height: 1.2;
}
.section-title span { color: var(--blue); }
.section-subtitle {
  color: var(--text-light); font-size: 1.05rem; max-width: 600px;
}
.section-header { margin-bottom: 3rem; }
.section-header.center { text-align: center; }
.section-header.center .section-subtitle { margin: 0 auto; }

/* 70px for the navbar + 30px breathing room */
.page-header { padding-top: 30px; }

/* ===== ABOUT SECTION ===== */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.about-features { display: flex; flex-direction: column; gap: 1.2rem; margin-top: 2rem; }
.about-feature {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--white); padding: 1.2rem; border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.about-feature-icon {
  width: 44px; height: 44px; background: var(--accent);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--blue); font-size: 1.1rem;
}
.about-feature h4 { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.about-feature p { font-size: 0.85rem; color: var(--text-light); }
.about-visual {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  border-radius: 20px; padding: 2.5rem; color: #fff;
}
.about-visual h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 1.5rem; }
.about-list { list-style: none; display: flex; flex-direction: column; gap: 0.8rem; }
.about-list li {
  display: flex; gap: 10px; align-items: center;
  font-size: 0.92rem; color: rgba(255,255,255,0.88);
}
.about-list li i { color: var(--blue-light); flex-shrink: 0; }

/* ===== SUCCESS CASES ===== */
.bg-gray { background: var(--gray); }
.cases-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem;
}
.case-card {
  background: var(--white); border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow);
  border-top: 4px solid var(--blue);
  transition: transform 0.2s, box-shadow 0.2s;
}
.case-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(10,45,107,0.14); }
.case-industry {
  display: inline-block; background: var(--accent); color: var(--blue-dark);
  padding: 3px 12px; border-radius: 50px; font-size: 0.78rem; font-weight: 700;
  margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.5px;
}
.case-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: 0.6rem; }
.case-card p { font-size: 0.88rem; color: var(--text-light); line-height: 1.6; margin-bottom: 1rem; }
.case-result {
  display: flex; align-items: center; gap: 8px;
  background: var(--accent); padding: 8px 14px; border-radius: 8px;
}
.case-result i { color: var(--blue); }
.case-result span { font-size: 0.83rem; font-weight: 600; color: var(--blue-dark); }

/* ===== EVENTS ===== */
.events-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem;
}
.event-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.event-card:hover { transform: translateY(-4px); }
.event-header {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  padding: 1.5rem; color: #fff;
}
.event-date { font-size: 0.8rem; opacity: 0.8; margin-bottom: 0.5rem; }
.event-header h3 { font-size: 1rem; font-weight: 700; }
.event-body { padding: 1.2rem; }
.event-body p { font-size: 0.87rem; color: var(--text-light); margin-bottom: 0.8rem; }
.event-location {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.82rem; color: var(--blue); font-weight: 600;
}

/* ===== CATALOG ===== */
.catalog-header-section {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  padding: 70px 2rem 60px; color: #fff; text-align: center;
}
.catalog-header-section h1 { font-size: clamp(1.8rem,4vw,3rem); font-weight: 800; margin-bottom: 1rem; }
.catalog-header-section p { font-size: 1.05rem; opacity: 0.85; max-width: 600px; margin: 0 auto; }
.catalog-tabs {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  padding: 2rem 2rem 0; max-width: 1200px; margin: 0 auto;
}
.cat-tab {
  padding: 10px 24px; border-radius: 50px; font-weight: 600; font-size: 0.9rem;
  cursor: pointer; border: 2px solid var(--blue); color: var(--blue);
  background: transparent; transition: 0.2s;
}
.cat-tab.active, .cat-tab:hover { background: var(--blue); color: #fff; }
.cat-content { display: none; }
.cat-content.active { display: block; }
.products-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 1.5rem;
  padding: 2rem 0;
}
.product-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(10,45,107,0.14); }
.product-img {
  height: 180px; background: var(--gray);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.product-img img { width: 100%; height: 100%; object-fit: contain; padding: 1rem; }
.product-img-placeholder {
  width: 80px; height: 80px; background: var(--accent);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  color: var(--blue); font-size: 2rem;
}
.product-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.product-model {
  display: inline-block; background: var(--accent); color: var(--blue-dark);
  padding: 3px 12px; border-radius: 50px; font-size: 0.78rem; font-weight: 700;
  margin-bottom: 0.6rem;
}
.product-body h3 { font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: 0.6rem; }
.product-body p { font-size: 0.86rem; color: var(--text-light); line-height: 1.6; flex: 1; }
.product-specs {
  display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1rem 0;
}
.spec-tag {
  background: var(--gray); color: var(--text-light);
  padding: 3px 10px; border-radius: 50px; font-size: 0.75rem; font-weight: 500;
}
.product-certifs {
  display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1rem;
}
.certif-badge {
  background: #e8f5e9; color: #2e7d32;
  padding: 2px 8px; border-radius: 4px; font-size: 0.72rem; font-weight: 700;
}
.btn-inquire {
  width: 100%; background: var(--blue); color: #fff;
  border: none; padding: 12px; border-radius: 8px; font-weight: 700;
  font-size: 0.9rem; cursor: pointer; transition: background 0.2s;
  margin-top: auto;
}
.btn-inquire:hover { background: var(--blue-dark); }

/* ===== CONTACT MODAL ===== */
.modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
}
.modal-overlay.open {
    display: flex; /* Show when open */
    align-items: center;
    justify-content: center;
}
.modal {
  background: var(--white); border-radius: 16px;
  padding: 2.5rem; max-width: 480px; width: 100%;
  box-shadow: 0 24px 64px rgba(10,45,107,0.24);
  position: relative;
}
.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--gray); border: none; width: 32px; height: 32px;
  border-radius: 50%; cursor: pointer; font-size: 1rem; color: var(--text-light);
}
.modal h3 { font-size: 1.3rem; font-weight: 800; color: var(--blue); margin-bottom: 0.4rem; }
.modal p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 1.5rem; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--gray2);
  border-radius: 8px; font-size: 0.9rem; font-family: inherit;
  background: var(--bg); color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(10,45,107,0.08);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.btn-submit {
  width: 100%; background: var(--blue); color: #fff;
  border: none; padding: 14px; border-radius: 8px; font-weight: 700;
  font-size: 0.95rem; cursor: pointer; transition: background 0.2s;
}
.btn-submit:hover { background: var(--blue-dark); }

/* ===== SERVICES ===== */
.services-header {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  padding: 70px 2rem 60px; color: #fff; text-align: center;
}
.services-header h1 { font-size: clamp(1.8rem,4vw,3rem); font-weight: 800; margin-bottom: 1rem; }
.services-header p { font-size: 1.05rem; opacity: 0.85; max-width: 600px; margin: 0 auto; }
.services-grid {
  display: grid; grid-template-columns: repeat(2,1fr); gap: 2rem;
}
.service-card {
  background: var(--white); border-radius: var(--radius);
  padding: 2.5rem; box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue-light) 100%);
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(10,45,107,0.14); }
.service-icon {
  width: 64px; height: 64px; background: var(--accent);
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
  color: var(--blue); font-size: 1.6rem; margin-bottom: 1.5rem;
}
.service-card h2, .service-card h3 { font-size: 1.15rem; font-weight: 800; color: var(--text); margin-bottom: 0.8rem; }
.service-card p { font-size: 0.92rem; color: var(--text-light); line-height: 1.7; margin-bottom: 1.2rem; }
.service-bullets { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.service-bullets li {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 0.87rem; color: var(--text-light);
}
.service-bullets li i { color: var(--blue); margin-top: 3px; flex-shrink: 0; }
.services-cta {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  border-radius: 20px; padding: 3rem; text-align: center; color: #fff; margin-top: 3rem;
}
.services-cta h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.8rem; }
.services-cta p { opacity: 0.85; margin-bottom: 1.5rem; }

/* ===== BLOG ===== */
.blog-header {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  padding: 70px 2rem 60px; color: #fff; text-align: center;
}
.blog-header h1 { font-size: clamp(1.8rem,4vw,3rem); font-weight: 800; margin-bottom: 1rem; }
.blog-header p { font-size: 1.05rem; opacity: 0.85; max-width: 600px; margin: 0 auto; }
.blog-grid {
  display: grid; grid-template-columns: 2fr 1fr; gap: 2.5rem; align-items: start;
}
.blog-posts { display: flex; flex-direction: column; gap: 2rem; }
.blog-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.blog-card:hover { transform: translateY(-4px); }
.blog-thumb {
  height: 200px;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.3); font-size: 4rem;
}
.blog-content { padding: 1.8rem; }
.blog-meta {
  display: flex; gap: 1rem; margin-bottom: 0.8rem; flex-wrap: wrap;
}
.blog-cat {
  background: var(--accent); color: var(--blue-dark);
  padding: 3px 12px; border-radius: 50px; font-size: 0.75rem; font-weight: 700;
}
.blog-date { font-size: 0.8rem; color: var(--text-light); display: flex; align-items: center; gap: 4px; }
.blog-content h2 { font-size: 1.15rem; font-weight: 800; color: var(--text); margin-bottom: 0.6rem; line-height: 1.4; }
.blog-content p { font-size: 0.88rem; color: var(--text-light); line-height: 1.7; margin-bottom: 1rem; }
.read-more {
  color: var(--blue); font-weight: 700; font-size: 0.88rem;
  display: inline-flex; align-items: center; gap: 6px;
}
.read-more:hover { gap: 10px; }
.blog-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-widget {
  background: var(--white); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
}
.sidebar-widget h4 {
  font-size: 0.95rem; font-weight: 800; color: var(--text);
  margin-bottom: 1rem; padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--accent);
}
.recent-post {
  display: flex; gap: 10px; padding: 0.8rem 0;
  border-bottom: 1px solid var(--gray);
}
.recent-post:last-child { border-bottom: none; }
.recent-icon {
  width: 44px; height: 44px; background: var(--accent);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  color: var(--blue); flex-shrink: 0; font-size: 1rem;
}
.recent-post h5 { font-size: 0.83rem; font-weight: 600; color: var(--text); line-height: 1.4; margin-bottom: 2px; }
.recent-post span { font-size: 0.75rem; color: var(--text-light); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  background: var(--accent); color: var(--blue-dark);
  padding: 5px 14px; border-radius: 50px; font-size: 0.78rem; font-weight: 600;
  cursor: pointer;
}
.tag:hover { background: var(--blue); color: #fff; }
.newsletter-form { display: flex; flex-direction: column; gap: 0.8rem; }
.newsletter-form input {
  padding: 10px 14px; border: 1.5px solid var(--gray2);
  border-radius: 8px; font-size: 0.88rem; font-family: inherit;
  background: var(--bg); color: var(--text);
}
.newsletter-form input:focus { outline: none; border-color: var(--blue); }

/* ===== CONTACT ===== */
.contact-header {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  padding: 70px 2rem 60px; color: #fff; text-align: center;
}
.contact-header h1 { font-size: clamp(1.8rem,4vw,3rem); font-weight: 800; margin-bottom: 1rem; }
.contact-header p { font-size: 1.05rem; opacity: 0.85; max-width: 600px; margin: 0 auto; }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start;
}
.contact-form-card {
  background: var(--white); border-radius: var(--radius);
  padding: 2.5rem; box-shadow: var(--shadow);
}
.contact-form-card h3 { font-size: 1.3rem; font-weight: 800; color: var(--text); margin-bottom: 0.4rem; }
.contact-form-card > p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 1.5rem; }
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.info-card {
  background: var(--white); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
  display: flex; gap: 1rem; align-items: flex-start;
}
.info-icon {
  width: 48px; height: 48px; background: var(--accent);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  color: var(--blue); font-size: 1.2rem; flex-shrink: 0;
}
.info-card h4 { font-size: 0.9rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.info-card p { font-size: 0.87rem; color: var(--text-light); }
.social-links { display: flex; gap: 1rem; }
.social-link {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; transition: transform 0.2s;
  text-decoration: none;
}
.social-link:hover { transform: translateY(-3px); }
.social-instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: #fff; }
.social-linkedin { background: #0077b5; color: #fff; }

/* ===== FOOTER ===== */
footer {
  background: var(--blue-dark); color: rgba(255,255,255,0.75);
  padding: 3rem 2rem 1.5rem;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand h3 { color: #fff; font-size: 1.1rem; font-weight: 800; margin-bottom: 0.8rem; }
.footer-brand p { font-size: 0.87rem; line-height: 1.7; margin-bottom: 1rem; }
.footer-social { display: flex; gap: 0.8rem; }
.footer-social a {
  width: 36px; height: 36px; background: rgba(255,255,255,0.1);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7); font-size: 0.9rem; transition: 0.2s;
}
.footer-social a:hover { background: rgba(255,255,255,0.2); color: #fff; }
.footer-col h4 { color: #fff; font-size: 0.9rem; font-weight: 700; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul li { font-size: 0.85rem; }
.footer-col ul li a { color: rgba(255,255,255,0.78); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--blue-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.83rem;
}

/* Fix for transparent modal background */
.modal-content {
    background: #ffffff; /* White background */
    border-radius: 12px;
    padding: 2.5rem;
    max-width: 600px;
    width: 90%; /* Ensures it fits nicely on smaller screens */
    box-shadow: 0 24px 64px rgba(10,45,107,0.24);
    position: relative;
    max-height: 90vh; /* Prevents it from overflowing the screen */
    overflow-y: auto; /* Adds scroll if the content is too long */
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-stats, .hero-card { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; align-items: stretch; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--white); padding: 1rem; box-shadow: 0 12px 24px rgba(10,45,107,0.15); }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .cases-grid, .events-grid, .services-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.5s ease both; }

/* ===== IMÁGENES (nuevas) ===== */
.img-frame { margin: 0; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--gray); }
.img-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-frame figcaption { font-size: 0.8rem; color: var(--text-light); padding: 0.6rem 0.9rem; background: var(--white); }

/* Hero: foto del stand */
.hero-photo { aspect-ratio: 4 / 3.2; border: 1px solid rgba(255,255,255,0.25); box-shadow: 0 16px 48px rgba(0,0,0,0.30); }
.hero-photo img { object-position: center 40%; }

/* Quiénes somos: foto del equipo */
.about-photo { aspect-ratio: 16 / 9.7; margin-top: 1.5rem; }

/* Galería de ferias */
.fair-gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 1rem; }
.fair-gallery .img-frame { height: 100%; position: relative; }
.fair-gallery .tall { grid-row: span 2; }
.fair-gallery .wide { grid-column: span 2; }
.fair-gallery .img-frame figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; color: #fff;
  background: linear-gradient(0deg, rgba(10,45,107,0.92), rgba(10,45,107,0));
  padding: 1.8rem 1rem 0.8rem; font-weight: 600;
}

/* Catálogo: tira de vitrinas */
.catalog-showcase { display: grid; grid-template-columns: 1fr 1.4fr 1.4fr; gap: 1rem; margin: 2rem 0 0; }
.catalog-showcase .img-frame { height: 260px; }

/* Servicios / contacto: bandas con foto */
.photo-band { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; margin-top: 3rem; }
.photo-band .img-frame { aspect-ratio: 3 / 4; max-height: 480px; }
.photo-band h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 800; color: var(--text); margin-bottom: 0.8rem; }
.photo-band p { color: var(--text-light); margin-bottom: 1.2rem; }
.contact-photo { aspect-ratio: 4 / 3; }

/* FAQ (útil para SEO y para motores de respuesta con IA) */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 0.8rem; border-left: 4px solid var(--blue); }
.faq summary { cursor: pointer; padding: 1.1rem 1.4rem; font-weight: 700; color: var(--blue-dark); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; color: var(--blue); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 1.4rem 1.2rem; color: var(--text-light); }

/* Ficha de producto */
.product-single { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; }
.product-single .img-frame { padding: 1.5rem; background: var(--white); }
.product-single .img-frame img { object-fit: contain; }
.breadcrumbs { font-size: 0.85rem; color: var(--text-light); margin-bottom: 1.5rem; }
.breadcrumbs a { color: var(--blue); font-weight: 600; }
.product-card h3 a:hover { color: var(--blue); }
.btn-link { display: block; text-align: center; background: var(--blue); color: #fff; padding: 12px; border-radius: 8px; font-weight: 700; margin-top: 0.6rem; }
.btn-link:hover { background: var(--blue-dark); }
a.btn-primary, a.btn-outline, a.btn-submit { display: inline-block; text-align: center; }

@media (max-width: 1024px) {
  .fair-gallery { grid-template-columns: repeat(2, 1fr); }
  .catalog-showcase { grid-template-columns: 1fr 1fr; }
  .catalog-showcase .img-frame:first-child { display: none; }
  .product-single, .photo-band { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-logo img, .nav-logo .custom-logo { height: 44px; }
  .fair-gallery { grid-auto-rows: 180px; }
  .fair-gallery .wide { grid-column: span 2; }
  .catalog-showcase { grid-template-columns: 1fr; }
  .catalog-showcase .img-frame { height: 200px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ===== Footer / modal (ajustes v2) ===== */
.footer-h { color: #fff; font-size: 0.9rem; font-weight: 700; margin-bottom: 1rem; }
.footer-bottom span { color: rgba(255,255,255,0.7); }
.modal-title { font-size: 1.3rem; font-weight: 800; color: var(--blue-dark); margin: 0 2rem 1rem 0; }
.modal-content .modal-close { position: absolute; top: 1rem; right: 1rem; }
.modal-content #modalFullDescription, .modal-content #modalTechnicalSpecs { font-size: 0.9rem; color: var(--text-light); margin-bottom: 1rem; }

.contact-form-card h2 { font-size: 1.3rem; font-weight: 800; color: var(--text); margin-bottom: 0.4rem; }
.info-card a { color: var(--blue); font-weight: 600; }
.info-card a:hover { color: var(--blue-dark); text-decoration: underline; }
.form-group input, .form-group textarea, .form-group select { font-size: 1rem; }
@media (max-width: 768px) { .catalog-showcase .img-frame:last-child { display: none; } }
