/* ==========================================================================
   VérticeSur — Global Styles
   Industria Óptica Argentina · Desde 1950
   ========================================================================== */

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Brand Colors */
  --blue-900: #1a1c5e;
  --blue-800: #222470;
  --blue-700: #2E3092;
  --blue-600: #3a3ca0;
  --blue-500: #4547a8;
  --blue-400: #6668c0;
  --blue-200: #b8b9e2;
  --blue-100: #d4d4ef;
  --blue-50:  #eceaf8;

  --cyan-800: #006a92;
  --cyan-600: #0090c8;
  --cyan-500: #00AEEF;
  --cyan-400: #33c1f5;
  --cyan-200: #b8eafc;
  --cyan-100: #d6f2fe;
  --cyan-50:  #e5f7fe;

  --neutral-900: #111827;
  --neutral-800: #1f2937;
  --neutral-700: #374151;
  --neutral-600: #4b5563;
  --neutral-500: #6B7280;
  --neutral-400: #9CA3AF;
  --neutral-300: #D1D5DB;
  --neutral-200: #E5E7EB;
  --neutral-100: #F3F4F6;
  --neutral-50:  #F9FAFB;

  --whatsapp: #25D366;

  /* Spacing */
  --section-pad: 100px 0;
  --container-width: 1200px;
  --container-pad: 0 24px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: 0.3s var(--ease-out);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  color: var(--neutral-800);
  line-height: 1.7;
  background: var(--neutral-50);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; }

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

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--neutral-900);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { font-weight: 300; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--cyan-500);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 32px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--cyan-500), transparent);
}

.section-title {
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--neutral-500);
  max-width: 600px;
  line-height: 1.7;
}

/* --- Grain Texture Overlay (site-wide) --- */
.grain::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

.grain > * { position: relative; z-index: 2; }

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.4s var(--ease-out);
}

.navbar.scrolled {
  background: rgba(26, 28, 94, 0.97);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo img {
  height: 36px;
  width: auto;
  transition: height var(--transition-base);
}

.navbar.scrolled .navbar-logo img { height: 30px; }

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

.navbar-nav a {
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.3px;
  transition: color var(--transition-base);
  position: relative;
}

.navbar-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1.5px;
  background: var(--cyan-400);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}

.navbar-nav a:hover { color: #fff; }
.navbar-nav a:hover::after,
.navbar-nav a.active::after { transform: scaleX(1); transform-origin: left; }
.navbar-nav a.active { color: #fff; }

.navbar-cta {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 9px 22px;
  background: var(--cyan-500);
  color: #fff !important;
  border-radius: 6px;
  transition: all var(--transition-base);
}

.navbar-cta::after { display: none !important; }
.navbar-cta:hover { background: var(--cyan-400); transform: translateY(-1px); }

/* Mobile menu toggle */
.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 4px;
}

.navbar-toggle span {
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, #141645 0%, #1e2075 35%, #2a2d8a 60%, #1a3a6e 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -40%; right: -15%;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,174,239,0.1) 0%, transparent 60%);
  z-index: 1;
}

.hero > * { position: relative; z-index: 2; }

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 60px;
}

.hero-content { max-width: 540px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cyan-400);
  background: rgba(0, 174, 239, 0.12);
  border: 1px solid rgba(0, 174, 239, 0.2);
  padding: 7px 18px;
  border-radius: 100px;
  margin-bottom: 28px;
  backdrop-filter: blur(4px);
}

.hero h1 {
  color: #fff;
  margin-bottom: 20px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--cyan-400), #7ad7f8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text {
  font-size: 1.1rem;
  color: rgba(184, 185, 226, 0.9);
  margin-bottom: 36px;
  max-width: 440px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 14px 30px;
  border-radius: 8px;
  transition: all var(--transition-base);
}

.btn-primary {
  background: var(--cyan-500);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 174, 239, 0.25);
}

.btn-primary:hover {
  background: var(--cyan-400);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 174, 239, 0.35);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
}

/* Hero Photo Grid */
.hero-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 200px 200px;
  gap: 12px;
}

.hero-photos .photo-main {
  grid-row: 1 / -1;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.hero-photos .photo-secondary {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.hero-photos img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position:center 34%;
}

.hero-photos .photo-main img,
.hero-photos .photo-secondary img {
  transition: transform 0.6s var(--ease-out);
}

.hero-photos .photo-main:hover img,
.hero-photos .photo-secondary:hover img {
  transform: scale(1.04);
}

.photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(26, 28, 94, 0.4) 100%);
  pointer-events: none;
}

