* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #222;
  background-color: #e9ebf0;
}

/* SPLASH SCREEN */
#splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f4f4f9;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  transition: opacity 1s ease;
}

.splash-content {
  display: flex;
  align-items: center;
  gap: 20px;
  animation: fadeZoom 1.5s ease forwards;
}

#splash img {
  width: 400px;
  height: auto;
}

#splash h1 {
  color: #0077b6;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

#splash.hidden {
  opacity: 0;
  pointer-events: none;
}

@keyframes fadeZoom {
  from {
    opacity: 0;
    transform: scale(0.1);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* HEADER */
header {
  background-color: rgba(253, 253, 253, 0.95);
  backdrop-filter: blur(10px);
  color: #222;
  padding: 0.5rem 2rem;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid #e0e0e0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

header img {
  height: 45px;
}

header h1 {
  font-size: 1.5rem;
  color: #0077b6;
  font-weight: 600;
  margin: 0;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #222;
}

.nav-menu {
  display: flex;
  gap: 1rem;
}

nav a {
  color: #222;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: background 0.3s, color 0.3s, transform 0.3s;
}

nav a:hover,
nav a:focus {
  background: #0077b6;
  color: #fff;
  transform: translateY(-1px);
}

nav a:focus {
  outline: 2px solid #005f8c;
  outline-offset: 2px;
}

/* HERO */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 22px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(to bottom, rgba(50, 51, 52, 0.2), rgba(0, 0, 128, 0.2)), url('imag5.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  transition: opacity 1s ease;
  opacity: 1;
}

.hero-content {
  display: flex;
  width: 100%;
  max-width: 1200px;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 0 4% 0 0; /* Reducido padding izquierdo a 0 para mover texto más a la izquierda */
  position: relative;
  z-index: 1;
}

.hero-text {
  z-index: 2;
  color: #fff;
  background: transparent;
  padding: 3rem;
  border-radius: 15px;
  max-width: 650px;
  text-align: left;
  box-shadow: 0 9px 20px rgba(0, 0, 0, 0);
  margin-left: -90px; /* Ajuste negativo para mover más a la izquierda */
}

.hero-text h2 {
  font-size: 4.7rem;
  font-weight: 800;
  margin-bottom: 0;
  line-height: 1.2;
  text-shadow: 1px 1px 3px rgb(6, 6, 6);
  color: #f5efef;
  text-align: left;
}

.hero-text p {
  font-size: 1.9rem;
  margin-bottom: 0.95rem;
  text-shadow: 1px 1px 2px rgb(113, 101, 101);
  line-height: 1.2;
  color: #393433;
  line-height: 1.4;
}

.hero-buttons {
  display: flex;
  justify-content: flex-start;
  gap: 1.5rem;
  margin-top: 2rem;
}

.cta-button {
  display: inline-block;
  background: #0077b6;
  color: #fff;
  padding: 1.2rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
  background: #005f8c;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
  display: inline-block;
  background: #0077b6;
  color: #fff;
  padding: 1.2rem 2.5rem;
  border: none;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
  background: #005f8c;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.hero-logo {
  max-width: 400px;
  height: auto;
  z-index: 2;
  margin-left: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0);
  margin-right: -50px; /* Ajuste negativo para mover más a la derecha */
  animation: fadeIn 2s ease-in forwards;
}

/* Responsive para hero */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 5%;
  }

  .hero-text {
    margin-left: 0; /* Resetear margen en móvil */
    max-width: 100%;
  }

  .hero-logo {
    max-width: 240px;
    margin-left: 0;
    margin-top: 20px;
    margin-right: 0;
  }
}

/* Turn off parallax scrolling for tablets and phones */
@media only screen and (max-device-width: 1366px) {
  .hero-bg {
    background-attachment: scroll;
  }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

/* GENERAL SECTION STYLES */
section {
  padding: 5rem 5%;
  max-width: none;
  margin: 4rem 0;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  animation: fadeIn 1.5s ease;
}

section h2 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  line-height: 1.2;
  text-align: center;
  color: #0c2340;
}

/* ABOUT */
#about {
  position: relative;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  overflow: hidden;
  background: linear-gradient(to bottom, rgba(50, 51, 52, 0.4), rgba(0, 0, 128, 0.4)), url('foto3.jpg') no-repeat center/cover;
  background-color: transparent;
  box-shadow: none;
  color: #fff;
  padding: 0;
  margin-top: 0;
  border-radius: 0;
  width: 100%;
}

.about-wrapper {
  width: 95%;
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem;
  width: 100%;
}

