/* ===== RESET Y FUENTES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f8f9fa;
  color: #1A1A1A;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== HEADER ===== */
header {
  background: #0033A0; /* Azul rey */
  color: #FFFFFF;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

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

.logo h1 {
  font-size: 2rem;
  letter-spacing: 2px;
  color: #FFFFFF;
}

.logo span {
  font-size: 0.9rem;
  opacity: 0.85;
  display: block;
  color: #FFFFFF;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

nav a:hover {
  color: #E31B23; /* Rojo */
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #FFFFFF;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(rgba(0, 51, 160, 0.85), rgba(0, 51, 160, 0.85)), url('img/hero-bg.jpg') center/cover no-repeat;
  color: #FFFFFF;
  padding: 5rem 0;
  text-align: center;
}

.hero h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #FFFFFF;
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  color: #FFFFFF;
}

.btn {
  display: inline-block;
  background: #E31B23; /* Rojo */
  color: #FFFFFF;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s, transform 0.2s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: #b0131a;
  transform: scale(1.05);
}

.btn.whatsapp {
  background: #25d366; /* Se mantiene verde de WhatsApp */
}

.btn.whatsapp:hover {
  background: #1da851;
}

/* ===== PRODUCTOS ===== */
.productos {
  padding: 4rem 0;
  background: #FFFFFF;
}

.productos h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #0033A0; /* Azul rey */
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.card {
  background: #FFFFFF;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  border: 1px solid #e0e0e0;
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
  padding-bottom: 1.5rem;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 51, 160, 0.2);
  border-color: #0033A0;
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card h3 {
  margin: 1rem 0 0.5rem;
  color: #1A1A1A;
}

.card p {
  padding: 0 1rem;
  color: #4a4a4a;
}

.btn-ver {
  margin-top: 1rem;
  background: #0033A0; /* Azul rey */
  color: #FFFFFF;
  border: none;
  padding: 0.6rem 1.8rem;
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

.btn-ver:hover {
  background: #002480;
}

/* ===== NOSOTROS ===== */
.nosotros {
  padding: 4rem 0;
  background: #f0f2f5;
  text-align: center;
  border-top: 4px solid #E31B23;
  border-bottom: 4px solid #E31B23;
}

.nosotros h2 {
  font-size: 2.5rem;
  color: #0033A0;
  margin-bottom: 1rem;
}

.nosotros p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: #1A1A1A;
}

/* ===== CONTACTO ===== */
.contacto {
  padding: 4rem 0;
  text-align: center;
  background: #FFFFFF;
}

.contacto h2 {
  font-size: 2.5rem;
  color: #0033A0;
}

.contacto p {
  margin: 1rem 0 2rem;
  font-size: 1.1rem;
  color: #1A1A1A;
}

/* ===== FOOTER ===== */
footer {
  background: #1A1A1A; /* Negro */
  color: #cccccc;
  text-align: center;
  padding: 1.5rem 0;
}

footer p {
  color: #cccccc;
}

/* ===== MODAL ===== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: #FFFFFF;
  padding: 2rem;
  border-radius: 20px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
  animation: fadeIn 0.3s ease;
  border-top: 6px solid #E31B23;
}

.modal-content img {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.modal-content h3 {
  font-size: 1.8rem;
  color: #0033A0;
}

.modal-content p {
  margin: 1rem 0;
  color: #1A1A1A;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 2rem;
  cursor: pointer;
  color: #1A1A1A;
  transition: color 0.3s;
}

.close-modal:hover {
  color: #E31B23;
}

/* ===== WHATSAPP FLOTANTE ===== */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  color: #FFFFFF;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.5rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  text-decoration: none;
  transition: transform 0.3s, background 0.3s;
  z-index: 999;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background: #1da851;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #0033A0;
    padding: 1rem 0;
  }

  nav ul.active {
    display: flex;
  }

  nav ul li {
    text-align: center;
    padding: 0.5rem 0;
  }

  .hero h2 {
    font-size: 2.2rem;
  }

  .modal-content {
    width: 95%;
    padding: 1.5rem;
  }
}

/* ===== ANIMACIONES ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* ===== CARRUSEL ===== */
.carrusel-section {
  padding: 4rem 0;
  background: #f0f2f5;
}

.carrusel-section h2 {
  text-align: center;
  font-size: 2.5rem;
  color: #0033A0;
  margin-bottom: 2rem;
}

.carrusel-wrapper {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  border: 3px solid #0033A0;
}

.carrusel-container {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carrusel-slide {
  min-width: 100%;
  position: relative;
}

.carrusel-slide img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  display: block;
}

.carrusel-texto {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 51, 160, 0.85));
  color: #FFFFFF;
  padding: 2rem 2rem 1.5rem;
  text-align: center;
}

.carrusel-texto h3 {
  font-size: 1.8rem;
  margin-bottom: 0.3rem;
  color: #FFFFFF;
}

.carrusel-texto p {
  font-size: 1rem;
  opacity: 0.95;
  color: #FFFFFF;
}

/* Botones del carrusel */
.carrusel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 51, 160, 0.7);
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
  padding: 0.8rem 1.2rem;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  transition: all 0.3s;
  z-index: 10;
  backdrop-filter: blur(5px);
}

.carrusel-btn:hover {
  background: #E31B23;
  transform: translateY(-50%) scale(1.1);
}

.carrusel-btn-izq {
  left: 15px;
}

.carrusel-btn-der {
  right: 15px;
}

/* Indicadores */
.carrusel-indicadores {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.indicador {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.indicador:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.indicador.activo {
  background: #E31B23;
  border-color: #FFFFFF;
  transform: scale(1.2);
}

/* ===== RESPONSIVE CARRUSEL ===== */
@media (max-width: 768px) {
  .carrusel-slide img {
    height: 300px;
  }

  .carrusel-texto {
    padding: 1.5rem 1rem 1rem;
  }

  .carrusel-texto h3 {
    font-size: 1.3rem;
  }

  .carrusel-texto p {
    font-size: 0.9rem;
  }

  .carrusel-btn {
    padding: 0.5rem 0.8rem;
    font-size: 1rem;
  }

  .carrusel-btn-izq {
    left: 8px;
  }

  .carrusel-btn-der {
    right: 8px;
  }

  .carrusel-indicadores {
    bottom: 60px;
    gap: 8px;
  }

  .indicador {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 480px) {
  .carrusel-slide img {
    height: 220px;
  }

  .carrusel-texto h3 {
    font-size: 1.1rem;
  }

  .carrusel-texto p {
    font-size: 0.8rem;
  }
}