/* 1. Variables y Reset */
:root {
  --primary: #033f08e3;         /* Verde corporativo */
  --secondary: #e74c3c;       /* Rojo llamativo */
  --light: #ecf0f1;
  --dark: #153d1c;
  --text: #333;
  --white: #f5f5f5;
  --gray: #95a5a6;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

/* 2. Estructura General */
body {
  color: var(--text);
  line-height: 1.6;
  background: var(--light);
}

ul {
  list-style-type: none;
  padding-left: 0;
}

/* 3. Header Moderno */
.modern-header {
  background-color: var(--primary);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 15px 5%;
}

.logo-img {
  height: 60px;
  transition: transform 0.3s;
}

.logo-img:hover {
  transform: scale(1.05);
}

/* 4. Menú Hamburguesa (Mobile) */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
  z-index: 1000;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}

.mobile-menu-toggle i.fa-times {
  display: none;
}

.mobile-menu-toggle.active i.fa-bars {
  display: none;
}

.mobile-menu-toggle.active i.fa-times {
  display: block;
}

/* 5. Navegación */
.modern-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list > li {
  position: relative;
  margin: 0 10px;
}

.nav-list a {
  color: white;
  text-decoration: none;
  padding: 10px 15px;
  display: block;
  font-weight: 500;
  transition: all 0.3s;
}

.nav-list > li > a:hover {
  color: var(--secondary);
}

