/* Estilos generales */
:root {
    --primary-color: #2c5b4b;
    --secondary-color: #4caf50;
    --accent-color: #8bc34a;
    --text-color: #333333;
    --light-text: #666666;
    --background-color: #ffffff;
    --light-background: #f8f9fa;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s;
    --border-radius: 12px;
    --font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell,
      "Open Sans", "Helvetica Neue", sans-serif;
  
    /* Colores de redes sociales */
    --facebook-color: #1877F2;
    --instagram-color: #E4405F;
    --twitter-color: #282626;
    --linkedin-color: #0A66C2;
    --youtube-color: #ff0000;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
  }
  
  body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
    overflow-x: hidden;
  }
  
  .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  img {
    max-width: 100%;
    height: auto;
  }
  
  a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-speed);
  }
  
  ul {
    list-style: none;
  }
  
  section {
    padding: 80px 0;
    position: relative;
  }
  
  .logo-text-agrotic {
            font-family: 'Inter', sans-serif;
            font-weight: 700;
            fill: url(#logoGradient);
            filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
            transition: transform 0.3s ease-in-out;
        }
        
    .logo-text-agrotic:hover {
        transform: scale(1.05);
    }
  
  /* Header */
  .header {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
  }
  
  .header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
  }
  
  .logo {
    height: 50px;
  }
  
  .logo img {
    height: 100%;
    object-fit: contain;
  }
  
  .nav {
    margin-left: auto; /* Empuja el nav hacia la derecha */
    margin-right: 20px; /* Espacio entre el nav y los botones */
  }
  
  .nav ul {
    display: flex;
    gap: 30px;
  }
  
  .nav a {
    font-weight: 500;
    position: relative;
  }
  
  .nav a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed);
  }
  
  .nav a:hover::after {
    width: 100%;
  }
  
  .menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    z-index: 101;
  }
  
  .header-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
  }
  
  .login-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 24px;
    font-weight: 500;
    transition: all var(--transition-speed);
  }
  
  .login-btn:hover {
    background-color: #2c5b4b;
  }
  
  .whatsapp-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #25d366;
    color: white;
    padding: 8px 16px;
    border-radius: 24px;
    font-weight: 500;
    transition: all var(--transition-speed);
  }
  
  .whatsapp-btn:hover {
    background-color: #128c7e;
  }
  
  /* Menú móvil */
  .mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 100;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .mobile-menu.active {
    display: block;
    opacity: 1;
  }
  
  .mobile-menu-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  }
  
  .mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  .mobile-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-color);
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
  }
  
  .mobile-menu a:hover {
    color: var(--primary-color);
  }
  
  .mobile-menu i {
    width: 24px;
    text-align: center;
  }
  
  /* Botones */
  .btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 24px;
    font-weight: 500;
    text-align: center;
    transition: all var(--transition-speed);
    cursor: pointer;
  }
  
  .btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(52, 103, 156, 0.3);
  }
  
  .btn-primary:hover {
    background-color: #2a5580;
  }
  
  .btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
  }
  
  .btn-outline:hover {
    background-color: rgba(52, 103, 156, 0.1);
  }
  
  .btn-whatsapp {
    background-color: #25d366;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 24px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  }
  
  .btn-whatsapp:hover {
    background-color: #128c7e;
  }
  
  /* Hero Section */
  .hero-section {
    padding-top: 80px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e6f1ff 100%);
    position: relative;
  }
  
  .hero-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
  }
  
  .hero-content {
    flex: 1;
  }
  
  .hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--primary-color);
  }
  
  .hero-content p {
    font-size: 18px;
    color: var(--light-text);
    margin-bottom: 30px;
    max-width: 500px;
  }
  
  .hero-buttons {
    display: flex;
    gap: 16px;
  }
  
  .hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .hero-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px var(--shadow-color);
  }
  
  .scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0.7;
  }
  
  .mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    position: relative;
  }
  
  .wheel {
    width: 4px;
    height: 8px;
    background-color: var(--primary-color);
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
  }
  
  @keyframes scroll {
    0% {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }
    100% {
      opacity: 0;
      transform: translateX(-50%) translateY(15px);
    }
  }
  
  .arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }
  
  .arrow span {
    display: block;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid var(--primary-color);
    border-right: 2px solid var(--primary-color);
    transform: rotate(45deg);
    animation: arrow 1.5s infinite;
    animation-delay: calc(0.2s * var(--i));
  }
  
  .arrow span:nth-child(1) {
    --i: 1;
  }
  
  .arrow span:nth-child(2) {
    --i: 2;
  }
  
  .arrow span:nth-child(3) {
    --i: 3;
  }
  
  @keyframes arrow {
    0% {
      opacity: 0;
      transform: rotate(45deg) translate(-5px, -5px);
    }
    50% {
      opacity: 1;
    }
    100% {
      opacity: 0;
      transform: rotate(45deg) translate(5px, 5px);
    }
  }
  
  /* Logo Background */
  .logo-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
  }
  
  .logo-bg-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 800px;
    opacity: 0.08;
    filter: blur(2px);
    animation: pulse 8s infinite ease-in-out;
  }
  
  @keyframes pulse {
    0% {
      transform: translate(-50%, -50%) scale(1);
      opacity: 0.08;
    }
    50% {
      transform: translate(-50%, -50%) scale(1.05);
      opacity: 0.1;
    }
    100% {
      transform: translate(-50%, -50%) scale(1);
      opacity: 0.08;
    }
  }
  
  /* Estilo para el logo en la sección hero */
  .hero-logo {
    max-width: 100%;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
  }
  
  /* Sección de Servicios */
  .services-section {
    background-color: var(--background-color);
  }
  
  .section-header {
    text-align: center;
    margin-bottom: 60px;
  }
  
  .section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
  }
  
  .section-header p {
    font-size: 18px;
    color: var(--light-text);
    max-width: 700px;
    margin: 0 auto;
  }
  
  .services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
  }
  
  .service-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 10px 30px var(--shadow-color);
    position: relative;
    overflow: hidden;
    z-index: 1;
  }
  
  .service-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(52, 103, 156, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
  }
  
  .service-icon i {
    font-size: 28px;
    color: var(--primary-color);
  }
  
  .service-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--primary-color);
  }
  
  .service-card p {
    color: var(--light-text);
    
  }
  
  /* Sección de Características */
  .features-section {
    background-color: var(--light-background);
    position: relative;
    overflow: hidden;
  }
  
  .features-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  .feature-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 10px 30px var(--shadow-color);
    position: relative;
    width: 100%;
  }
  
  .feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--primary-color);
  }
  
  .feature-card p {
    color: var(--light-text);
  }
  
  /* Sección de Contacto */
  .contact-section {
    background-color: var(--background-color);
  }
  
  .contact-container {
    max-width: 900px;
    margin: 0 auto;
  }
  
  .contact-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px var(--shadow-color);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
  
  .contact-info,
  .contact-social {
    padding: 30px;
  }
  
  .contact-info h3,
  .contact-social h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 24px;
  }
  
  .contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
  }
  
  .contact-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(52, 103, 156, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  
  .contact-icon i {
    font-size: 20px;
    color: var(--primary-color);
  }
  
  .contact-text h4 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 4px;
  }
  
  .contact-text p {
    color: var(--light-text);
  }
  
  .contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
  }
  
  /* Redes sociales en contacto */
  .contact-social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
    justify-content: center;
  }
  
  .social-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    transition: all var(--transition-speed);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  
  .social-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  }
  
  .social-icon.facebook {
    background-color: var(--facebook-color);
  }
  
  .social-icon.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  }
  
  .social-icon.twitter {
    background-color: var(--twitter-color);
  }
  
  .social-icon.linkedin {
    background-color: var(--linkedin-color);
  }
  
  .social-icon.youtube {
    background-color: var(--youtube-color);
  }
  
  /* Footer */
  .footer {
    background-color: #2c5b4b;
    color: white;
    padding: 60px 0 30px;
  }
  
  .footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
  }
  
  .footer-logo {
    max-width: 300px;
  }
  
  .footer-logo img {
    margin-bottom: 20px;
  }
  
  .footer-logo p {
    color: rgba(255, 255, 255, 0.7);
  }
  
  .footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
  
  .footer-column h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
  }
  
  .footer-column h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
  }
  
  .footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .footer-column a {
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--transition-speed);
  }
  
  .footer-column a:hover {
    color: white;
  }
  
  .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
  }
  
  .social-links {
    display: flex;
    gap: 16px;
  }
  
  .social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed);
  }
  
  .social-links a:hover {
    background-color: var(--accent-color);
  }
  
  .social-links i {
    color: white;
    font-size: 16px;
  }
  
  /* Botón flotante de WhatsApp */
  .floating-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 99;
    transition: all var(--transition-speed);
  }
  
  .floating-whatsapp i {
    font-size: 30px;
  }
  
  .floating-whatsapp:hover {
    background-color: #128c7e;
  }
  
  /* Animaciones de scroll */
  .reveal-text,
  .reveal-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
  
  .reveal-text.active,
  .reveal-item.active {
    opacity: 1;
    transform: translateY(0);
  }

  /* Media Queries */
  @media (max-width: 992px) {
    .hero-section .container {
      flex-direction: column;
    }
  
    .hero-content {
      text-align: center;
    }
  
    .hero-content p {
      margin: 0 auto 30px;
    }
  
    .hero-buttons {
      justify-content: center;
    }
  
    .footer-content {
      grid-template-columns: 1fr;
      gap: 40px;
    }
  
    .footer-logo {
      max-width: 100%;
      text-align: center;
    }
  
    .footer-logo img {
      margin: 0 auto 20px;
    }
  
    .contact-card {
      grid-template-columns: 1fr;
    }
  }
  
  @media (max-width: 768px) {
    .header-whatsapp span {
      display: none;
    }
  
    .login-btn span {
      display: none;
    }
  
    .nav {
      display: none;
    }
  
    .menu-toggle {
      display: block;
    }
  
    .hero-content h1 {
      font-size: 36px;
    }
  
    .section-header h2 {
      font-size: 30px;
    }
  
    .footer-links {
      grid-template-columns: 1fr;
      gap: 30px;
    }
  
    .footer-bottom {
      flex-direction: column;
      gap: 20px;
    }
  
    .contact-social-icons {
      gap: 15px;
    }
  
    .social-icon {
      width: 60px;
      height: 60px;
      font-size: 20px;
    }
  }
  
  @media (max-width: 576px) {
    .hero-buttons {
      flex-direction: column;
      gap: 16px;
    }
  
    .btn {
      width: 100%;
    }
  
    .contact-buttons {
      flex-direction: column;
    }
  
    .social-icon {
      width: 50px;
      height: 50px;
      font-size: 18px;
    }
  }