:root {
  /* Petroleum Blue and Sky Blue (Celeste) */
  --brand-dark: #0a2540;
  --brand-accent: #0ea5e9;
  --brand-accent-hover: #0284c7;
  
  /* UI Colors */
  --text-main: #1e293b;
  --text-muted: #64748b;
  --bg-white: #ffffff;
  --bg-alt: #f8fafc;
  --border-color: #f1f5f9;
  
  --radius-lg: 16px;
  --radius-md: 12px;
  --container-max: 1100px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-main);
  line-height: 1.6;
  background-color: var(--bg-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul {
  list-style: none;
}

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

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

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

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 24px 0;
  transition: var(--transition);
}

header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--brand-dark);
}

.logo img {
  height: 40px;
  width: auto;
}

.nav-desktop {
  display: none;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 28px;
  }
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-accent);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--brand-accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.btn-primary:hover {
  background: #0ea5e9;
  border-color: #0ea5e9;
}

.btn-secondary {
  background: var(--bg-alt);
  border: 2px solid var(--brand-dark);
  color: var(--brand-dark);
}

.btn-secondary:hover {
  background-color: var(--brand-accent) !important;
  border-color: var(--brand-accent) !important;
  color: white !important;
}

.menu-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--brand-dark);
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: white;
  z-index: 999;
  padding: 100px 40px;
  transition: 0.4s cubic-bezier(0.77,0.2,0.05,1.0);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu a {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--brand-dark);
}

/* Hero */
.hero {
  padding: 200px 0 120px;
  background: 
    radial-gradient(circle at 10% 20%, rgba(14, 165, 233, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(10, 37, 64, 0.05) 0%, transparent 40%),
    var(--bg-white);
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.1;
  color: var(--brand-dark);
  margin-bottom: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

/* Gradient Title */
.gradient-text {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 750px;
  margin: 0 auto 48px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.hero-btns {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
}

@media (min-width: 576px) {
  .hero-btns {
    flex-direction: row;
  }
}

/* Empresa */
.empresa {
  background: var(--bg-alt);
}

.empresa-grid {
  display: grid;
  gap: 80px;
  align-items: center;
}

@media (min-width: 768px) {
  .empresa-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.section-tag {
  display: inline-block;
  color: var(--brand-accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.5rem;
  color: var(--brand-dark);
  margin-bottom: 24px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.bullets {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bullet-item {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 700;
  color: var(--brand-dark);
}

.bullet-icon {
  color: var(--brand-accent);
  flex-shrink: 0;
}

.empresa-visual {
  background: linear-gradient(135deg, var(--brand-dark) 0%, #334155 100%);
  aspect-ratio: 1.2;
  border-radius: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.empresa-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.visual-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image: radial-gradient(circle at 2px 2px, var(--brand-accent) 1px, transparent 0);
  background-size: 32px 32px;
}

/* Servicios */
.services-grid {
  display: grid;
  gap: 32px;
  margin-top: 60px;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card {
  background: white;
  padding: 48px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-accent);
}

.service-icon {
  width: 72px;
  height: 72px;
  background: rgba(14, 165, 233, 0.08);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-accent);
  margin-bottom: 32px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--brand-accent);
  color: white;
  transform: scale(1.1);
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 16px;
  color: var(--brand-dark);
  font-weight: 800;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Proceso */
.proceso {
  background: var(--brand-dark);
  color: white;
  position: relative;
  overflow: hidden;
}

.proceso .section-title {
  color: white;
}

.proceso-grid {
  display: grid;
  gap: 48px;
  margin-top: 80px;
}

@media (min-width: 768px) {
  .proceso-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.proceso-item {
  position: relative;
  z-index: 1;
}

.proceso-number {
  font-size: 5rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.03);
  position: absolute;
  top: -40px;
  left: -20px;
  z-index: -1;
}

.proceso-content h3 {
  color: var(--brand-accent);
  margin-bottom: 16px;
  font-weight: 800;
}

.proceso-content p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

/* Beneficios */
.beneficios-grid {
  display: grid;
  gap: 40px;
  margin-top: 80px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.beneficio-item {
  text-align: center;
  padding: 32px;
  background: var(--bg-alt);
  border-radius: 24px;
  transition: var(--transition);
}

.beneficio-item:hover {
  background: white;
  box-shadow: var(--shadow-sm);
  transform: scale(1.05);
}

.beneficio-icon {
  width: 72px;
  height: 72px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--brand-accent);
  box-shadow: var(--shadow-sm);
}

.beneficio-item h4 {
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--brand-dark);
}

.beneficio-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Productos */
.productos {
  background: var(--bg-alt);
}

.productos-grid {
  display: grid;
  gap: 40px;
  max-width: 900px;
  margin: 80px auto 0;
}

@media (min-width: 768px) {
  .productos-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.product-placeholder {
  background: white;
  padding: 60px 40px;
  border-radius: 32px;
  border: 3px dashed var(--border-color);
  text-align: center;
  transition: var(--transition);
}

.product-placeholder:hover {
  border-color: var(--brand-accent);
  opacity: 1;
}

.product-placeholder h3 {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-weight: 800;
}

.btn-disabled {
  background: var(--bg-alt);
  color: var(--text-muted);
  cursor: not-allowed;
  padding: 10px 24px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-block;
}

/* Contacto */
.contacto-grid {
  display: grid;
  gap: 80px;
  margin-top: 80px;
}

@media (min-width: 1024px) {
  .contacto-grid {
    grid-template-columns: 1fr 1.3fr;
  }
}

.info-item {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
}

.info-icon {
  width: 56px;
  height: 56px;
  background: rgba(45, 212, 191, 0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-accent);
}

.info-text p:first-child {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.info-text p:last-child {
  font-weight: 700;
  color: var(--brand-dark);
  font-size: 1.1rem;
}

.contact-form {
  background: white;
  padding: 50px;
  border-radius: 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

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

.form-row {
  display: grid;
  gap: 24px;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--brand-dark);
}

input, textarea {
  width: 100%;
  padding: 16px;
  border-radius: 14px;
  border: 2px solid var(--border-color);
  font-family: inherit;
  transition: var(--transition);
  background: var(--bg-alt);
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--brand-accent);
  background: white;
  box-shadow: 0 0 0 5px rgba(14, 165, 233, 0.1);
}

.success-message {
  display: none;
  text-align: center;
  padding: 60px 0;
}

.success-message.active {
  display: block;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: #dcfce7;
  color: #166534;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

/* Footer */
footer {
  background: var(--brand-dark);
  padding: 100px 0 40px;
  color: white;
}

.footer-grid {
  display: grid;
  gap: 60px;
  margin-bottom: 80px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-logo {
  margin-bottom: 32px;
}

.footer-desc {
  color: rgba(255, 255, 255, 0.6);
  max-width: 350px;
  font-size: 1rem;
}

.footer-links h4 {
  margin-bottom: 32px;
  color: white;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.footer-links ul li {
  margin-bottom: 16px;
}

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

.footer-links a:hover {
  color: var(--brand-accent);
  padding-left: 8px;
}

.footer-bottom {
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-tagline {
  font-size: 0.8rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.4);
}
/* Baja el espacio entre una sección y la siguiente, tocando márgenes de títulos */
.section-title {
  margin-bottom: 16px; /* antes suele ser 24-32 */
}

/* Reduce el “aire” extra arriba del título dentro de secciones */
.section-padding .section-title {
  margin-top: 0;
}

/* Ajusta el espacio entre el bloque de “Servicios” y el título siguiente */
.services-grid {
  margin-bottom: 30px; /* si existe */
}