@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Montserrat:wght@400;600;700&display=swap');

:root {
  --primary-color: #1B5E20; /* Dark Green corporate */
  --secondary-color: #4CAF50; /* Accent Green */
  --accent-color: #8BC34A; 
  --dark-bg: #121212;
  --light-bg: #ffffff;
  --text-main: #2b2b2b;
  --text-light: #f1f1f1;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.2);
  --green-whatsapp: #25d366;
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background-color: var(--light-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--primary-color);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* Header & Navbar */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #ffffff !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  transition: none;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  max-width: 1400px;
  margin: auto;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  height: 85px;
  width: 330px;
}

.logo img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  transform: scale(1);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.4s ease;
}

.logo:hover img {
  transform: scale(1.08); /* Animación de crecimiento sin cortar exageradamente */
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  font-weight: 600;
  color: #333;
  padding: 10px;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary-color);
}

.nav-links a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: width 0.3s;
}

.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

/* Dropdown */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border-radius: 8px;
  list-style: none;
  min-width: 200px;
  overflow: hidden;
  animation: fadeIn 0.3s ease forwards;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li a {
  padding: 12px 20px;
  display: block;
  text-transform: none;
  color: var(--text-main);
}
.dropdown-menu li a:hover {
  background: var(--light-bg);
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  margin-top: 90px;
  height: 70vh;
  min-height: 500px;
  background: linear-gradient(135deg, rgba(27, 94, 32, 0.95) 0%, rgba(76, 175, 80, 0.85) 100%), url('../img/Foto1.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-light);
  padding: 0 20px;
  position: relative;
  overflow: hidden;
}

.video-hero {
  background: none;
}



.video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 0;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 800px;
}

.hero h1 {
  font-size: 3.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  animation: slideUp 0.8s ease;
  text-shadow: 2px 2px 0px #fff, 4px 4px 5px rgba(0,0,0,0.3); /* Efecto 3D */
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 30px auto;
  color: var(--primary-color);
  font-weight: 700;
  opacity: 1;
  animation: slideUp 1s ease;
  text-shadow: 1px 1px 0px #fff, 2px 2px 4px rgba(0,0,0,0.3); /* Efecto 3D suave */
}

.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 30px;
  font-weight: 700;
  background: var(--accent-color);
  color: #111;
  text-transform: uppercase;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 0px #4CAF50, 0 6px 10px rgba(0,0,0,0.3); /* Efecto 3D en botones */
  text-shadow: 1px 1px 1px rgba(255,255,255,0.4);
}
.btn:hover {
  transform: translateY(2px);
  box-shadow: 0 2px 0px #4CAF50, 0 4px 8px rgba(0,0,0,0.3); /* Simula presionar el botón 3D */
}
.btn-primary {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 4px 0px #0c3310, 0 6px 10px rgba(0,0,0,0.3);
  text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
}
.btn-primary:hover {
  transform: translateY(2px);
  box-shadow: 0 2px 0px #0c3310, 0 4px 8px rgba(0,0,0,0.3);
}

/* Main Sections */
.section-padding {
  padding: 80px 5%;
  max-width: 1200px;
  margin: auto;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  position: relative;
}
.section-title::after {
  content: '';
  width: 60px;
  height: 4px;
  background: var(--secondary-color);
  display: block;
  margin: 15px auto 0;
  border-radius: 2px;
}

/* Page Header Ribbon */
.page-header {
  background: var(--primary-color);
  height: 180px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 30px;
  color: white;
  margin-top: 90px;
  text-align: center;
}

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

.page-header h1 {
  color: white !important;
  font-size: 2.8rem;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Services Grid */
.grid-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.service-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: all 0.4s ease;
  position: relative;
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}
.service-card.active-card {
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
  transform: translateY(-5px) scale(1.01);
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.service-img {
  height: 200px;
  background: #ddd;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.service-card:hover .service-img img {
  transform: scale(1.1);
}

.img-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(27, 94, 32, 0.6);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 600;
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 2;
  gap: 10px;
}
.service-img:hover .img-overlay {
  opacity: 1;
}

.service-content {
  padding: 25px;
}
.service-content h3 {
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.service-content p {
  color: #666;
  margin-bottom: 20px;
}

.service-details {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-15px);
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
              opacity 0.4s ease, 
              transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              margin-top 0.4s ease;
  margin-top: 0;
}
.service-details.active {
  max-height: 1200px; /* Suficiente para listas largas */
  opacity: 1;
  transform: translateY(0);
  margin-top: 25px;
}
.service-details ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
  border-top: 1px dashed #ddd;
  padding-top: 15px;
}
.service-details li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: #555;
  text-align: left;
}
.service-details li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
}

.service-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-whatsapp);
  font-weight: 600;
}

/* Forms */
.form-container {
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  max-width: 800px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #444;
}
.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* Floating WhatsApp */
.floating-wa {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 60px;
  height: 60px;
  background-color: var(--green-whatsapp);
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
  animation: pulse 2s infinite;
}

.floating-wa:hover {
  transform: scale(1.1);
  color: white;
}

/* Zoom Image SGS */
.zoom-container {
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  position: relative;
  max-width: 500px;
  margin: 20px auto;
  cursor: zoom-in;
}

.zoom-container img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}
.zoom-container:hover img {
  transform: scale(1.5);
}

/* Footer */
footer {
  background: var(--dark-bg);
  color: white;
  padding: 60px 5% 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: auto;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 40px;
  margin-bottom: 20px;
}

.footer-col h3 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.5rem;
}
.footer-col ul {
  list-style: none;
}
.footer-col li {
  margin-bottom: 10px;
  color: #bbb;
}
.footer-col a:hover {
  color: var(--secondary-color);
}
.footer-logo {
  max-width: 200px;
  margin-bottom: 20px;
}

.footer-bottom {
  text-align: center;
  color: #888;
  font-size: 0.9rem;
}

/* Animations */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@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); }
}

/* Mobile */
@media(max-width: 768px) {
  .logo {
    height: 60px;
    width: 230px;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    gap: 15px;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    display: none;
    z-index: 999;
  }
  .nav-links.active {
    display: flex !important;
  }
  .navbar .menu-toggle {
    display: block;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
  }
  .dropdown-menu {
    position: static;
    box-shadow: none;
    text-align: center;
    background: #f9f9f9;
    min-width: 100%;
    display: none;
  }
  .dropdown.active .dropdown-menu {
    display: block;
  }
  .hero h1 { font-size: 2rem; }
  .floating-wa { bottom: 20px; left: 20px; width: 50px; height: 50px; font-size: 25px; }
  .grid-services { grid-template-columns: 1fr; gap: 20px; }
  .service-card { margin: 0; }
  
  .page-header {
    height: 150px;
    padding-bottom: 20px;
  }
  .page-header h1 {
    font-size: 1.8rem;
  }
}

/* Floating Social Sidebar */
.social-sidebar {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  z-index: 1001;
}

.social-sidebar a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  color: white;
  font-size: 22px;
  transition: all 0.3s ease;
  border-radius: 8px 0 0 8px;
  margin-bottom: 5px;
}

.social-sidebar a:hover {
  width: 60px;
  padding-right: 10px;
}

.social-facebook { background: #1877f2; }
.social-instagram { background: #e4405f; }
.social-tiktok { background: #000000; }
.social-webmail { background: #d44638; }

@media(max-width: 768px) {
  .social-sidebar {
    top: auto;
    bottom: 100px;
    transform: none;
  }
  .social-sidebar a {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}
@media(min-width: 769px) {
  .menu-toggle { display: none; }
}
