/* Variables CSS */
:root {
  --primary-color: #F4940C;
  --primary-hover: #d17a09;
  --primary-light: rgba(244, 148, 12, 0.1);
  --primary-shadow: rgba(244, 148, 12, 0.3);
  --text-color: #333;
  --bg-light: #f8f9fa;
  --success-color: #28a745;
}

/* Reset y configuración base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
}

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

/* Header */
header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
}

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

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

/* Navegación Desktop */
.nav-desktop ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-desktop a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

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

/* Menú hamburguesa */
.hamburger-menu {
  display: none;
  cursor: pointer;
  padding: 10px;
}

.hamburger-icon {
  width: 25px;
  height: 20px;
  position: relative;
}

.hamburger-icon span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #333;
  position: absolute;
  left: 0;
  border-radius: 2px;
}

.hamburger-icon span:nth-child(1) {
  top: 0;
}

.hamburger-icon span:nth-child(2) {
  top: 8px;
}

.hamburger-icon span:nth-child(3) {
  top: 16px;
}

/* Navegación móvil */
.nav-mobile {
  display: none;
  position: fixed;
  top: 90px;
  left: 0;
  width: 100%;
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 999;
}

.nav-mobile ul {
  list-style: none;
  padding: 20px;
  margin: 0;
}

.nav-mobile li {
  margin-bottom: 15px;
}

.nav-mobile a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 18px;
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

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

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: -90px;
  /* Compensar el header fijo */
  padding-top: 90px;
  /* Agregar padding para el header */
}

.hero-background {
  position: absolute;
  top: 100px;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('images/PORT-INV.jpg');
  background-size: contain;
  background-position: center 90px;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

/* Botones */
.btn {
  display: inline-block;
  padding: 15px 30px;
  background: #F4940C;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.btn:hover {
  background: #d17a09;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(244, 148, 12, 0.3);
}

/* Secciones */
.section {
  padding: 80px 0;
}

.section:nth-child(even) {
  background: var(--bg-light);
}

.section h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
}

.section h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #F4940C;
  font-family: 'Montserrat', sans-serif;
}

/* Grid Layouts */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.grid img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

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

.feature {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.feature h3 {
  color: #F4940C;
  margin-bottom: 15px;
}

.feature ul {
  text-align: left;
  list-style: none;
}

.feature li {
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}

.feature li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success-color);
  font-weight: bold;
}

/* Video Gallery */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.video-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Formulario de contacto */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: var(--text-color);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #F4940C;
  box-shadow: 0 0 0 3px rgba(244, 148, 12, 0.1);
}

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

/* Footer */
footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 40px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-logo img {
  height: 80px;
  width: auto;
}

.footer-info {
  text-align: center;
}

.social-links {
  margin-top: 15px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  margin: 0 10px;
}

.social-links a:hover {
  background: #FF0000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

.youtube-icon {
  width: 28px;
  height: 28px;
  transition: transform 0.3s ease;
}

.social-links a:hover .youtube-icon {
  transform: scale(1.1);
}

/* Animaciones */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Loading animation */
.loading {
  display: none;
  text-align: center;
  padding: 20px;
}

.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #F4940C;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Responsive Design */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero {
    height: 70vh;
    min-height: 500px;
    margin-top: -90px;
    padding-top: 90px;
  }

  .hero-background {
    background-size: contain;
    background-position: center 90px;
  }

  .section h2 {
    font-size: 2rem;
  }

  .section h3 {
    font-size: 1.5rem;
  }

  /* Ocultar navegación desktop en móvil */
  .nav-desktop {
    display: none;
  }

  /* Mostrar menú hamburguesa */
  .hamburger-menu {
    display: block;
  }

  /* Mostrar navegación móvil */
  .nav-mobile {
    display: none;
  }

  .contact-form {
    padding: 20px;
    margin: 0 20px;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero {
    height: 60vh;
    min-height: 400px;
    margin-top: -90px;
    padding-top: 90px;
  }

  .hero-background {
    background-size: contain;
    background-position: center 90px;
  }

  .section {
    padding: 60px 0;
  }

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

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

  .btn {
    padding: 12px 24px;
    font-size: 14px;
  }
}

/* Utilidades */
.text-center {
  text-align: center;
}

.mb-20 {
  margin-bottom: 20px;
}

.mb-30 {
  margin-bottom: 30px;
}

.mt-20 {
  margin-top: 20px;
}

.mt-30 {
  margin-top: 30px;
}

/* Efectos hover adicionales */
.feature img {
  /* Sin efectos de transform */
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus visible para accesibilidad */
.btn:focus-visible,
nav a:focus-visible {
  outline: 2px solid #F4940C;
  outline-offset: 2px;
}

/* Mejorar la experiencia del menú móvil */
.nav-mobile a:last-child {
  border-bottom: none;
}

/* Asegurar que el menú hamburguesa sea visible en móvil */
@media (max-width: 768px) {
  .hamburger-menu {
    display: block !important;
  }

  .nav-desktop {
    display: none !important;
  }
}

.nav-mobile {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

/* Estilos específicos para el botón de WhatsApp */
.btn-whatsapp {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 50px !important;
  height: 50px !important;
  border-radius: 50% !important;
  color: white !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
}

.btn-whatsapp:hover {
  background: #25D366 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4) !important;
  color: white !important;
}

.btn-whatsapp .bi-whatsapp {
  font-size: 28px !important;
  width: 28px !important;
  height: 28px !important;
  transition: transform 0.3s ease !important;
  line-height: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  vertical-align: middle !important;
}

.btn-whatsapp:hover .bi-whatsapp {
  transform: scale(1.1) !important;
}