/* Estilos generales */

html {
    scroll-behavior: smooth;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 100%;
}

body {
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 60px 0;
}

.black {
    color: #2c2c2c;
}

h1,
h2,
h3 {
    margin-bottom: 20px;
    color: #ffffff;
}

p {
    margin-bottom: 15px;
    color: #ffffff;
}


.spam {
    color: #439f38;
}

/* Header y Navegación */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
}

.navbar {
    position: relative;
    top: -20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    border-bottom: 2px solid #ffffff;
    border-radius: 0 0 20px 20px;
    padding: 10px 30px;
}


.navbar .nav-links li a.active {
    color: #439f38 !important;
    font-weight: bold;
}


.navbar .nav-links li a:hover:not(.active) {
    color: #439f38;
}


.navbar.scrolled .nav-links li a {
    color: white;
}

.navbar.scrolled .nav-links li a.active {
    color: #439f38 !important;
}





.badge {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #439f38;
    padding: 1px 12px;
    border-radius: 20px;
    width: 150px;
    height: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    transform: scale(1);
}

.badge:hover {
    transform: scale(1.05);
    background: #439f38;

}

.badge img {
    max-height: 110%;
    max-width: 100%;
    transition: transform 0.3s ease;
}

.badge:hover img {
    transform: scale(1.05);
}


.logo img {
    width: 100px;
    height: auto;
    display: block;
}



.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #439f38;
}



/* Estilos para los menús desplegables */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 0 0 10px 10px;
    min-width: 200px;
    display: none;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.dropdown-menu a:last-child {
    border-bottom: none;
    border-radius: 0 0 10px 10px;
}

.dropdown-menu a:hover {
    background-color: #439f38;
    color: white !important;
}

/* Flecha indicadora en los items con dropdown */
.dropdown>a::after {
    content: "▼";
    font-size: 10px;
    margin-left: 5px;
    vertical-align: middle;
}

/* Estilos de menús desplegables */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 0 0 10px 10px;
    min-width: 200px;
    display: none;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}



.nav-links a.active {
    color: #439f38; /* verde */
}




.hero-static {
    position: relative;
    height: 70vh; 
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 180px; 
    overflow: hidden;
}

.hero-static::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.hero-static .slide-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 30px;
    border-radius: 10px;
    background: transparent;
}

.pCustom {
    font-size: 2.5rem; 
    font-weight: bold;
    color: #439F38;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-shadow: 0 3px 6px rgba(255, 255, 255, 0.2); 
}



.data-policy {
  background-color: #ffffff;
  padding: 40px 20px;
  font-family: 'Arial', sans-serif;
  color: #333;
  line-height: 1.6;
}

.data-policy .container {
  max-width: 900px;
  margin: 0 auto;
}

.data-policy h2 {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #1d2a57;
}

.data-policy h2 span {
  color: #439F38; 
}

.data-policy p {
  font-size: 16px;
  color: #4a4a4a;
  margin-bottom: 16px;
}




/* Footer compacto */
footer {
    position: relative;
    background: url("../img/mapa.jpg") no-repeat center center;
    background-size: cover;
    color: #fff;
    padding: 40px 0 10px; /* menos padding */
    font-size: 14px;
    z-index: 1;
}

/* Overlay */
footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
    gap: 20px;
}

/* Logo */
.footer-logo {
    flex: 1;
    min-width: 220px;
}
.footer-logo img {
    max-width: 150px;
    margin-bottom: 10px;
}
.footer-logo p {
    line-height: 1.5;
    color: #ddd;
    font-size: 13px;
}

/* Secciones */
.footer-section {
    flex: 1;
    min-width: 180px;
}
.footer-section h3 {
    margin-bottom: 10px;
    font-size: 15px;
}

/* Links */
.footer-links,
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li,
.footer-contact li {
    margin-bottom: 8px;
}
.footer-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 13px;
}
.footer-links a:hover {
    color: #43a047;
}

/* Contacto */
.footer-contact li {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}
.footer-contact i {
    color: #43a047;
    font-size: 13px;
}

/* Copyright + Habeas en una sola línea */
.footer-bottom {
    text-align: center;
    margin-top: 20px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 12px;
    color: #aaa;
    line-height: 1.4;
}
.footer-bottom a {
    color: #43a047;
    text-decoration: none;
    margin-left: 8px;
    font-size: 12px;
}
.footer-bottom a:hover {
    text-decoration: underline;
}


/* Botón scroll top */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: #439f38; 
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: none; 
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 10px;
}

.scroll-top img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    pointer-events: none; 
}


.scroll-top:hover {
    background: #008f40;
    transform: scale(1.15);
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}






.badge {
    width: 120px;
    height: 40px;
}

.badge img {
    max-height: 100%;
}


.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 25px;
    position: relative;
    z-index: 1000;
}

