@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* general */
html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 7em;
}

.main-content {
    flex: 1;
}

.bold {
    font-weight: 700;
}

.light {
    font-weight: 300;
}

.uppercase {
    text-transform: uppercase;
}

.spaced {
    letter-spacing: 0.1em;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

/* header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background-color: transparent;
}

.logo {
    position: fixed;
    top: 2em;
    left: 4rem;
    z-index: 1000;
}

.logo img {
    width: 10em;
}

.nav {
    background-color: #006837;
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 60%;
    padding: 1em;
    border-top-right-radius: 5em;
    border-bottom-right-radius: 5em;
    padding-left: 15em;
    position: fixed;
    height: 2em;
    top: 2em;
    left: 0;
    z-index: 1000;
}

.nav a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1em;
    text-transform: uppercase;
}

.menu {
    display: flex;
    justify-content: space-between;
}

.social-icon {
    width: 2em;
    display: flex;
}

.contact-and-language {
    top: 2em;
    right: 0;
    position: fixed;
    background-color: #006837;
    width: 20%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 1em;
    border-top-left-radius: 5em;
    border-bottom-left-radius: 5em;
    height: 2em;
    z-index: 1000;
}

.whatsapp {
    display: flex;
    align-items: center;
    gap: 1em;
    color: white;
    font-weight: 700;
    font-size: 1em;
}

.language {
    display: flex;
    gap: 1em;
}

/* Botón de hamburguesa para móvil */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    position: fixed;
    right: 20px;
    top: 3em;
    transform: translateY(-50%);
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Mobile menu overlay */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 104, 55, 0.95);
    z-index: 1002;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2em;
}

.mobile-menu a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.5em;
    text-transform: uppercase;
}

.mobile-menu .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2em;
    cursor: pointer;
}

/* Tablets (768px - 1024px) */
@media (max-width: 1464px) {
    .logo {
        left: 2rem;
    }

    .logo img {
        width: 8em;
    }

    .nav {
        width: 65%;
        padding-left: 12em;
        font-size: 0.9em;
    }

    .nav a {
        font-size: 0.9em;
    }

    .contact-and-language {
        width: 15%;
        padding: 0.8em;
    }

    .whatsapp {
        font-size: 0.8em;
    }

    .whatsapp span {
        display: none;
    }
    
    .language img {
        width: 1.5em;
    }

    #cobertura-title {
        font-size: 1vw !important;
        margin-bottom: 3em !important;
    }

    #nosotros-title {
        font-size: 1.7vw !important;
    }

}

/* Mobile (hasta 924px) */
@media (max-width: 924px) {
    .header {
        margin: 0;
    }

    .logo {
        top: 0;
        left: 2rem;
    }

    .logo img {
        width: 6em;
    }

    .nav {
        display: none;
    }

    .contact-and-language {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        max-width: 100vw;
        border-radius: 0;
        justify-content: center;
        gap: 2em;
        min-width: auto;
        z-index: 1000;
        padding: 2em 1em;
        height: auto;
    }

    .hamburger {
        display: flex;
        right: 20px;
        padding-right: 2em;
        z-index: 1001;
        top: 3em;
    }

    .mobile-menu.active {
        display: flex;
        z-index: 1002;
    }

    .whatsapp {
        margin-left: 40px;
    }

    .whatsapp span {
        display: none;
    }

    .language {        
        margin-left: -10px !important;
    }

    .language img {
        width: 1.8em;
    }

    #hero .e-con-inner {
        padding: 0 !important;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 4.5em;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1.5em !important;
    }

    .hero-buttons button {
        width: 80% !important;
        padding: 1em 0 !important;
        font-size: 1.8em !important;
    }

    .servicios {
        border-top-left-radius: 1em;
        border-top-right-radius: 1em;
        border-bottom-left-radius: 0 !important;
    }

    .contacto {
        border-bottom-right-radius: 1em;
        border-bottom-left-radius: 1em;
    }

    
    #cobertura-title {
        font-size: 0.5em !important;
        margin-bottom: 3em !important;

    }

}

/* Mobile pequeño (hasta 480px) */
@media (max-width: 480px) {
    .container {
        font-size: 0.6em !important;
    }

    #crecimiento-constante-text .section {
        padding-top: 1.5em;
    }

}

/* CSS específico para la versión en inglés */
html[lang*="en"] .bold,
html[lang*="en"] span.bold {
    margin-left: 0.25em !important;
}

html[lang*="en"] .two-decades {
    margin-right: 0.25em !important;
}

/* Animación para hamburguesa */
.hamburger.active span:nth-child(1) {
    opacity: 0;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    opacity: 0;
}


.close-menu {
    position: absolute;
    top: 140px;
    right: 50px;
    color: white;
    font-size: 3em;
    cursor: pointer;
}

