:root {
    --primary-color: #F48A00;
    --secondary-color: #052F65;
    --text-white: #FFFFFF;
}

.btn-contact {
    background-color: var(--primary-color);
    color: white !important;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(248, 147, 31, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(248, 147, 31, 0.6);
}


.nosotros-main {
    overflow-x: hidden;
    background-color: #fff;
}


.nosotros-hero {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 7;
    min-height: 600px;
    max-height: 1800px;
    background-color: #ffffff;
}

.hero-bg-source {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    display: block;
    z-index: 1;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.hero-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: -40px;
    width: 100%;
    max-width: 90%;
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: clamp(20px, 5vw, 80px);
    z-index: 2;
}

.product-bucket-container {
    position: relative;
    width: clamp(250px, 30vw, 500px);
    height: clamp(280px, 34vw, 550px);
    overflow: hidden;
    background: transparent;
    transform: translateY(20px);
}

.product-slide {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    background: transparent;
    transform: translateY(110%);
    opacity: 0;
    transition: none;
}

.product-slide.enter {
    animation: slideUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.product-slide.exit {
    animation: slideDown 0.4s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}

@keyframes slideUp {
    0% {
        transform: translateY(110%);
        opacity: 0;
    }

    60% {
        opacity: 1;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(110%);
        opacity: 0;
    }
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transform: rotate(5deg);
    transition: transform 0.3s ease;
}


.hero-left {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    align-self: stretch;
    margin-top: 0;
}

.hero-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 0px;
}

.years-branding {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: center;
    gap: 15px;
    margin-bottom: -15px;
    width: 100%;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.years-branding .number {
    font-size: clamp(60px, 9vw, 130px);
    font-weight: 800;
    line-height: 0.85;
    color: var(--primary-color);
    letter-spacing: -3px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.05);
}

.years-branding .text {
    font-size: clamp(30px, 4.5vw, 65px);
    font-weight: 800;
    color: var(--primary-color);
    text-transform: uppercase;
    display: inline-block;
    min-width: 1.5em;
    /* Asegura un espacio base */
    text-align: left;
}

.branding-subtitle {
    font-size: clamp(14px, 1.8vw, 24px);
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1.2;
    text-align: center;
    margin-top: 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.branding-subtitle span {
    display: block;
    white-space: nowrap;
}

.description-section .container {
    padding: auto;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
}

.main-description {
    font-size: 20px;
    line-height: 1.6;
    color: var(--secondary-color);
    font-weight: 500;
    text-align: center;
}


.coverage-section {
    padding: 120px 0 80px 0;
    height: auto;
    min-height: 850px;
    background-color: #ffffff;
}

.coverage-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    position: relative;
    align-items: center;
    justify-content: flex-start;
    gap: 0px;

}

.coverage-left {
    flex: 1;
    max-width: 600px;
    text-align: left;
    margin-left: 80px;
    position: relative;
    z-index: 2;

}

.coverage-title {
    margin-bottom: 60px;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.coverage-title span {
    display: block;
}

.coverage-title .orange {
    color: var(--primary-color);
    font-size: 38px;
    font-weight: 800;
    line-height: 1.1;
}

.coverage-title .navy {
    color: var(--secondary-color);
    font-size: 48px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1px;
}

.stats-list {
    display: flex;
    flex-direction: column;
    gap: 80px;
    padding-left: 50px;
}


.stat-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 30px;
}

.stat-number,
.stat-icon-wrapper {
    width: 80px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.stat-number {
    font-size: 65px;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 0.9;
}

.stat-icon-wrapper i {
    font-size: 50px;
    color: var(--primary-color);
}

.stat-icon-wrapper img {
    width: 70px;
    height: auto;
    object-fit: contain;
}

.stat-text {
    font-size: 17px;
    font-weight: 600;
    color: var(--secondary-color);
    line-height: 1.4;
    max-width: 320px;
    overflow-wrap: break-word;
}

.coverage-right {
    position: absolute;
    top: -150px;
    right: 0;
    z-index: 1;
    display: flex;
    justify-content: flex-end;
}

.coverage-map {
    width: 1100px;

    height: auto;
}


.description-section {
    margin-top: clamp(60px, 10vw, 120px);
    padding: 60px 0 100px 0;
    background-color: transparent;
    text-align: center;
}


.innova-tecnologia {
    height: auto;
    padding: 80px 0 180px 0;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}

.innova-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.innova-header {
    text-align: center;
    margin-bottom: 60px;
}

.innova-header h2 {
    font-size: clamp(30px, 6vw, 57px);
    font-weight: 800;
    line-height: 1.2;
    color: var(--primary-color);
    margin-bottom: 45px;
    letter-spacing: 1px;
    display: inline-block;
    white-space: normal;
    overflow: visible;
    min-height: 1.2em;
    position: relative;
}

.innova-header h2::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 10%;
    height: 80%;
    width: 4px;
    background-color: var(--primary-color);
    display: none;
}

.innova-header h2.typing-active::after {
    display: block;
    animation: blink-cursor 0.7s step-end infinite;
}

.innova-header h2.typing-done {
    border-right: none;
}

@keyframes blink-cursor {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.innova-header h2.typing-active {
    animation: blink-cursor 0.7s step-end infinite;
}

.innova-header p {
    font-size: clamp(17px, 2.5vw, 20px);
    font-weight: 500;
    color: var(--secondary-color);
    line-height: 1.5;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.innova-header p.reveal-text {
    opacity: 1;
    transform: translateY(0);
}

.typing-effect {
    display: inline-block;
    position: relative;
    border-right: 4px solid transparent;
}

.typing-effect.typing-active {
    border-right-color: var(--primary-color);
    animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: var(--primary-color);
    }
}

.typing-effect.typing-done {
    border-right: none;
}

.innova-features {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 160px;
    /* Bajado un poco más para PC */
    margin-left: 80px;
}

.feature-row {
    display: flex;
    align-items: stretch;
}

.feature-box {
    width: 250px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transform: translateX(-80px);
    transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow-wrap: break-word;
    word-break: break-word;
}

.feature-box.reveal {
    opacity: 1;
    transform: translateX(0);
}

.feature-box:hover .circle-fill-drip,
.feature-box:hover .circle-check,
.feature-box:hover .circle-leaf {
    transform: translateY(-8px) scale(1.05);
    filter: drop-shadow(0 15px 25px rgba(248, 147, 31, 0.4));
}

.feature-box i {
    font-size: 45px;
    color: var(--secondary-color);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.4s ease;
}

.feature-box p {
    font-size: 20px;
    font-weight: 500;
    color: var(--secondary-color);
    line-height: 1.3;
}

.v-divider {
    width: 1px;
    height: 80px;
    background-color: var(--secondary-color);
    margin: 0 35px;
    margin-top: 15px;
}

.h-divider {
    width: 40px;
    height: 1px;
    background-color: var(--secondary-color);
    margin: 40px 0 40px 80px;
}

.circle-fill-drip,
.circle-check,
.circle-leaf {
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: transparent;
    position: relative;
    overflow: visible;
    margin-bottom: 15px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.circle-fill-drip img,
.circle-check img,
.circle-leaf img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.2);
}

.circle-leaf img {
    transform: translate(-50%, -45%) scale(1.3);
}

.features-desktop-container .circle-leaf {
    margin-bottom: 5px;
}

/* Ocultar contenedor móvil por defecto en pantallas grandes */
.features-mobile-container {
    display: none !important;
}

@media (max-width: 1200px) {
    .years-branding .number {
        font-size: 80px;
    }

    .coverage-title .navy {
        font-size: 38px;
    }

    .coverage-title .orange {
        font-size: 30px;
    }

    .stat-number {
        font-size: 55px;
    }

    .coverage-title {
        padding-left: 0;
    }
}

@media (max-width: 992px) {
    .nosotros-hero {
        min-height: 700px;
    }

    .description-section {
        position: relative;
        bottom: auto;
        padding: 20px 0;
    }

    .coverage-section {
        padding: 150px 0 20px 0;
        min-height: auto;
    }

    .hero-container {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        justify-content: flex-end;
        padding-top: 100px;
        padding-bottom: 40px;
        text-align: center;
    }

    .hero-left {
        margin-top: 0;
        justify-content: center;
    }

    .product-bucket-container {
        width: clamp(200px, 50vw, 300px);
        height: clamp(240px, 58vw, 350px);
        margin: 0 auto;
    }

    .product-img {
        width: 100%;
        height: 100%;
    }

    .product-badge {
        font-size: 11px;
        padding: 4px 12px;
    }

    .hero-right {
        align-items: center;
        text-align: center;
        margin-top: 20px;
        align-self: center;
        margin-bottom: 0px;
    }

    .stat-item {
        justify-content: flex-start;
        gap: 10px;
    }

    .stat-number,
    .stat-icon-wrapper {
        width: 50px;
    }

    .stat-icon-wrapper img {
        width: 45px;
    }

    .years-branding {
        justify-content: center;
    }

    .coverage-container {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: 20px;
        padding: 0 20px;
    }

    .coverage-left {
        flex: 1.2;
        margin-left: 0;
        text-align: left;
        z-index: 5;
    }

    .coverage-title {
        text-align: left;
        margin-bottom: 120px;
    }

    .coverage-title .orange {
        font-size: 24px;
    }

    .coverage-title .navy {
        font-size: 30px;
    }

    .stats-list {
        padding-left: 10px;
        gap: 25px;
    }

    .stat-number {
        font-size: 40px;
    }

    .stat-text {
        font-size: 14px;
    }

    .coverage-right {
        flex: 1;
        position: relative;
        top: 0;
        right: 0;
        margin-top: 0;
        display: flex;
        justify-content: flex-end;
    }

    .coverage-map {
        width: 180%;
        max-width: none;
        margin-right: -40%;
    }

    .innova-tecnologia {
        min-height: auto;
        padding-top: 180px; /* Mantener padding original para móvil */
        padding-bottom: 200px;
        background-image: url('../img/banner_principal/franca.webp');
        background-position: center bottom;
        background-size: cover;
        background-repeat: no-repeat;
    }
    
    .innova-picture {
        display: none;
    }

    .innova-features {
        margin-left: 20px;
        align-items: flex-start;
        margin-top: 20px;
    }

    .feature-row {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 20px;
    }

    .feature-box {
        width: calc(50% - 20px);
        align-items: flex-start;
        text-align: left;
    }

    .v-divider,
    .h-divider {
        display: none;
    }

    .marcas-img {
        width: 90px !important;
    }
}

@media (max-width: 768px) {

    html,
    body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }

    .years-branding .number {
        font-size: 80px;
    }

    .years-branding .text {
        font-size: 40px;
    }

    .branding-subtitle {
        font-size: 20px;
    }

    .description-section {
        margin-top: 30px;
        padding: 10px 0 30px 0;
    }

    .description-section .container {
        padding: 0 20px;
    }

    .main-description {
        font-size: 15px;
        line-height: 1.5;
    }

    .stat-number {
        font-size: 45px;
    }

    .stat-text {
        font-size: 16px;
    }

    .coverage-section .coverage-map {
        width: 172%;
        max-width: 800px;
        height: auto;
        margin: 0;
        display: block;
        transform: translateX(-16%);
    }

    .coverage-section .coverage-left {
        margin-top: -65px;
    }



    .innova-tecnologia {
        background-size: 100% auto;
        background-position: center bottom;
        padding-bottom: 290px;
    }

    .innova-header h2 {
        font-size: 26px;
        white-space: normal;
        border-right-width: 3px;
    }

    .feature-box {
        width: calc(50% - 20px);
    }

    .feature-box p {
        font-size: 14px;
    }

    .circle-fill-drip,
    .circle-check,
    .circle-leaf {
        width: 45px;
        height: 45px;
        margin-bottom: 10px;
        margin-top: 0;
    }

    .circle-fill-drip img,
    .circle-check img,
    .circle-leaf img {
        transform: translate(-50%, -50%) scale(1.2) !important;
    }

    .circle-leaf img {
        transform: translate(-50%, -50%) scale(1.3) !important;
    }

    /* Ocultar layout de PC en móviles */
    .features-desktop-container {
        display: none !important;
    }

    /* Contenedor móvil horizontal perfecto con los 3 elementos alineados y separadores finos entre los iconos */
    .features-mobile-container {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        width: 100% !important;
        max-width: 550px !important;
        margin: 0 auto !important;
        padding: 0 15px !important;
        gap: 20px !important;
        margin-top: 35px !important;
    }

    .features-mobile-container .feature-box {
        width: 33.33% !important;
        opacity: 0 !important;
        transform: translateY(40px) !important;
        transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
        padding: 0 !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 6px !important;
    }

    .features-mobile-container .feature-box.reveal {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }

    .features-mobile-container .feature-box:nth-child(3) {
        margin-top: -15px !important;
    }



    .features-mobile-container .feature-box p {
        font-size: 11px !important;
        line-height: 1.15 !important;
        color: var(--secondary-color) !important;
        font-weight: 600 !important;
        text-align: center !important;
        margin: 0 !important;
    }

    .features-mobile-container .feature-box i {
        position: relative !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin-bottom: 2px !important;
    }

    /* Trazar líneas separadoras verticales alineadas exclusivamente entre los círculos de icono */
    .features-mobile-container .feature-box:not(:last-child) i::after {
        content: '' !important;
        position: absolute !important;
        right: clamp(-24px, -6vw, -16px) !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 1.5px !important;
        height: 28px !important;
        background-color: var(--secondary-color) !important;
    }

    .innova-tecnologia {
        padding: 60px 0 550px 0 !important;
        background-position: center bottom !important;
    }

    .marcas-img {
        width: 90px !important;
    }
}

/* =============================================
   LARGE SCREENS RESPONSIVE
 ============================================= */
@media (min-width: 1600px) {

    .hero-container,
    .coverage-container,
    .innova-wrapper {
        max-width: 85%;
    }

    .product-bucket-container {
        width: 32vw;
        height: 36vw;
    }

    .years-branding .number {
        font-size: 8.5vw;
    }

    .years-branding .text {
        font-size: 4.5vw;
    }

    .branding-subtitle {
        font-size: 1.8vw;
    }

    .main-description {
        font-size: 24px;
        max-width: 1100px;
    }

    .coverage-title .orange {
        font-size: 45px;
    }

    .coverage-title .navy {
        font-size: 60px;
    }

    .stat-number {
        font-size: 80px;
    }

    .stat-text {
        font-size: 22px;
        max-width: 350px;
    }

    .innova-header h2 {
        font-size: 65px;
    }

    .innova-header p {
        font-size: 22px;
        max-width: 1000px;
    }

    .feature-box p {
        font-size: 24px;
    }

    .circle-fill-drip,
    .circle-check,
    .circle-leaf {
        width: 80px;
        height: 80px;
    }

    .marcas-slider {
        max-width: 1550px;
    }

    .marcas-img {
        width: 190px;
    }
}