.hamburger .bar {
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* Estado activo para la animación de la 'X' */
.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}



.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.badge {
    width: 150px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #439f38;
    padding: 1px 12px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    transform: scale(1);
}

.badge img {
    max-height: 110%;
    max-width: 100%;
    transition: transform 0.3s ease;
}


.about .container,
.products .container {
    display: grid;
    gap: 40px;
    grid-template-columns: 1fr 1fr;
}

.about .container {
    align-items: center;
}



/* Media Queries */
@media (max-width: 1200px) {
    .navbar {
        padding: 10px 20px;
    }

    .nav-links li {
        margin-left: 15px;
    }

    .logo img {
        width: 130px;
    }
}

@media (max-width: 992px) {

    .about .container,
    .products .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .products-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .experience-box {
        transform: none;
        margin-top: 20px;
        margin-left: 100px;
    }

    .contact-container {
        flex-direction: column;
    }

    .contact-info,
    .contact-form,
    .contact-image {
        max-width: 100%;
        margin-bottom: 30px;
    }

    .contact-image {
        order: -1;
        justify-content: center;
    }

    .contact-image img {
        top: 0;
        max-width: 300px;
    }

    .stats {
        flex-wrap: wrap;
        justify-content: center;
    }

    .stat {
        flex: 0 0 50%;
        margin-bottom: 20px;
        border-right: none;
        justify-content: center;
    }

    .footer-container {
        gap: 20px;
        margin-left: 20px;
    }
}

@media (max-width: 768px) {
    /* Header y Navegación Responsive */
    .contact-image {
        display: none;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.9);
        z-index: 999;
        transform: translateX(-100%);
        transition: transform 0.5s ease;
    }

    .nav-links.active {
        display: flex;
        transform: translateX(0);
    }

    /* 🔹 Opciones principales del navbar con línea divisoria */
    .nav-links li a {
        display: block;
        padding: 12px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        text-align: center;
        font-size: 1.2rem;
        color: white;
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .nav-links li:last-child a {
        border-bottom: none;
    }

    .nav-links li a:hover,
    .nav-links li a:focus {
        color: #00b050;
        background: transparent;
    }

    /* 🔹 Dropdown en móvil */
    .nav-links.active .dropdown-menu {
        display: none;
        position: static;
        background-color: transparent;
        box-shadow: none;
        width: 100%;
        padding: 0;
    }

    .nav-links.active .dropdown-menu.active {
        display: flex;
        flex-direction: column;
        align-items: flex-start; /* alineamos a la izquierda */
        padding-left: 20px;
    }

    .nav-links .badge  {
        width: 150px !important;  
        height: auto !important; 
    }

    .nav-links .badge {
        margin-top: 20px;       
        display: flex;
        justify-content: center; 
    }


    /* Opciones del dropdown con barra lateral */
    .dropdown-menu a {
        font-size: 1rem; /* más pequeño que el menú principal */
        padding: 10px 15px;
        text-align: left;
        color: white;
        border-bottom: none; /* quitamos las rayas horizontales */
        border-left: 3px solid rgba(255, 255, 255, 0.3); /* barra lateral */
    }


    .nav-links .dropdown-menu a {
        font-size: 0.9rem !important; /* forzamos */
    }

    .dropdown-menu a:hover,
    .dropdown-menu a:focus {
        color: #00b050;
        border-left: 3px solid #00b050; /* barra verde en hover */
        background: transparent;
    }

    .hamburger {
        display: flex;
    }

    .logo img {
        width: 120px;
    }

    /* Oculta los dropdowns en la vista de móvil cuando no están activos */
    .dropdown:hover .dropdown-menu {
        display: none;
    }

    .dropdown>a::after {
        content: "";
    }

    .slide-content h1 {
        font-size: 2rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .static-buttons {
        bottom: 30px;
    }

    .location-btn {
        padding: 10px 20px;
        font-size: 14px;
        margin: 0 8px;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .feature-item {
        padding: 30px 20px;
    }

    .overlay-circle {
        width: 150px;
        height: 150px;
        top: -30px;
        left: -30px;
    }

    .play-button img {
        width: 40px;
        height: 40px;
    }

    .testimonials-header {
        flex-direction: column;
    }

    .testimonials-header .right {
        text-align: left;
        margin-top: 20px;
    }

    .testimonial {
        flex: 0 0 100%;
    }

    .brand-slide {
        width: 150px;
    }

    .arrow {
        font-size: 20px;
        padding: 6px 10px;
    }
}

@media (max-width: 576px) {
    .contact-image {
        display: none;
    }
    /* Ajustes para móviles pequeños */
    .navbar {
        padding: 10px 15px;
    }

    .logo img {
        width: 100px;
    }

    .slide-content {
        padding: 20px;
        margin-top: 0;
    }

    .slide-content h1 {
        font-size: 1.8rem;
    }

    .static-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .location-btn {
        width: 80%;
        margin: 5px 0;
    }

    .about h2,
    .products h2,
    .testimonials h2 {
        font-size: 2rem;
    }

    .products-tag,
    .about-tag {
        font-size: 12px;
        padding: 5px 12px;
    }

    .circle-icon {
        width: 8px;
        height: 8px;
        margin: 0 8px;
    }

    .product-categories li {
        font-size: 14px;
    }

    .experience-box {
        padding: 15px 25px;
    }

    .experience-box .years {
        font-size: 36px;
    }

    .stats {
        flex-direction: column;
        align-items: center;
    }

    .stat {
        flex: 0 0 100%;
        margin-bottom: 25px;
    }

    .footer-section {
        min-width: 100%;
        margin-left: 20px;
    }

}




.badge {
    width: 120px;
    height: 40px;
}

.badge img {
    max-height: 100%;
}



/* Botón scroll top */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: #439f38; 
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: none; 
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 10px;
}

.scroll-top img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    pointer-events: none; 
}