@media (min-width: 1150px) {
    #crecimiento-constante-text {
        padding-left: 4em;
    }
}

/* hero */
.hero {
    position: relative;
}

.hero {
    display: flex; /* CLAVE: flexbox directo */
    align-items: center; /* Centrado vertical */
    justify-content: center; /* Centrado horizontal */
    background-image: url('assets/hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    position: absolute;
    top: -10;
    z-index: -10;
    margin-top: -6em;
    min-height: 100vh;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: white;
    width: 100%;
}

.hero-content img {
    width: 15em;
}

.hero-content h1 {
    font-size: 3em;
    text-align: center;
    max-width: 70%;
    font-weight: 300;
    letter-spacing: 0.1em;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2em;
    margin-top: 3.5em;
}

.hero-buttons button {
    background-color: white;
    font-family: 'Poppins', sans-serif;
    border: none;
    color: #494949;
    width: 18em;
    padding: 0.5em;
    font-size: 1.3em;
    letter-spacing: 0.1em;
}

.hero-title {
    color: white;
    margin-top: 80px !important;
}

.servicios {
    border-bottom-left-radius: 1em;
}

.contacto {
    border-bottom-right-radius: 1em;
}

#hero-inicio .e-con-inner div img {
    max-width: 25vw !important;
    min-width: 200px !important;
}

#hero-inicio {
    padding: 5em !important;
}

/* footer */
.footer {
    min-height: 25vh;
    background-color: #1a1a1a;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2em;
    margin-top: auto;
    padding: 5rem 1rem;
}

.logo-footer {
    max-width: 200px;
    height: auto;
    object-fit: contain;
    margin: 2em;
}

.footer-content {
    height: auto;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 2em;
    flex-wrap: wrap;
}

.footer-nav {
    padding-bottom: 0.5em;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5em;
}

.footer-nav a {
    color: white;
    text-decoration: none;
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.footer-link:not(:last-child)::after {
    content: " | ";
    color: #ffffff;
    margin: 0 8px;
}

.social-media-footer {
    margin-left: 3em;
    display: flex;
    align-items: center;
}

.social-icon {
    width: 2.5em;
    height: auto;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1);
}

/* footer responsiveness */
/* Tablets (768px - 1024px) */
@media (max-width: 1024px) {
    .footer {
        gap: 1.5em;
        padding: 1.5rem 1rem;
    }

    .logo-footer {
        width: 10em;
        margin: 1.5em;
    }

    .footer-nav a {
        font-size: 0.9em;
    }

    .social-media-footer {
        margin-left: 2em;
    }

    .social-icon {
        width: 2.2em;
    }

    .hero-title {
        margin: 80px 5em !important;
    }

    #services-detail .e-con-inner div {
        padding: 1.5em 0 !important;
    }
      
    #contact-div .e-con-inner div {
        padding: 3em !important;
    }

    #hero-inicio {
        padding: 0 !important;
        font-size: 0.6em !important;
        max-height: 20vw !important;
    }

    #info-inicio-parrafo {
        font-size: 1.5vw;
    }

    .btn-saber-mas {
        font-size: 1.5vw;
    }

}

/* Mobile (hasta 768px) */
@media (max-width: 768px) {
    .footer {
        min-height: auto;
        flex-direction: column;
        gap: 1.5em;
        padding: 2rem 1rem;
        text-align: center;
    }

    .logo-footer {
        width: 8em;
        margin: 1em 0;
        order: 1;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 1.5em;
        order: 2;
        height: auto;
    }

    .footer-nav {
        order: 1;
        padding-bottom: 1em;
    }

    .footer-nav a {
        font-size: 0.85em;
        padding: 0.2em 0;
    }

    .social-media-footer {
        order: 2;
        margin-left: 0;
    }

    .social-icon {
        width: 2.5em;
    }

    #info-inicio {
        padding: 1em !important;
    }

    #info-inicio-parrafo {
        font-size: 1em !important;
    }

    #info-inicio-parrafo h2 {
        margin-top: 0 !important;
    }

    .btn-saber-mas {
        font-size: 1em !important;
        padding: 0.8em 0 !important;
        margin-top: 0.5em !important;
    }

    .service-img {
        max-width: 350px !important;
    }

    #tecnologia-img {
        max-width: 300px !important;
    }

    #cobertura-mapa {
        padding: 0.5em !important;
    }

}

@media (max-width: 567px) {
    .stats {
        grid-template-columns: 1fr !important;
    }
}

