@import url('https://fonts.googleapis.com/css2?family=Londrina+Shadow&display=swap');
/* Estilos actualizados con nueva paleta de colores */
:root {
  --chakra1: #B71C1C;
  --chakra2: #F57C00;
  --chakra3: #FBC02D;
  --chakra4: #388E3C;
  --chakra5: #0277BD;
  --chakra6: #512DA8;
  --chakra7: #6A1B9A;
  --bg-main: #e3fed5;
  --white: #fff;
  --text-main: #191a1a;
  --text-soft: #43464a;
}

.londrina-shadow-regular {
  font-family: "Londrina Shadow", sans-serif;
  font-weight: 400;
  font-style: normal;
}


/* Estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-main);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 150px;
  /* background: linear-gradient(135deg, var(--bg-main), var(--bg-main)); */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 15px 0;
  transition: all 0.3s ease;
}

.header.scrolled {
  padding: 10px 0;
  background: var(--bg-main);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-text {
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
}

.logo-text span {
  color: var(--chakra3);
}

.nav-menu {
  display: flex;
  list-style: none;
  margin-left: auto;
  padding-right: 20px;
  
}

.nav-item {
  margin-left: 30px;
}

.nav-link {
  color: var(--chakra1);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--chakra3);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--chakra1);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--black);
  font-size: 24px;
  align-items: right;
  margin-right: 10px;
  cursor: pointer;
  margin-left: auto;
  padding-right: 20px;
  margin-top: -20px;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(147, 211, 158, 0.7), rgba(20, 122, 54, 0.7));
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  padding: 0 20px;
  z-index: 1;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-desc {
  font-size: 1.5rem;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(135deg, var(--chakra2), var(--chakra3));
  color: var(--white);
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Sections */
section {
  padding: 100px 0;
}

.video-responsive {
    position: relative;
    padding-bottom: 40.25%; /* Relación 16:9 */
    height: 0;
    overflow: hidden;
    margin-left:15%;
}

.video-responsive video {
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    height: 80%;
}

section h2 {
  font-family: "Londrina Shadow", sans-serif;
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-align: center;
  color: var(--chakra6);
} 

section h3 {
  font-family: "Londrina Shadow", sans-serif;
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-align: center;
  color: var(--chakra6);
} 

section p {
  font-size: 1.1rem;
  margin-bottom: 40px;
  text-align: center;
  color: var(--text-soft);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Áreas de Negocio */
#areas {
  background: linear-gradient(135deg, var(--bg-main), #f0f9ff);
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.area-card {
  background: var(--white);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.area-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.area-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: blueviolet; /* (135deg, var(--chakra4), var(--chakra5)); */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 30px;
}

.area-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--chakra6);
}

/* Productos y Servicios */
#productos {
  background: linear-gradient(135deg, #f0f9ff, var(--bg-main));
}

.carousel-container {
  position: relative;
  max-width: 800px;
  margin: 50px auto 0;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.carousel {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-item {
  min-width: 100%;
  padding: 40px;
  text-align: center;
  background: linear-gradient(135deg, var(--chakra5), var(--chakra7));
  color: var(--white);
}

.carousel-icon {
  margin-bottom: 20px;
}

.carousel-title {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--chakra5);
  margin: 0 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.carousel-dot.active {
  background: var(--chakra2);
}

/* Historia */
#historia {
  background: linear-gradient(135deg, var(--bg-main), #f0f9ff);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 50px auto 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: linear-gradient(to bottom, var(--chakra2), var(--chakra4));
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: auto;
  margin-right: 0;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 0;
  margin-right: auto;
}

.timeline-content {
  position: relative;
  width: 45%;
  padding: 20px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 20px;
  width: 20px;
  height: 20px;
  background: var(--chakra5);
  border-radius: 50%;
}

.timeline-item:nth-child(odd) .timeline-content::before {
  right: -10px;
}

.timeline-item:nth-child(even) .timeline-content::before {
  left: -10px;
}

.timeline-date {
  font-weight: 700;
  color: var(--chakra5);
  margin-bottom: 10px;
  font-size: 15px;
}

.timeline-date2 {
  font-weight: 700;
  color: var(--chakra2);
  margin-bottom: 10px;
  font-size: 15px;
}

.timeline-content h3 {
  margin-bottom: 10px;
  color: var(--chakra6);
}

/* Contacto */
#contacto {
  background: var(--chakra4);
  color: var(--white);
}

#contacto h2 {
  color: var(--white);
}

#contacto h1 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.2rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-top: 50px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 8px;
  font-weight: 500;
}

.form-input {
  padding: 12px 15px;
  border: none;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 16px;
}

.form-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--chakra3);
}

/* Botón de WhatsApp Flotante */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 25px;
  right: 25px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
  text-decoration: none;
}
        
.whatsapp-float:hover {
  background-color: #128C7E;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.7);
}
        
.whatsapp-float:active {
  transform: scale(0.95);
}
        
.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  bottom: 15px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
        
.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--white), var(--white));
  color: var(--text-main);
  padding: 50px 0 20px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.footer-links {
  display: flex;
  list-style: none;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-link a {
  color: var(--chakra1);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link a:hover {
  color: var(--chakra5);
}

.social-icons {
  display: flex;
  gap: 20px;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: var(--chakra3);
  transform: translateY(-3px);
}

.copyright {
  margin-top: 30px;
  text-align: center;
  font-size: 14px;
  opacity: 0.8;
}

/* Animaciones */
.hidden-left, .hidden-right {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s ease;
}

.hidden-right {
  transform: translateX(50px);
}

.show {
  opacity: 1;
  transform: translateX(0);
}

/* Responsive */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-desc {
    font-size: 2rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 130px;
    left: 100%;
    width: 80%;
    height: calc(45vh - 190px);
    background: linear-gradient(135deg, var(--bg-main), var(--bg-main));
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 50px;
    transition: left 0.3s ease;
    border-radius: 10px 10px 10px 10px;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-item {
    margin: 15px 0;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-desc {
    font-size: 2rem;
  }
  
  section h2 {
    font-size: 2rem;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-content {
    width: calc(100% - 60px);
    margin-left: 60px !important;
    margin-right: 0 !important;
  }
  
  .timeline-content::before {
    left: -10px !important;
    right: auto !important;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .whatsapp-float {
    width: 55px;
    height: 55px;
    bottom: 20px;
    right: 20px;
    font-size: 28px;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 1.8rem;
  }
  
  .areas-grid {
    grid-template-columns: 1fr;
  }
  
  .carousel-item {
    padding: 30px 20px;
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 15px;
    right: 15px;
    font-size: 25px;
  }
            
  .whatsapp-tooltip {
    font-size: 12px;
    padding: 6px 10px;
  }
}