/* --- Sections Common --- */
.section-light {
  padding: var(--section-pad);
  background: linear-gradient(180deg, var(--neutral-50) 0%, #fff 50%, var(--neutral-50) 100%);
  position: relative;
}

.section-dark {
  padding: var(--section-pad);
  background: linear-gradient(160deg, #141645 0%, #1e2075 50%, #1a3a6e 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.section-alt {
  padding: var(--section-pad);
  background: linear-gradient(180deg, #F7F7F9 0%, #EDEEF2 50%, #F7F7F9 100%);
  position: relative;
}

/* --- Timeline (History) --- */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 60px auto 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan-500), var(--blue-500), var(--cyan-500));
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  gap: 60px;
  margin-bottom: 80px;
  position: relative;
}

.timeline-item:nth-child(even) { flex-direction: row-reverse; }

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 24px;
  width: 16px; height: 16px;
  background: var(--cyan-500);
  border: 3px solid var(--blue-900);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: 0 0 0 4px rgba(0, 174, 239, 0.2);
}

.timeline-photo {
  width: calc(50% - 30px);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.timeline-photo img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.timeline-content {
  width: calc(50% - 30px);
  padding-top: 12px;
}

.timeline-year {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cyan-500);
  margin-bottom: 8px;
}

.timeline-content h3 { margin-bottom: 12px; }

.timeline-content p {
  font-size: 0.95rem;
  color: var(--neutral-600);
  line-height: 1.8;
}

/* --- Service Cards --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.service-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(46, 48, 146, 0.06);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 24px rgba(46,48,146,0.04);
  transition: all 0.4s var(--ease-out);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.06), 0 20px 48px rgba(46,48,146,0.1);
}

.service-card-accent {
  height: 4px;
  background: linear-gradient(90deg, var(--blue-700), var(--cyan-500));
}

.service-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.service-card-body { padding: 28px; }

.service-card-body h4 { margin-bottom: 10px; }

.service-card-body p {
  font-size: 0.92rem;
  color: var(--neutral-500);
  line-height: 1.7;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--cyan-600);
  margin-top: 16px;
  transition: gap var(--transition-base);
}

.service-card-link:hover { gap: 10px; }

/* --- Machine Preview Cards --- */
.machines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.machine-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.4s var(--ease-out);
  backdrop-filter: blur(4px);
}

.machine-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 174, 239, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.machine-card-img {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
}

.machine-card-img img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 20px;
}

.machine-badge {
  position: absolute;
  top: 16px; right: 16px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
}

.badge-nueva { background: var(--cyan-500); color: #fff; }
.badge-reacondicionada { background: rgba(255,255,255,0.15); color: #fff; }

.machine-card-body { padding: 24px; }

.machine-card-body h4 {
  color: #fff;
  margin-bottom: 8px;
}

.machine-card-body p {
  font-size: 0.88rem;
  color: rgba(184, 185, 226, 0.8);
  line-height: 1.6;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 20px;
  background: var(--whatsapp);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all var(--transition-base);
}

.btn-whatsapp:hover { background: #20bd5a; transform: translateY(-1px); }

.btn-whatsapp svg {
  width: 18px; height: 18px;
  fill: currentColor;
}

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-method {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  transition: all var(--transition-base);
}

.contact-method:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(0,174,239,0.2);
}

.contact-method-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 174, 239, 0.12);
  border-radius: 10px;
}

.contact-method-icon svg {
  width: 20px; height: 20px;
  stroke: var(--cyan-400);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-method h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.contact-method p {
  font-size: 0.88rem;
  color: rgba(184,185,226,0.8);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 300;
  transition: border-color var(--transition-base);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.3);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--cyan-500);
  box-shadow: 0 0 0 3px rgba(0,174,239,0.15);
}

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

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

/* --- Footer --- */
.footer {
  background: var(--neutral-900);
  padding: 60px 0 30px;
  color: var(--neutral-400);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand img {
  height: 32px;
  margin-bottom: 16px;
  opacity: 0.9;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--neutral-500);
  max-width: 280px;
}

.footer-col h5 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--neutral-300);
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 0.88rem;
  color: var(--neutral-500);
  transition: color var(--transition-base);
}

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

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--neutral-600);
}