/* Mobile pequeño (hasta 480px) */
@media (max-width: 480px) {
    .footer {
        padding: 1.5rem 0.5rem;
    }

    .logo-footer {
        width: 6em;
    }

    .footer-nav {
        flex-direction: column;
        gap: 0.8em;
        text-align: center;
    }

    .footer-nav a {
        font-size: 0.8em;
        display: block;
        padding: 0.3em 0;
    }

    /* Remover separadores en móvil pequeño */
    .footer-link:not(:last-child)::after {
        display: none;
    }

    .social-icon {
        width: 2em;
    }
}

/* Mobile extra pequeño (hasta 320px) */
@media (max-width: 320px) {
    .footer {
        padding: 1rem 0.25rem;
    }

    .logo-footer {
        width: 5em;
    }

    .footer-nav a {
        font-size: 0.75em;
        letter-spacing: 0.05em;
    }

    .social-icon {
        width: 1.8em;
    }
}

#tecnologia-hero .e-con-inner{
    padding-top: 8em;
}

#tecnologia-hero .e-con-inner div div img {
    min-width: 250px;
}

#hero-services .e-con-inner {
    padding-top: 0 !important;
}



@media (max-width: 1267px) {
    #tecnologia-header {
      font-size: 0.8em !important;
    }
}

@media (max-width: 767px) {
    .elementor-element.elementor-element-711a59a.elementor-column.elementor-col-100 {
        width: auto;
    }

    #tecnologia-hero .e-con-inner {
        padding-top: 20px !important;
    }

    #tecnologia-hero {
        padding: 3em;
    }

    #tecnologia-header {
        text-align: center;
    }
}

@media (max-width: 837px) {
    .nosotros-text {
        padding: 1.5em 2em !important;
    }
}


.elementor-element.elementor-element-1ed9fc5.elementor-widget.elementor-widget-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* info inicio */
.btn-saber-mas {
    background-color: #006837;
    color: white;
    border: none;
    padding: 1em 2em;
    font-size: 1em;
    letter-spacing: 0.1em;
    cursor: pointer;
    border-bottom-right-radius: 2em;
    border-bottom-left-radius: 2em;
    width: 100%;
}

/* contact */
.contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8em;
    width: 100%;
    color: white;
}

.contact-form h2 {
    margin-bottom: 0;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1.5em;
    border: none;
    background-color: hsla(0, 0%, 20%, 0.719);
    font-family: 'Poppins', sans-serif;
    color: white;
    font-size: 1em;
}

.contact-form button {
    background-color: #ffffff;
    color: rgb(0, 0, 0);
    border: none;
    padding: 1em 2em;
    font-size: 1em;
    letter-spacing: 0.1em;
    cursor: pointer;
    width: 60%;
    border-bottom-right-radius: 2em;
    border-bottom-left-radius: 2em;
}

.contact-form button:hover {
    background-color: #f0f0f0;
}


.contact-form textarea {
    border-bottom-left-radius: 2em !important;
    border-bottom-right-radius: 2em !important;
}

::placeholder {
    color: #cccccc;
    opacity: 1;
    font-style: italic;
}

.contact-form p {
    color: white;
    text-align: center;
}

form input:first-of-type {
    border-top-left-radius: 2em;
    border-top-right-radius: 2em;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

form input:not(:first-of-type):not(:last-child),
form textarea:not(:last-child) {
    border-radius: 0;
}

/* misc */
#hero-content {
    padding-top: 3em !important;
}

.hero-image {
    margin-top: -8em;
}

/* servicios */
.service-title-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 0 3em;
}

.service-title {
    margin: 0;
    color: white;
    text-align: center;
    padding-top: 1.5em;
}

.service-learn-more {
    color: #e85a24;
    margin: 0;
    padding-bottom: 3em;
}

.service-learn-more:hover {
    cursor: pointer;
    color: #e69271;
}

#services-detail .e-con-inner div img {
    max-width: 20em;
}

@media (max-width: 1196px) {
    #services-detail .e-con-inner div {
        margin: 0 1.5em !important;
    }
}

@media (min-width: 768px) {
    #contact-div .e-con-inner div {
        padding: 3em 0 !important;
    }

}


/* 
@media (max-width: 1140px) {
    #hero-inicio .e-con-inner {
        font-size: 0.8em !important;
    }
}

@media (min-width: 1141px) {
    #hero-inicio .e-con-inner div img {
        width: 30% !important;
    }
} */

/* nosotros */
.section{
    width: 100%;
    padding:64px 20px 72px;
}
.container{
    width: 100%;
    margin:0 auto;
}

/* Título */
.eyebrow{
    text-align:center;
    letter-spacing:0.35em;
    text-transform:uppercase;
    font-size:clamp(22px, 2.6vw, 36px);
    margin:0 0 28px;
    color: #e85a24;
}