.scroll-top:hover {
    background: #008f40;
    transform: scale(1.15);
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}



/* -------------------------------
   Responsive específico: Hero (Nosotros) + Equipo
   Pegar al final del archivo CSS
   ------------------------------- */

/* ajustes generales para el grid inferior del equipo */
.team-grid.bottom {
  justify-content: center; /* centra el grid inferior */
  margin: 0 auto 40px;
}

/* ==========================
   Tablet / desktop pequeño
   ========================== */
@media (max-width: 992px) {
  /* HERO */
  .hero-static {
    height: 60vh;
    padding-top: 120px;
    background-position: center 40%;
  }
  .hero-static .slide-content {
    max-width: 700px;
    padding: 22px;
  }
  .pCustom {
    font-size: 2rem;
    letter-spacing: 1.2px;
    text-shadow: 0 2px 5px rgba(255,255,255,0.18);
  }

  /* ABOUT (nosotros) - pasar a 1 columna en pantallas medianas */
  .about-section .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* TEAM - top: 2 columnas, bottom: 2 columnas centradas */
  .team-grid.top {
    grid-template-columns: repeat(2, 1fr);
    max-width: 760px;
    gap: 22px;
  }
  .team-grid.bottom {
    grid-template-columns: repeat(2, 1fr);
    max-width: 560px;
    gap: 20px;
  }

  /* tarjetas: responsivas pero sin estirarse demasiado */
  .team-card {
    width: 100%;
    max-width: 320px;
  }
}

/* ==========================
   Tablet / móvil grande
   ========================== */
@media (max-width: 768px) {


  /* HERO */
  .hero-static {
    height: 50vh;
    padding-top: 80px;
    align-items: center; /* centro verticalmente para pantallas pequeñas */
  }
  .hero-static .slide-content {
    padding: 16px;
  }
  .pCustom {
    font-size: 1.6rem;
    letter-spacing: 1px;
  }

  /* TEAM */
  .team-grid.top {
    grid-template-columns: 1fr 1fr; /* 2 columnas */
    max-width: 620px;
    gap: 18px;
  }
  .team-grid.bottom {
    grid-template-columns: 1fr 1fr; /* 2 columnas */
    max-width: 520px;
    gap: 18px;
    justify-content: center;
  }
  .team-card {
    max-width: 280px;
  }
}

/* ==========================
   Móvil pequeño
   ========================== */
@media (max-width: 576px) {
  /* HERO */
  .hero-static {
    height: 45vh;
    padding-top: 40px;
  }
  .hero-static .slide-content {
    padding: 12px;
  }
  .pCustom {
    font-size: 1.4rem;
    letter-spacing: 0.8px;
  }

  /* ABOUT (nosotros) */
  .about-section .about-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* TEAM -> apilar a 1 columna y centrar */
  .team-grid.top,
  .team-grid.bottom {
    grid-template-columns: 1fr;
    max-width: 360px;
    gap: 16px;
    justify-content: center;
  }
  .team-card {
    width: 100%;
    max-width: 360px;
  }

  /* tag y íconos más pequeños */
  .about-tag {
    font-size: 12px;
    padding: 5px 10px;
  }
  .circle-icon {
    width: 8px;
    height: 8px;
    margin: 0 8px;
  }

  /* nombre y cargo más compacto */
  .team-info h3 {
    font-size: 15px;
    padding: 8px;
  }
  .team-info p {
    font-size: 13px;
  }
}

/* Pantalla de carga */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff; /* Fondo blanco limpio */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader-content {
  text-align: center;
}

.preloader-logo {
  width: 120px;
  margin-bottom: 20px;
}

/* Spinner minimalista */
.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(67, 159, 56, 0.3); /* verde tenue */
  border-top-color: #439f38; /* verde principal */
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Ocultar cuando termine */
#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}
