/* Estilos generales */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

:root {
  --primary-color: #FFCC00;
  --secondary-color: #8ad6e6;
  --gray-dark: #333333;
  --gray-light: #F5F5F5;
  --white: #FFFFFF;
  --black: #000000;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

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

a {
  text-decoration: none;
  color: var(--secondary-color);
  transition: all 0.3s ease;
}

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  color: var(--gray-dark);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--gray-dark);
  border: 2px solid var(--primary-color);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--primary-color);
}

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

.btn-secondary:hover {
  background-color: transparent;
  color: var(--secondary-color);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #003c7a;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.header.scrolled {
  padding: 10px 0;
}

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

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  max-height: 60px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.nav-menu {
  display: flex;
}

.nav-menu li {
  margin-left: 30px;
}

.nav-menu a {
  font-weight: 500;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.contact-info a {
  margin-left: 15px;
  display: flex;
  align-items: center;
}

.contact-info a i {
  margin-right: 5px;
  color: var(--primary-color);
}

/* Hero Section / Carrusel */
.hero {
  height: 100vh;
  background-color: var(--gray-dark);
  position: relative;
  overflow: hidden;
}

.carousel {
  width: 100%;
  height: 100%;
  position: relative;
}

.carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  padding: 0 15px;
}

.carousel-item.active {
  opacity: 1;
}

.carousel-content {
  text-align: center;
  max-width: 800px;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 40px;
  border-radius: 8px;
}

.carousel-title {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.carousel-description {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--white);
}

.carousel-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
}

.indicator {
  width: 15px;
  height: 15px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  margin: 0 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background-color: var(--primary-color);
}

/* Acerca de */
.about {
  background-color: var(--white);
}

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

.about-image {
  flex: 0 0 45%;
}

.about-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.about-text {
  flex: 0 0 50%;
}

.about-text h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.about-text p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

/* Servicios */
.services {
  background-color: var(--gray-light);
}

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

.service-card {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
}

.service-image {
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-content {
  padding: 20px;
}

.service-title {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.service-description {
  margin-bottom: 20px;
}

/* Productos */
.products {
  background-color: var(--white);
}

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

.product-card {
  background-color: var(--gray-light);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
}

.product-image {
  height: 250px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-content {
  padding: 20px;
}

.product-title {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.product-description {
  margin-bottom: 20px;
}

/* Contacto */
.contact {
  background: linear-gradient(#003c7a, #003c7a), url('../img/contact-bg.jpg') center/cover no-repeat;
  color: var(--white);
}

.contact .section-title {
  color: var(--white);
}

.contact .section-title::after {
  background-color: var(--primary-color);
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.contact-info-section {
  flex: 0 0 45%;
}

.contact-item {
  display: flex;
  margin-bottom: 30px;
}

.contact-item i {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-right: 15px;
}

.contact-details h4 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: var(--primary-color);
}

.contact-form {
  flex: 0 0 50%;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 8px;
}

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

.form-control {
  width: 100%;
  padding: 12px 15px;
  border-radius: 4px;
  border: none;
  background-color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
}

.form-control:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--primary-color);
}

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

/* Footer */
.footer {
  background-color: var(--gray-dark);
  color: var(--white);
  padding: 60px 0 30px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-section {
  flex: 1;
  margin-right: 30px;
  margin-bottom: 30px;
}

.footer-section:last-child {
  margin-right: 0;
}

.footer-title {
  color: var(--primary-color);
  font-size: 1.4rem;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--gray-light);
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-social {
  display: flex;
  margin-top: 20px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--secondary-color);
  border-radius: 50%;
  margin-right: 10px;
  color: var(--white);
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background-color: var(--primary-color);
  transform: translateY(-5px);
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 30px;
}

/* Gracias y Error pages */
.message-page {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--gray-light);
}

.message-container {
  text-align: center;
  background-color: var(--white);
  padding: 60px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  max-width: 600px;
}

.message-icon {
  font-size: 6rem;
  margin-bottom: 30px;
}

.success-icon {
  color: #28a745;
}

.error-icon {
  color: #dc3545;
}

.message-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.message-text {
  margin-bottom: 30px;
  font-size: 1.2rem;
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  background-color: #128C7E;
  transform: scale(1.1);
}

.whatsapp-float i {
  font-size: 32px;
}

/* Animación de pulso para el botón de WhatsApp */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Responsive Design */
@media (max-width: 992px) {
  .section-title {
    font-size: 2rem;
  }

  .carousel-title {
    font-size: 2.5rem;
  }

  .about-image,
  .about-text {
    flex: 0 0 100%;
  }

  .about-image {
    margin-bottom: 30px;
  }

  .contact-info-section,
  .contact-form {
    flex: 0 0 100%;
  }

  .contact-info-section {
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 30px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    margin: 0 0 20px 0;
    text-align: center;
  }

  .carousel-title {
    font-size: 2rem;
  }

  .carousel-description {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .section {
    padding: 60px 0;
  }

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

  .carousel-content {
    padding: 20px;
  }

  .carousel-title {
    font-size: 1.8rem;
  }

  .footer-section {
    flex: 0 0 100%;
    margin-right: 0;
  }
}