/* Métricas */
.stats{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap: clamp(20px, 3.5vw, 48px);
    align-items:stretch;
    margin-bottom: 28px;
    color: white;
}
.stat{
    text-align:center;
    padding:18px 8px;
}
.stat .label-top{
    display:block;
    font-size:clamp(14px, 1.4vw, 16px);
    margin-bottom:6px;
}
.stat .value{
    font-weight:800;
    font-size:clamp(56px, 7vw, 96px);
    line-height:1;
    letter-spacing:0.02em;
    margin:0 0 6px;
}
.stat .label-bottom{
    display:block;
    font-size:clamp(14px, 1.4vw, 16px);
}

/* Texto */
.lead,
.copy{
    color:#d9d9d9;
    text-align:center;
    margin-inline:auto;
}
.lead{
    max-width:900px;
    font-size:clamp(15px, 1.5vw, 18px);
    margin-top:12px;
}
.copy{
    max-width:980px;
    margin-top:28px;
    font-size:clamp(14px, 1.35vw, 17px);
}

/* valores */
.values-section{
  padding:60px 20px 70px;
}
.values-container{
  max-width:1100px;
  margin:0 auto;
}
.values-heading{
  text-align:center;
  margin:0 0 26px;
  font-size:clamp(24px,3.2vw,40px);
}
.values-heading strong{ font-weight:800; }
.values-grid{
  display:grid;
  gap:clamp(12px,2vw,24px);
  justify-items:center;
  margin-bottom:clamp(24px,4vw,40px);
}
.values-top{ grid-template-columns:repeat(3,minmax(220px,1fr)); }
.values-bottom{
  grid-template-columns:repeat(2,minmax(220px,1fr));
  max-width:760px;
  margin-inline:auto;
}
.values-item{
  text-align:center;
  padding:18px 10px;
}
.values-item img{
  width:110px;
  margin:0 auto 10px;
}
.values-item h3{
  margin:8px 0;
  text-transform:uppercase;
  font-weight:800;
}
.values-item p{
  margin:0;
  max-width:320px;
  color:#6a7a86;
}
@media(max-width:900px){
  .values-top{ grid-template-columns:repeat(2,1fr); }
  .values-bottom{ grid-template-columns:repeat(2,1fr); max-width:none; }
}
@media(max-width:600px){
  .values-top,.values-bottom{ grid-template-columns:1fr; }
  .values-item img{ width:90px; }
}

/* highlight box */
.highlight-box {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #006837;
  color: #fff;
  padding: 20px;
}

.highlight-icon {
  width: 50px;
  height: auto;
  margin-right: 15px;
}

.highlight-text {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
}

/* TECNOLOGÍA */
#tecnologia-header {
    display: flex;
    justify-content: center;
    flex-direction: column;
    font-size: 1em;
}

.tecnologia-title {
    margin: 0;
    color: #e85a24;
    letter-spacing: 0.5em;
}

.tecnologia-subtitle {
    color: white;
    margin: 0;
}

/* Responsivo - Mobile */
@media (max-width: 768px) {
    .hero-section {
        height: 80vh;
        background-attachment: scroll; /* Mejor rendimiento en móvil */
    }

    .floating-box {
        bottom: -150px;
        width: 95%;
        margin: 0 2.5%;
    }

    .stats-section {
        padding-top: 200px;
    }

    .stats-container {
        flex-direction: column;
        gap: 2rem;
    }

    .stat-item {
        min-width: auto;
        width: 100%;
    }
}

/* Mobile pequeño */
@media (max-width: 480px) {
    .floating-box {
        bottom: -120px;
        padding: 1.5rem;
    }

    .stats-section {
        padding-top: 170px;
    }
}

@media (max-width: 782px) {
    #crecimiento-constante .e-con-inner {
        padding-top: 0 !important;
        width: 100% !important;
    }

    #crecimiento-constante {
        padding-left: 1em !important;
        padding-right: 1em !important;
    }
}

#contact-response { font-size: 0.95rem; }
.contact-success { color: #2e7d32; } /* verde */
.contact-error   { color: #c62828; } /* rojo */

.service-card { position: relative; }

.service-toggle {
  display: inline-flex;
background: none;
border: none;
box-shadow: none;
outline: none;
padding: 0;
  align-items: center;
  gap: .5rem;
  color: #e85a24;
  font: inherit;
  text-transform: lowercase;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.service-toggle:hover {
    color: #eca68b;

}

/* Chevron */
.service-toggle .chevron {
  width: .4rem;
  height: .4rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.service-toggle[aria-expanded="true"] .chevron {
  transform: rotate(-135deg);
}

.service-more {
    text-align: left;
  overflow: hidden;
  color: white;
  transition: grid-template-rows .3s ease, opacity .25s ease;
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
}
.service-more > * {
  overflow: hidden;
}
.service-more.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
}