/* 6. Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(7, 44, 12, 0.404);
  width: 220px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s;
  z-index: 100;
  border-radius: 0 0 5px 5px;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  color: var(--white);
  padding: 10px 15px;
  border-bottom: 1px solid #c9090970;
}

.dropdown-menu li a:hover {
  background: #f8f9fa;
  color: var(--secondary);
}

/* 7. Slider Hero */
.hero-slider {
  position: relative;
  height: 70vh;
  overflow: hidden;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-content {
  position: absolute;
  bottom: 20%;
  left: 10%;
  color: rgb(66, 66, 66);
  max-width: 500px;
  transition: all 0.8s ease;
  -webkit-text-stroke: 1px rgba(255, 252, 252, 0.329);
  paint-order: stroke fill;
}

/* 8. Botones */
.btn-primary {
  display: inline-block;
  background: var(--secondary);
  color: white;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-primary:hover {
  background: #c0392b;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* 9. Sección de Contacto */
.contact-info {
  background: var(--white);
  padding: 3rem 0;
}

.info-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.info-box {
  text-align: center;
  padding: 1.5rem;
  border-radius: 8px;
  transition: transform 0.3s;
}

.info-box:hover {
  transform: translateY(-5px);
}

/* 10. Big White Header */
.big-white-header {
  background-color: white;
  padding: 80px 20px;
  text-align: center;
  margin-bottom: 30px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.big-white-header h1 {
  font-size: 2.8rem;
  color: var(--primary);
  margin: 0;
}

.big-white-header p {
  font-size: 1.3rem;
  color: #666;
  margin-top: 15px;
}

/* 11. Social Icons */
.social-icons {
  display: flex;
  margin-left: 20px;
  justify-content: center;
  gap: 10px;
  margin-top: 1rem;
}

.social-icons a {
  color: white;
  margin: 0 5px;
  font-size: 2.2rem;
  transition: all 0.3s ease;
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none !important;
}

.social-icons a:hover {
  color: var(--secondary);
  transform: translateY(-5px);
}

/* Colores oficiales al hover */
.social-icons a:hover .fa-facebook-f { color: #1877F2; }
.social-icons a:hover .fa-instagram { 
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.social-icons a:hover .fa-whatsapp { color: #25D366; }

/* 12. WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  z-index: 99;
}

/* 13. Footer */
.modern-footer {
  background: var(--dark);
  color: var(--white);
  padding: 3rem 0;
  text-align: center;
}

.footer-logo {
  text-align: center;
}

.footer-links ul {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  flex-wrap: wrap;
}

.footer-links ul a {
  color: black;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links ul a:hover {
  color: var(--secondary);
}

/* 14. Estilos para la sección de ubicación */
.location-section {
  padding: 3rem 1rem;
  background-color: #f8f9fa;
}

.location-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.location-header {
  margin-bottom: 2rem;
}

.location-title {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.location-address {
  font-size: 1.3rem;
  color: #7f8c8d;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.location-address i {
  color: #e74c3c;
}

.map-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  margin-bottom: 1.5rem;
}

.responsive-map {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.map-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  background-color: #3498db;
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.map-button:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

/* 15. Media Queries */
@media (max-width: 992px) {
  .big-white-header {
    padding: 60px 20px;
  }
  
  .big-white-header h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }
  
  .modern-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--primary);
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 80px;
    transition: right 0.3s ease;
    z-index: 999;
  }
  
  .modern-nav.nav-active {
    right: 0;
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
  }
  
  .nav-list {
    flex-direction: column;
    width: 100%;
  }
  
  .nav-list > li {
    margin: 0;
  }
  
  .nav-list a {
    padding: 15px 20px;
  }
  
  .dropdown-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    background: #00030542;
    border-radius: 0;
    padding-left: 20px;
  }
  
  .dropdown:hover .dropdown-menu {
    display: none;
  }
  
  .dropdown.active .dropdown-menu {
    display: block;
  }
  
  .dropdown > a::after {
    content: '\f077';
    display: none;
  }
  
  .dropdown i.fa-chevron-up {
    display: none;
  }
  
  .dropdown.active i.fa-chevron-down {
    display: none;
  }
  
  .dropdown.active i.fa-chevron-up {
    display: inline-block;
  }
  
  .social-icons {
    margin: 20px 0 0;
    justify-content: center;
  }
  
  .hero-slider {
    height: 50vh;
  }
  
  .location-title {
    font-size: 2rem;
  }
  
  .location-address {
    font-size: 1.1rem;
  }
}

/* Estilos móviles para sección de contacto y footer */
@media (max-width: 768px) {
  /* Sección de contacto */
  .contact-info {
    padding: 2rem 1rem;
  }
  
  .info-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }
  
  .info-box {
    padding: 1.2rem;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    background: white;
  }
  
  .info-box i {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    display: block;
    color: var(--primary);
  }
  
  .info-box h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
  }
  
  .info-box p, 
  .info-box a {
    font-size: 1rem;
    color: #555;
    text-decoration: none;
    display: block;
    margin: 0.3rem 0;
  }
  
  .info-box a.whatsapp-link {
    color: #25D366;
    font-weight: 600;
  }
  
  /* Footer */
  .modern-footer {
    padding: 2.5rem 1rem 1rem;
  }
  
  .footer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .footer-logo {
    margin-bottom: 1.5rem;
  }
  
  .footer-logo img {
    max-width: 180px;
    height: auto;
  }
  
  .footer-links h3,
  .footer-social h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--white);
    text-align: center;
  }
  
  .footer-links ul {
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
  }
  
  .footer-links ul a {
    color: var(--white);
    font-size: 1rem;
    padding: 0.5rem 0;
    display: block;
    text-align: center;
    transition: all 0.3s ease;
  }
  
  .footer-links ul a:hover {
    color: var(--secondary);
    transform: translateX(5px);
  }
  
  .footer-social {
    text-align: center;
  }
  
  .social-icons {
    margin: 1rem 0 1.5rem;
    justify-content: center;
  }
  
  .social-icons a {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
    margin: 0 8px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
  }
  
  .social-icons a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
  }
  
  .footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .footer-bottom p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
  }
  
  /* WhatsApp flotante para móviles */
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
    font-size: 1.4rem;
  }
}

/* Estilos adicionales para pantallas muy pequeñas */
@media (max-width: 480px) {
  .contact-info {
    padding: 1.5rem 0.5rem;
  }
  
  .info-container {
    gap: 1rem;
  }
  
  .info-box {
    padding: 1rem;
  }
  
  .info-box i {
    font-size: 1.8rem;
  }
  
  .modern-footer {
    padding: 2rem 0.5rem 1rem;
  }
  
  .footer-links ul {
    gap: 0.5rem;
  }
  
  .social-icons a {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    margin: 0 5px;
  }
  
  .whatsapp-float {
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }
}

/* Mejoras de interacción táctil para móviles */
@media (hover: none) {
  .info-box {
    transition: transform 0.2s ease;
  }
  
  .info-box:active {
    transform: scale(0.98);
  }
  
  .footer-links ul a:active,
  .social-icons a:active {
    transform: scale(0.95);
  }
  
  .whatsapp-float:active {
    transform: scale(0.9);
  }
}