/* ===== VARIABLES DE MARCA (según manual) ===== */
:root {
  --azul-principal: #003366;   /* Azul petróleo oscuro - Principal */
  --azul-secundario: #2e5b8a;  /* Azul medio - Secundario */
  --amarillo: #FFCC00;         /* Amarillo mostaza - Detalles/Energía */
  --blanco: #FFFFFF;
  --gris-claro: #f4f6f9;
  --gris-oscuro: #1a1a1a;
  --fuente: 'Montserrat', sans-serif;
  --sombra: 0 10px 30px rgba(0, 51, 102, 0.15);
  --radio: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--fuente);
  color: var(--gris-oscuro);
  background-color: var(--blanco);
  line-height: 1.6;
}

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

/* ===== HEADER ===== */
.header {
  background: var(--azul-principal);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--blanco);
}

.logo-sei { color: var(--blanco); }
.logo-zo { color: var(--blanco); }
.logo-rayo {
  color: var(--amarillo);
  font-size: 1.4rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.2); }
}

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

.nav a {
  color: var(--blanco);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.nav a:hover {
  color: var(--amarillo);
}

.btn-nav {
  background: var(--amarillo);
  color: var(--azul-principal) !important;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 900 !important;
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 204, 0, 0.4);
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--azul-principal) 0%, var(--azul-secundario) 100%);
  color: var(--blanco);
  padding: 100px 0 120px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-block;
  background: rgba(255, 204, 0, 0.15);
  color: var(--amarillo);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 204, 0, 0.3);
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
}

.highlight {
  color: var(--amarillo);
  position: relative;
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(255, 204, 0, 0.3);
  z-index: -1;
  border-radius: 4px;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 35px;
  opacity: 0.9;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-family: var(--fuente);
}

.btn-primary {
  background: var(--amarillo);
  color: var(--azul-principal);
  box-shadow: 0 5px 20px rgba(255, 204, 0, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 204, 0, 0.5);
}

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

.btn-secondary:hover {
  background: var(--blanco);
  color: var(--azul-principal);
}

.btn-full {
  width: 100%;
}

/* Gráfico del Hero (Logo N estilizado) */
.hero-graphic {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-graphic {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.n-left, .n-right {
  position: absolute;
  width: 60px;
  height: 200px;
  background: var(--blanco);
  border-radius: 8px;
}

.n-left {
  left: 30px;
  transform: skewX(-15deg);
  background: var(--amarillo);
}

.n-right {
  right: 30px;
  transform: skewX(-15deg);
  background: var(--blanco);
}

.rayo-graphic {
  position: absolute;
  font-size: 5rem;
  color: var(--amarillo);
  text-shadow: 0 0 30px rgba(255, 204, 0, 0.8);
  z-index: 3;
  animation: pulse 1.5s infinite;
}

/* Línea diagonal decorativa (estilo manual) */
.diagonal-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--amarillo), transparent);
  opacity: 0.5;
}

/* ===== SECCIONES GENERALES ===== */
section {
  padding: 90px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--azul-principal);
  margin-bottom: 15px;
}

.section-header p {
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== SERVICIOS ===== */
.servicios {
  background: var(--gris-claro);
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.servicio-card {
  background: var(--blanco);
  padding: 40px 30px;
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  transition: transform 0.3s, box-shadow 0.3s;
  border-top: 4px solid var(--amarillo);
  text-align: center;
}

.servicio-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 51, 102, 0.2);
}

.servicio-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
}

.servicio-card h3 {
  font-size: 1.3rem;
  color: var(--azul-principal);
  margin-bottom: 15px;
  font-weight: 700;
}

.servicio-card p {
  color: #555;
  font-size: 0.95rem;
}

/* ===== NOSOTROS ===== */
.nosotros {
  background: var(--blanco);
}

.nosotros-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.nosotros-text h2 {
  font-size: 2.3rem;
  font-weight: 900;
  color: var(--azul-principal);
  margin-bottom: 20px;
}

.nosotros-text p {
  font-size: 1.05rem;
  color: #555;
  margin-bottom: 30px;
}

.valores-lista {
  list-style: none;
}

.valores-lista li {
  padding: 12px 0;
  font-size: 1rem;
  color: #333;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: flex-start;   /* ← cambia center por flex-start */
  gap: 12px;
  line-height: 1.5;          /* ← mejora la lectura en varias líneas */
}