.about-text { flex: 1; max-width: 75%; }
.about-highlights { flex: 1; display: flex; flex-direction: column; gap: 1rem; max-width: 50%; }

#about h2 { 
  font-size: 4.5rem; 
  font-weight: 700; 
  margin-bottom: 2rem; 
  line-height: 1.2; 
  color: #ffffff; 
  text-shadow: 1px 1px 3px rgb(6, 6, 6); /* Agregado: sombra similar al hero para "bordes" en las letras */
} /* Tamaño aumentado */

#about h3 { 
  font-size: 1.4rem; 
  margin-bottom: 0.5rem; 
  text-shadow: 1px 1px 2px rgb(113, 101, 101); /* Agregado: sombra similar al hero para "bordes" en las letras */
}

#about p { 
  font-size: 1.2rem; 
  line-height: 1.4; 
  margin-bottom: 1rem; 
  text-shadow: 1px 1px 2px rgb(113, 101, 101); /* Agregado: sombra similar al hero para "bordes" en las letras */
}

.highlight-item {
  background: rgba(244, 238, 238, 0.402);
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.highlight-item:hover {
  background: rgba(35, 31, 31, 0.098);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.highlight-icon { width: 60px; height: 60px; margin-bottom: 0.5rem; opacity: 0.9; }
.highlight-item h3 { font-size: 0.9rem; color: #333; margin: 0; }

/* SERVICES */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.info-card {
  background: #e3f2fd;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.info-card:hover { transform: translateY(-5px); }
.info-card img { width: 100%; height: 200px; object-fit: cover; }
.info-card .content { padding: 1.5rem; }
.info-card h3 { margin-bottom: 0.5rem; font-size: 1.4rem; color: #0c2340; }
.info-card p { font-size: 0.95rem; line-height: 1.4; }

/* PRODUCTS */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.product-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.product-card:hover { transform: translateY(-5px); }
.product-card img { width: 100%; height: 200px; object-fit: cover; }
.product-card .content { padding: 1.5rem; background: #0c2340; color: white; }
.product-card h3 { margin-bottom: 0.8rem; font-size: 1.4rem; border-bottom: 2px solid #25d366; display: inline-block; padding-bottom: 0.3rem; }
.product-card p { font-size: 0.9rem; line-height: 1.5; color: #f4f4f4; }
.card-button { display: inline-block; background: #0077b6; color: white; padding: 0.5rem 1rem; border-radius: 6px; text-decoration: none; margin-top: 1rem; }
.card-button:hover { background: #005f8c; }

/* GALLERY */
.image-grid {
  columns: 4;
  column-gap: 1.5rem;
  column-fill: balance;
  margin-top: 2rem;
}

.image-box {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.image-box img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.image-box:hover { transform: scale(1.02); }
.image-box:hover img { transform: scale(1.1); }

@media (max-width: 768px) { .image-grid { columns: 2; } }
@media (max-width: 480px) { .image-grid { columns: 1; } }

/* OUR VIDEOS */
#videos {
  background: linear-gradient(to bottom, #f4f4f9, #e9ebf0); /* Softer background gradient for appeal */
  padding: 4rem 5%; /* Increased padding for more space */
  border-radius: 20px; /* Smoother corners */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); /* Subtle shadow for depth */
}

#videos h2 {
  font-size: 3rem; /* Slightly smaller for balance at 75% zoom */
  color: #0c2340;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1); /* Soft shadow for text pop */
  margin-bottom: 2.5rem;
}

.video-grid {
  display: flex;
  overflow-x: auto;
  gap: 2.5rem; /* Aumentado ligeramente para más separación con videos más grandes */
  margin-top: 2rem;
  scroll-snap-type: x mandatory; /* Para un efecto de snap en el scroll */
  padding-bottom: 1rem; /* Espacio para scrollbar */
  scrollbar-width: thin; /* Estilo de scrollbar más delgado */
  scrollbar-color: #0077b6 #f4f4f9; /* Color de scrollbar */
}

.video-grid::-webkit-scrollbar {
  height: 8px; /* Altura de la scrollbar en Chrome/Safari */
}

.video-grid::-webkit-scrollbar-thumb {
  background: #0077b6;
  border-radius: 10px;
}

.video-grid::-webkit-scrollbar-track {
  background: #f4f4f9;
  border-radius: 10px;
}

.video-box {
  background: #ffffff; /* Cleaner white background */
  border-radius: 16px; /* Softer rounding */
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12); /* Deeper shadow for 3D effect */
  transition: transform 0.4s ease, box-shadow 0.4s ease; /* Smoother transition */
  position: relative;
  flex: 0 0 700px; /* Ancho aumentado para videos más grandes (ajusta si necesitas) */
  scroll-snap-align: start; /* Para snap en el scroll */
}

.video-box:hover {
  transform: translateY(-8px); /* More lift on hover */
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18); /* Enhanced shadow on hover */
}

.video-box video {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9; /* Fixed aspect ratio for uniform video frames */
  object-fit: cover; /* Ensure videos fill the frame nicely */
}

/* Add this if you want captions (optional: add <p> tags in HTML for each video) */
.video-box .caption {
  padding: 1rem;
  text-align: center;
  font-size: 1rem;
  color: #333;
  background: rgba(255, 255, 255, 0.9);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .video-grid {
    gap: 1.5rem;
  }

  .video-box {
    flex: 0 0 90%; /* En móvil, cada video ocupa el 90% del ancho para que se vean grandes */
  }

  #videos {
    padding: 3rem 3%; /* Adjusted for smaller screens */
  }

  #videos h2 {
    font-size: 2.5rem;
  }
}

/* CONTACT - FORMULARIO SIN BORDES ROJOS AL CARGAR */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.contact-form,
.contact-info {
  flex: 1;
  min-width: 300px;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-form { background: #e3f2fd; }
.contact-info { background: #e3f2fd; }

.contact-form label {
  display: block;
  margin: 0.5rem 0 0.2rem;
  font-weight: bold;
  color: #0c2340;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #0077b6;
  box-shadow: 0 0 8px rgba(0, 119, 182, 0.3);
  outline: none;
}

/* Solo rojo si el campo fue tocado y es inválido */
.contact-form input:invalid:focus,
.contact-form textarea:invalid:focus,
.contact-form input:invalid:not(:placeholder-shown),
.contact-form textarea:invalid:not(:placeholder-shown) {
  border-color: #f9f7f7;
  box-shadow: 0 0 8px rgba(255, 77, 77, 0.3);
}

/* Fondo suave para campos vacíos requeridos (sin rojo agresivo) */
.contact-form input:invalid:not(:focus):not(:placeholder-shown),
.contact-form textarea:invalid:not(:focus):not(:placeholder-shown) {
  border-color: #ffb3b3;
  background-color: #fffafa;
}

.contact-form button {
  background: #0077b6;
  color: white;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s;
}

.contact-form button:hover {
  background: #005f8c;
}

.contact-info h3 { color: #0c2340; margin-bottom: 1rem; }
.contact-info p { margin-bottom: 0.5rem; }
.contact-info a { color: #0077b6; text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }

iframe {
  border-radius: 8px;
  width: 100%;
  height: 300px;
  border: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* FOOTER */
footer {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
  border-radius: 12px;
}

.footer-links,
.social-links {
  margin-top: 1rem;
}

.footer-links a,
.social-links a {
  color: #fff;
  margin: 0 0.5rem;
  text-decoration: none;
}

.social-links i { font-size: 1.5rem; }

/* FLOATING BUTTONS */
.whatsapp-container,
.facebook-container {
  position: fixed;
  right: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1001;
}

.whatsapp-container { bottom: 100px; }
.facebook-container { bottom: 30px; }

.whatsapp-float,
.facebook-float {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  text-decoration: none;
  color: white;
  transition: all 0.3s ease;
}

.whatsapp-float { background-color: #25d366; }
.facebook-float { background-color: #1877f2; }

.whatsapp-float:hover { transform: scale(1.15); box-shadow: 0 0 20px #25d366; }
.facebook-float:hover { transform: scale(1.15); box-shadow: 0 0 20px #1877f2; }

/* MOBILE STYLES */
@media (max-width: 768px) {
  header { padding: 0.5rem 1rem; width: 100%; }
  .header-left h1 { font-size: 1.2rem; }
  .hamburger { display: block; }
  .nav-menu { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background: rgba(253, 253, 253, 0.98); padding: 1rem; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); }
  .nav-menu.active { display: flex; }
  nav a { margin: 0.5rem 0; text-align: center; }
  .product-card img, .info-card img { height: 150px; }
  section { padding: 3rem 2%; }
  .hero { margin-top: 60px; }
  #about { background: linear-gradient(to bottom, rgba(0, 119, 182, 0.3), rgba(0, 0, 128, 0.3)), url('foto1.jpg') no-repeat center/cover; }
  .video-grid {
    grid-template-columns: 1fr;
  }
}

/* Turn off parallax scrolling for tablets and phones */
@media only screen and (max-device-width: 1366px) {
  .hero-bg {
    background-attachment: scroll;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}