/* --- Internal Pages Hero --- */
.page-hero {
  position: relative;
  padding: 160px 0 80px;
  background: linear-gradient(160deg, #141645 0%, #1e2075 50%, #1a3a6e 100%);
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
  pointer-events: none;
}

.page-hero > * { position: relative; }

.page-hero h1 { color: #fff; margin-bottom: 16px; }

.page-hero .breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(184,185,226,0.7);
  margin-bottom: 12px;
}

.page-hero .breadcrumb a { color: var(--cyan-400); }
.page-hero .breadcrumb span { opacity: 0.5; }

.page-hero-subtitle {
  font-size: 1.1rem;
  color: rgba(184,185,226,0.9);
  max-width: 560px;
}

/* --- Nosotros Page --- */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 48px;
}

.about-intro-text p {
  font-size: 1.02rem;
  color: var(--neutral-600);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-photo-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.about-photo-collage img {
  border-radius: 10px;
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.about-photo-collage img:first-child {
  grid-column: 1 / -1;
  height: 260px;
}

/* Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.value-card {
  text-align: center;
  padding: 40px 28px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(46,48,146,0.06);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.value-icon {
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue-50), var(--cyan-50));
  border-radius: 14px;
  margin: 0 auto 20px;
}

.value-icon svg {
  width: 26px; height: 26px;
  stroke: var(--blue-700);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.value-card h4 { margin-bottom: 10px; }
.value-card p { font-size: 0.9rem; color: var(--neutral-500); }

/* --- Servicios Page --- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.service-detail:nth-child(even) { direction: rtl; }
.service-detail:nth-child(even) > * { direction: ltr; }

.service-detail-img {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.service-detail-img img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.service-detail-content h3 { margin-bottom: 16px; }

.service-detail-content p {
  font-size: 0.95rem;
  color: var(--neutral-600);
  margin-bottom: 12px;
  line-height: 1.8;
}

.service-features {
  list-style: none;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--neutral-700);
}

.service-features li::before {
  content: '';
  flex-shrink: 0;
  width: 6px; height: 6px;
  background: var(--cyan-500);
  border-radius: 50%;
}

/* --- Maquinaria Page --- */
.machines-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.catalog-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--neutral-200);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: all 0.4s var(--ease-out);
}

.catalog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(46,48,146,0.08);
}

.catalog-card-img {
  position: relative;
  height: 260px;
  background: var(--neutral-100);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.catalog-card-img img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.catalog-card-body { padding: 24px; }
.catalog-card-body h4 { margin-bottom: 8px; }

.catalog-card-body p {
  font-size: 0.9rem;
  color: var(--neutral-500);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* --- Contacto Page Form (light bg variant) --- */
.contact-page-form input,
.contact-page-form textarea,
.contact-page-form select {
  background: var(--neutral-50);
  border-color: var(--neutral-200);
  color: var(--neutral-800);
}

.contact-page-form input::placeholder,
.contact-page-form textarea::placeholder {
  color: var(--neutral-400);
}

.contact-page-form input:focus,
.contact-page-form textarea:focus,
.contact-page-form select:focus {
  border-color: var(--cyan-500);
  box-shadow: 0 0 0 3px rgba(0,174,239,0.1);
}

.contact-page-form label { color: var(--neutral-600); }

/* --- Map Container --- */
.map-container {
  border-radius: 14px;
  overflow: hidden;
  height: 360px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.map-container iframe { width: 100%; height: 100%; border: 0; }

/* --- Scroll Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* --- WhatsApp Float --- */
.whatsapp-float {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 56px; height: 56px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  z-index: 900;
  transition: all var(--transition-base);
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
}

.whatsapp-float svg {
  width: 28px; height: 28px;
  fill: #fff;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-photos { max-width: 500px; }
  .services-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-intro { grid-template-columns: 1fr; }
  .service-detail { grid-template-columns: 1fr; }
  .service-detail:nth-child(even) { direction: ltr; }
  .values-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }

  .timeline::before { left: 24px; }
  .timeline-item,
  .timeline-item:nth-child(even) {
    flex-direction: column;
    padding-left: 56px;
  }
  .timeline-dot { left: 24px; }
  .timeline-photo,
  .timeline-content { width: 100%; }
}

@media (max-width: 768px) {
  :root {
    --section-pad: 60px 0;
    --container-pad: 0 20px;
  }

  .navbar-nav { display: none; }
  .navbar-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(26, 28, 94, 0.98);
    padding: 20px;
    gap: 16px;
    backdrop-filter: blur(12px);
  }
  .navbar-toggle { display: flex; }

  .hero { min-height: auto; padding: 120px 0 60px; }
  .hero-photos {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 160px 160px;
  }

  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .machines-catalog { grid-template-columns: 1fr; }
}