.check {
  color: var(--amarillo);
  background: var(--azul-principal);
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2px;
}

.check svg {
  width: 14px;
  height: 14px;
  display: block;
  stroke: var(--amarillo);   /* ← color del check */
}

.nosotros-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

.stat {
  background: linear-gradient(135deg, var(--azul-principal), var(--azul-secundario));
  color: var(--blanco);
  padding: 30px;
  border-radius: var(--radio);
  text-align: center;
  box-shadow: var(--sombra);
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--amarillo);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
}

/* ===== CONTACTO ===== */
.contacto {
  background: var(--gris-claro);
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
}

.contacto-info {
  background: var(--azul-principal);
  color: var(--blanco);
  padding: 40px;
  border-radius: var(--radio);
  box-shadow: var(--sombra);
}

.contacto-info h3 {
  font-size: 1.5rem;
  margin-bottom: 25px;
  color: var(--amarillo);
}

.contacto-info p {
  margin-bottom: 15px;
  font-size: 0.95rem;
  line-height: 1.8;
}

.redes-sociales {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.redes-sociales a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--blanco);
  border-radius: 50%;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.8rem;
  transition: all 0.3s;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.redes-sociales a:hover {
  background: var(--amarillo);
  color: var(--azul-principal);
  border-color: var(--amarillo);
  transform: translateY(-3px);
}

.contacto-form {
  background: var(--blanco);
  padding: 40px;
  border-radius: var(--radio);
  box-shadow: var(--sombra);
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--azul-principal);
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-family: var(--fuente);
  font-size: 0.95rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  background: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--amarillo);
  box-shadow: 0 0 0 4px rgba(255, 204, 0, 0.15);
  background: var(--blanco);
}

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

/* ===== FOOTER ===== */
.footer {
  background: var(--azul-principal);
  color: var(--blanco);
  padding: 40px 0 20px;
  text-align: center;
  border-top: 4px solid var(--amarillo);
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.footer-logo {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.footer p {
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer-credit {
  font-size: 0.8rem !important;
  opacity: 0.5 !important;
  margin-top: 10px;
}

/* ===== LOGO CON IMAGEN PNG ===== */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 45px;
  width: auto;
  display: block;
  transition: transform 0.3s ease;
}

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

/* Logo en el footer */
.footer-logo-img {
  height: 60px;
  width: auto;
  display: block;
  margin-bottom: 10px;
  /* Si el logo tiene fondo blanco y el footer es azul, 
     considera usar una versión del logo en blanco */
}

/* Logo en el hero (opcional) */
.hero-logo-img {
  max-width: 320px;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

/* ===== RESPONSIVE ===== */
/* Responsive: logo más pequeño en móviles */
@media (max-width: 640px) {
  .logo-img {
      height: 35px;
  }
  
  .footer-logo-img {
      height: 45px;
  }
  
  .hero-logo-img {
      max-width: 220px;
  }
}

@media (max-width: 968px) {
  .hero-content,
  .nosotros-container,
  .contacto-grid {
      grid-template-columns: 1fr;
  }

  .hero h1 {
      font-size: 2.5rem;
  }

  .hero-graphic {
      order: -1;
  }

  .logo-graphic {
      width: 200px;
      height: 200px;
  }

  .n-left, .n-right {
      width: 45px;
      height: 150px;
  }

  .rayo-graphic {
      font-size: 3.5rem;
  }

  .nosotros-stats {
      grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .header-container {
      flex-direction: column;
      gap: 15px;
  }

  .nav ul {
      gap: 15px;
      flex-wrap: wrap;
      justify-content: center;
  }

  .hero {
      padding: 60px 0 80px;
  }

  .hero h1 {
      font-size: 2rem;
  }

  .hero-buttons {
      flex-direction: column;
  }

  .btn {
      text-align: center;
  }

  .section-header h2 {
      font-size: 1.8rem;
  }

  .nosotros-stats {
      grid-template-columns: 1fr;
  }

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

  .contacto-info,
  .contacto-form {
      padding: 25px;
  }
}

@media (max-width: 400px) {
  .valores-lista li {
      font-size: 0.9rem;
      gap: 10px;
  }
  
  .check {
      width: 24px;
      height: 24px;
      min-width: 24px;
      min-height: 24px;
      font-size: 0.7rem;
  }
}