:root {
    --primary: #f76e10;
    --secondary: #f3971c;
    --dark: #35323d;
    --light: #ffffff;
    --gray: #737284;

    --light2: #ededed;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Helvetica, Arial, sans-serif;
}

body {
    color: var(--dark);
}

/* HEADER */
/* .header {
    position: fixed;
    width: 100%;


    background: linear-gradient(
        135deg,
        var(--light) 0%,
        var(--secondary) 100%
    );

    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
    z-index: 1000;
} */

.header {/* COLOR DE FONDO BARRA DE NAVEGACION */
    position: fixed;
    width: 100%;

    background: linear-gradient(
        90deg,
        var(--primary) 0%,
        var(--secondary) 100%
    );

    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 8%;
}

.logo {
    height: 60px;
}

.nav ul {
    display: flex;
    list-style: none;
}

.nav a {
    /*margin-left: 20px;
    text-decoration: none;
    color: var(--light);*/

    margin-left: 20px;
    text-decoration: none;

    color: var(--dark);
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--light);
}

.nav a.active {
    color: var(--light);
    font-weight: 600;
}

.lang-switch button {
    margin-left: 5px;
    border: none;
    background: none;
    cursor: pointer;
}

/* HERO */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: rgb(253, 249, 249);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* SECTIONS */
.section { 
    padding: 80px 8%;
}

.bg-primary   { background: #f76e10; }
.bg-secondary { background: #f3971c; }
.bg-dark      { background: #35323d; }
.bg-light     { background: #f4f4f4; }
.bg-gray      { background: #737284; }
.bg-light2    { background: #ededed; }


.grid-2, .grid-3 {
    display: grid;
    gap: 30px;
}

.grid-2 {
    grid-template-columns: repeat(2,1fr);
}

.grid-3 {
    grid-template-columns: repeat(3,1fr);
}

/* Layout sección Nosotros */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}


.about-text p {
    margin-top: 30px;
    color: var(--dark); 
    line-height: 1.7;
    font-size: 3.75 rem;
    text-align: justify;
   
}

.about-image {
    overflow: hidden;
    border-radius: 8px;
}

.about-image img {
   /* width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);*/

    width: 100%;
    height: auto;
    animation: subtleZoom 18s ease-in-out infinite;
    will-change: transform;

}

.about-image:hover img {
    animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
    .about-image img {
        animation: none;
    }
}

@keyframes subtleZoom {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.04);
    }
    100% {
        transform: scale(1);
    }
}

/* ******************************** */



/* =========================
   MISIÓN & VISIÓN
========================= */

.mission-wrapper {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.mission-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.mission-row.reverse {
    grid-template-columns: 1fr 1fr;
    color: var(--primary);
}

.mission-content p {  
    text-align: justify;
    text-justify: inter-word;
    color: var(--dark);
    line-height: 1.7;
    margin-top: 20px;
    
}

.mission-image {
    overflow: hidden;
    border-radius: 12px;
}

.mission-image img {
    width: 100%;
    height: auto;
    display: block;
    animation: subtleZoom 20s ease-in-out infinite;
    will-change: transform;
}

.mission-image:hover img {
    animation-play-state: paused;
}

/* Responsive */
@media (max-width: 768px) {
    .mission-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .mission-row.reverse {
        display: flex;
        flex-direction: column-reverse;
    }

    .mission-content p {
        text-align: left;
    }
}






/* =========================
   HOVER SUTIL MISIÓN & VISIÓN
========================= */

.mission-content {
    transition: 
        transform 0.35s ease,
        box-shadow 0.35s ease;
    will-change: transform;
}
/*
.mission-content:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}*/


.mission-content:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}




/* =========================
   MISIÓN & VISIÓN – HOVER PRO
========================= */

.mission-card {
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
    will-change: transform;
}

/* Hover sutil */
.mission-card:hover {
    transform: translateY(-8px) scale(1.04);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

/* @media (hover: hover) {
    .mission-card:hover {
        transform: translateY(-8px) scale(1.04);
    }
} */

.vision-card {
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
    will-change: transform;
}

/* Hover sutil */
.vision-card:hover {
    transform: translateY(-8px) scale(1.04);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

/* ********************************** */



/* ============================
SERVICIOS
=============================== */

.card, .service {
    background: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
}

.service i {
    font-size: 40px;
    color: var(--primary);
}

#services h2 {
    text-align: center;
    font-size: 2.75rem;
    
}

.services-intro {
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--gray);
}

.services-intro {
    max-width: 820px;
    margin: 20px auto 60px;
    text-align: center;
    color: var(--gray);
    line-height: 1.7;
}

.service i {
    font-size: 42px;
    color: var(--primary);
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
    will-change: transform;
}

.service:hover i {
    transform: translateY(-6px) scale(1.08);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.18);
}


@media (prefers-reduced-motion: reduce) {
    .service i {
        transition: none;
    }

    .service:hover i {
        transform: none;
        box-shadow: none;
    }
}




/* Card base del servicio */
.service {
    background: var(--light);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    transition: 
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}

/* Hover: levantar y resaltar */
.service:hover {
    transform: translateY(-10px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
}

/* Ícono */
.service i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
    transition: 
        transform 0.3s ease,
        color 0.3s ease;
}

/* Ícono en hover */
.service:hover i {
    transform: scale(1.15);
    color: var(--secondary);
}

/* Título */
.service h4 {
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

/* Texto */
.service p {
    color: var(--gray);
    transition: color 0.3s ease;
}

/* Texto más contrastado al hover */
.service:hover h4 {
    color: var(--dark);
}

.service:hover p {
    color: var(--dark);
}


/* Ícono como imagen */
.service-icon {
    width: 90px;
    height: auto;
    margin-bottom: 1rem;
    transition: 
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

/* Hover sobre toda la card */
.service:hover .service-icon {
    transform: scale(1.15);
   /* box-shadow: 0 14px 35px rgba(0, 0, 0, 0.18);*/
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
}

.service-list li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 8px;
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

.service-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}


.service p {
    margin-top: 10px;
    line-height: 1.7;           /* CLAVE: interlineado profesional */    
    font-size: 0.95rem;
    color: var(--gray);
    max-width: 320px;           /* evita líneas muy largas */
    margin-left: auto;
    margin-right: auto;
}


/* ************************** */

.service-section{
    padding:80px 0;
    
    margin: 20px;
}

.service-layout{
    display:grid;
    grid-template-columns: 420px 1fr;
    gap:50px;
    align-items:center;
    border:2px solid #f26522;
    border-radius:25px;
    padding:40px;
}

/* Imagen */

.service-image img{
    width:100%;
    border-radius:20px;
}

/* Header */

.service-header{
    display:flex;
    align-items:center;
    gap:15px;
    margin-bottom:20px;
}

.service-number{
    width:60px;
    height:60px;
    background:#f26522;
    color:white;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:28px;
    font-weight:bold;

    flex-shrink:0; /* evita que se comprima */
}

.service-header h2{
    font-size:32px;
}

/* descripcion */

.section-intro{
    margin-bottom:25px;
    line-height:1.6;
}

/* cajas */

.service-box{
    border:1px solid #ccc;
    border-radius:12px;
    padding:18px 22px;
    margin-bottom:15px;
    background:#fff;
}

.service-box h4{
    color:#f26522;
    margin-bottom:8px;
    text-align: center;
}

@media (max-width:900px){

.service-layout{
    grid-template-columns:1fr;
}

.service-image{
    order:-1;
}

}

/****************************/


/* =========================
   SERVICIOS – GRID RESPONSIVE
========================= */

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

/* Tablet */
@media (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 600px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
}


.service {
    max-width: 100%;
    overflow: hidden;
}

.service img {
    max-width: 100%;
    height: auto;
}



/* =========================
   FIX GLOBAL SCROLL HORIZONTAL
========================= */

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* ********************************* */

/* FORM */
form {
    max-width: 500px;
    margin: auto;
}

input, textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
}




/* =========================
   FORM RESPONSE STYLES
========================= */

#formResponse {
    margin-top: 15px;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    animation: fadeIn 0.4s ease forwards;
}

#formResponse.success {
    color: #1b7f3b;
}

#formResponse.error {
    color: #c0392b;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================
   FORMULARIO PROFESIONAL
========================= */

#contact form,
#contactForm {
    background: #ffffff;
    padding: 40px 35px;
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
    max-width: 620px;
    margin: 40px auto 0 ;
}


/* Inputs modernos */
#contactForm input,
#contactForm textarea {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 18px;

    border-radius: 10px;
    border: 1px solid #dcdcdc;

    font-size: 0.95rem;
    color: var(--dark);
    background: #fafafa;

    transition: 
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        background-color 0.3s ease;
}

/* Placeholder */
#contactForm input::placeholder,
#contactForm textarea::placeholder {
    color: #9a9a9a;
    font-weight: 400;
}

/* Focus elegante */
#contactForm input:focus,
#contactForm textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(247, 110, 16, 0.15);
}

/* Textarea */
#contactForm textarea {
    min-height: 140px;
    resize: vertical;
}


/* =========================
   BOTÓN ENVIAR PRO
========================= */

#contactForm .btn-primary {
    width: 100%;
    padding: 14px 0;
    margin-top: 10px;

    background: linear-gradient(
        135deg,
        var(--primary),
        var(--secondary)
    );

    color: #ffffff; 
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;

    border: none;
    border-radius: 50px;
    cursor: pointer;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        opacity 0.3s ease;
}

/* Hover */
/*#contactForm .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    opacity: 0.95;
}*/

#contactForm .btn-primary:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    opacity: 0.95;
}

/* Active */
#contactForm .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}


/* Animación entrada formulario */
/*
#contactForm {
    animation: formFadeUp 0.6s ease both;
}

@keyframes formFadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
*/




/* =========================
   ANIMACIONES ON SCROLL (PRO)
========================= */

/* Estado inicial (oculto) */
.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
    will-change: opacity, transform;
}

/* Estado visible */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Variantes */
.reveal-left {
    transform: translateX(-30px);
}

.reveal-right {
    transform: translateX(30px);
}

.reveal-scale {
    transform: scale(0.95);
}

/* Cuando se activa */
.reveal-left.active,
.reveal-right.active,
.reveal-scale.active {
    transform: translateX(0) scale(1);
}



.reveal-up {
    opacity: 0;
    transform: translateY(35px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
    will-change: opacity, transform;
}

.reveal-down {
    opacity: 0;
    transform: translateY(-35px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
    will-change: opacity, transform;
}

/* Estado activo */
.reveal-up.active,
.reveal-down.active {
    opacity: 1;
    transform: translateY(0);
}


/* =========================
   CONTACTO – TÍTULO CENTRADO
========================= */

#contact h2 {
    text-align: center;
    margin-bottom: 30px;
}



/* =========================
   CONTACTO – LAYOUT PREMIUM
========================= */

.contact-section {
    padding: 100px 8%;
    background-color: #f2f2f2;
}



/* Imagen  deider */
.contact-image {  
    overflow: hidden;
    border-radius: 20px;
    margin-left: 10px;
   /*  margin-top: 80px;
    align-items: center; */
}

.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: 0 25px 60px rgba(0,0,0,0.12);
}

/* Formulario */
.contact-form-wrapper h2 {
    text-align: center;
    margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }   
}







/* =========================
   CONTACTO – ESTRUCTURA NUEVA
========================= */

.contact-section {
    padding: 100px 8%;
}

.contact-section h2 {
    text-align: center;
    margin-bottom: 50px;
}

/* Layout principal */
.contact-layout {
    max-width: 1200px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* Columnas */
.contact-col {
    display: flex;
    justify-content: center;
}

/* Imagen */
.image-col img {
    width: 100%;
    max-width: 520px;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.12);
}

/* Formulario */
.form-col form {
    width: 100%;
    max-width: 520px;
}

/* Responsive */
@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .image-col {
        order: -1; /* imagen arriba en mobile */
    }
}

/* ***************************************** */








/* WHATSAPP */
/* .whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25d366;
    color: white;
    padding: 15px;
    border-radius: 50%;
} */

/* FOOTER */
footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 25px;
}

footer li {
    display: flex;
    align-items: center;
    gap: 8px; /* espacio entre icono y texto */
    margin-right: 15px;
}



.newsletter-form {
    display: flex;
    align-items: center; /* asegura alineación vertical */
    gap: 8px;
}

.newsletter-form input,
.newsletter-form button {
    height: 42px; /* misma altura para ambos */
    box-sizing: border-box;
}

/* INPUT */
.newsletter-form input {
    flex: 1;
    padding: 0 14px;
    border-radius: 6px;
    border: none;
    outline: none;
    font-size: 14px;
    margin-top: 16px;
}

/* BOTÓN */
.newsletter-form button {
    width: 48px; /* ancho fijo para mantener proporción */
    border-radius: 6px;
    border: none;
    background: #ff2c2c;
    cursor: pointer;
    transition: all 0.3s ease;

    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-form button i {
    color: white;
    font-size: 14px;
}

.newsletter-form button:hover {
    background: #e60000;
    transform: translateY(-2px);
}

/* RESPONSIVE */

.menu-toggle {
    display: none; /* OCULTO EN DESKTOP */
}


@media (max-width: 768px) {

    .menu-toggle {
        display: block;
        font-size: 1.8rem;
        cursor: pointer;
    }

    .nav {
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        background: white;
        display: none;
        flex-direction: column;
        box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    }

    .nav ul {
        flex-direction: column;
        padding: 20px;
    }

    .nav ul li {
        margin: 15px 0;
        text-align: center;
    }

    /* ESTA CLASE ES CLAVE */
    .nav.active {
        display: flex;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        order: -1; /* imagen arriba, texto abajo */
    }
}


/* ===== NAVBAR LINK BASE ===== */
.nav ul li a {
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

/* Subrayado animado */
.nav ul li a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 0;
    height: 2px;
    background-color: currentColor; /* usa el color corporativo actual */
    transition: all 0.3s ease-in-out;
    transform: translateX(-50%);
}

/* Hover */
.nav ul li a:hover::after {
    width: 100%;
}


/* Estado activo */
.nav ul li a.active::after {
    width: 100%;
}

.nav ul li a:active {
    transform: scale(0.97);
}


/* EFECTO SCROLL */
html {
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 90px; /* ajusta al alto de tu header */
}

/* boton de cambio de idioma */
.lang-switch button {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--light);
    transition: opacity 0.3s ease;
}

.lang-switch button:hover {
    opacity: 0.7;
}

.lang-switch img {
    width: 25px;
    height: auto;

    background: #ffffff;
    padding: 2px;
    border-radius: 3px;

   border: none;

box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.45);
}
/* ********************* */


/* =========================
   HERO SLIDER
========================= */

.hero-slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;

    position: absolute;
    inset: 0;
    overflow: hidden;
}

.slide::after {
    content: "";
    position: absolute;
    inset: 0;

    background-image: inherit;
    background-size: cover;
    background-position: center;

    transform: scale(1);
    transition: transform 10s linear;

    z-index: 0;
}

.slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.55),
        rgba(0, 0, 0, 0.15)
    );

      z-index: 1;
}



.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide.active::after {
    transform: scale(1.06);
}

@media (prefers-reduced-motion: reduce) {
    .slide::after {
        transition: none;
        transform: none;
    }
}



.slide-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    color: white;
    padding: 0 8%;
    top: 50%;
    transform: translateY(-50%);
}

.slide-content h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 15px;
}

.slide-content p {
    font-size: 1.1rem;
    margin-bottom: 25px;
}

/* =========================
   DOTS
========================= */

.slider-dots {
    position: absolute;
    bottom: 30px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 5;
}

.slider-dots span {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.slider-dots span.active {
    background: white;
}

/* =========================
   ARROWS
========================= */

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    font-size: 28px;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 5;
    transition: background 0.3s ease;
}

.slider-arrow:hover {
    background: rgba(255,255,255,0.3);
}

.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {
    .slide-content {
        text-align: center;
    }
}


/* CTA principal del banner */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 14px 34px;
    margin-top: 25px;

    background: var(--primary); /* color corporativo */
    color: #ffffff; 

    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;

    border-radius: 50px;
    text-decoration: none;
    border: none;

    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);

    transition: 
        background-color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.btn:hover {
    background: var(--primary-color-dark, var(--secondary)); /* fallback */
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);   
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
    .btn {
        padding: 12px 28px;
        font-size: 0.9rem;
    }
}


/* =========================
   FOOTER CORPORATIVO
========================= */

.footer {
    background: linear-gradient(135deg, #0a0f2c, #0f1a3a);
    color: #cfd8ff;
    padding: 80px 8% 30px;
    font-size: 15px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
}

/* Columnas */
.footer-col h3 {
    color: #ffffff;
    font-size: 22px;
    margin-bottom: 20px;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 17px;
    margin-bottom: 18px;
}

.footer-col p {
    line-height: 1.7;
    color: #bfc8ff;
}

/* Contacto */
.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 12px;
}

/* Enlaces */
.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cfd8ff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #6ea8ff;
}

/* Redes sociales */
.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.97);
    border-radius: 50%; 
    text-decoration: none;
    font-size: 18px;

    transition: transform 0.3s, background 0.3s;
}

.footer-social a:hover {
    background: #e8e8e8;
    transform: translateY(-4px);
}

/* Línea inferior */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 60px;
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #aab4ff;
}

/* Responsive */
@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }
}



/* =========================
   FOOTER – AJUSTE DE ALINEACIÓN
========================= */

/* Marca centrada */
.footer-brand {
    text-align: center;
}

/* Resto de columnas a la izquierda */
.footer-col:not(.footer-brand) {
    text-align: left;
}

/* En mobile todo centrado (mejor lectura) */
@media (max-width: 900px) {
    .footer-col {
        text-align: center;
    }
}


/* ===== WhatsApp Edge Button ===== */
/* ===== WhatsApp Deslizante Profesional ===== */

.whatsapp-float {
    position: fixed;
    right: 0px;
    bottom: 90px;
    z-index: 9999;
    text-decoration: none;

    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    pointer-events: none;
}

.whatsapp-float.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Cuando se activa */
.whatsapp-float.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.whatsapp-content {
    display: flex;
    align-items: center;
    background: #25D366;
    border-radius: 30px 0 0 30px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* TEXTO (oculto inicialmente) */
.whatsapp-text {
    color: white;
    padding: 0 15px;
    white-space: nowrap;
    font-size: 14px;
    max-width: 0;
    opacity: 0;
    transition: all 0.3s ease;
}

/* ICONO (siempre visible) */
.whatsapp-icon {
    background: #25D366;
    color: white;
    padding: 14px 16px;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* HOVER SOLO SOBRE EL BOTÓN */
.whatsapp-float:hover .whatsapp-text {
    max-width: 250px;
    opacity: 1;
}

/* Ajuste visual cuando se expande */
.whatsapp-float:hover .whatsapp-content {
    border-radius: 30px 0 0 30px;
}


/* @media (max-width: 768px) {
    .whatsapp-text {
        max-width: 250px;
        opacity: 1;
    }
} */

/*
@media (max-width: 768px) {

    .whatsapp-float {
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
    }

    .whatsapp-text {
        transform: translateX(0) !important;
        opacity: 1 !important;
    }
}*/

@media (max-width: 768px) {

    .whatsapp-float {
        width: 60px !important;
        padding: 0 !important;
    }

    .whatsapp-text {
        display: none !important;
    }

}



/* Micro animación pulse */
@keyframes whatsappPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
    100% {
        transform: scale(1);
    }
}

.whatsapp-float.pulse .whatsapp-icon {
    animation: whatsappPulse 0.8s ease;
}





/* paginas de servicios */

/* =========================
   SERVICE HERO INTERNO
========================= */

.service-hero {
    position: relative;
    height: 70vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.service-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.65),
        rgba(0, 0, 0, 0.35)
    );
}

.service-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    color: #ffffff;
}

.service-hero-content h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
}

.service-hero-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
}

/* =========================
   SERVICE SECTIONS
========================= */

.service-section h2 {
    text-align: center;
    margin-bottom: 25px;
}

.service-section p {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.7;
    color: var(--gray);
}

.service-cards {
    margin-top: 50px;
}

/* CTA interno */
.service-cta {
    text-align: center;
    color: #ffffff;
}

.service-cta p {
    max-width: 700px;
    margin: 20px auto;
    color: #ffffff;
}

/* RESPONSIVE */
@media (max-width: 768px) {

    .service-hero {
        height: 60vh;
        text-align: center;
        justify-content: center;
    }

    .service-hero-content {
        padding: 0 20px;
    }

    .service-hero-overlay {
        background: rgba(0, 0, 0, 0.65);
    }
}


/* =========================
   HERO SERVICIO INTERNO
========================= */

/* .service-hero {
    background: linear-gradient(
            rgba(0, 0, 0, 0.65),
            rgba(0, 0, 0, 0.65)
        ),
        url('../img/banner_servicios/consulting-banner.png');
    background-size: cover;
    background-position: center;
    height: 80vh;

    display: flex;
    align-items: center;

    color: #ffffff;
}
 */
/* .service-hero-content {
    max-width: 700px;
    margin-left: 60px; 
}
 */


 .service-hero {
    background: linear-gradient(
            rgba(0, 0, 0, 0.65),
            rgba(0, 0, 0, 0.65)
        );
    background-size: cover;
    background-position: center;
    height: 80vh;

    display: flex;
    align-items: center;

    color: #ffffff;
}



.hero-consulting {
        background-image:  linear-gradient(to right,
            rgba(0, 0, 0, 0.75) 0%,
            rgba(0, 0, 0, 0.65) 35%,
            rgba(0, 0, 0, 0.35) 65%,
            rgba(0, 0, 0, 0.15) 100%
        ),
        url('../img/banner_servicios/consulting-banner.png');
}

.hero-cyber {
        background-image:  linear-gradient(to right,
            rgba(0, 0, 0, 0.75) 0%,
            rgba(0, 0, 0, 0.65) 35%,
            rgba(0, 0, 0, 0.35) 65%,
            rgba(0, 0, 0, 0.15) 100%
        ),
        url('../img/banner_servicios/ciberseguridad-banner.png');
}

.hero-cloud {
        background-image:  linear-gradient(to right,
            rgba(0, 0, 0, 0.75) 0%,
            rgba(0, 0, 0, 0.65) 35%,
            rgba(0, 0, 0, 0.35) 65%,
            rgba(0, 0, 0, 0.15) 100%
        ),
        url('../img/banner_servicios/cloud-services-banner.png');
}

.hero-infraestructura {
        background-image:  linear-gradient(to right,
            rgba(0, 0, 0, 0.75) 0%,
            rgba(0, 0, 0, 0.65) 35%,
            rgba(0, 0, 0, 0.35) 65%,
            rgba(0, 0, 0, 0.15) 100%
        ),
        url('../img/banner_servicios/infraestructura-banner.png');
}

.hero-fabrica-sof {
       /*background-image: linear-gradient(
            rgba(20, 2, 2, 0.65),
            rgba(0, 0, 0, 0.65)
        ),
        url('../img/banner_servicios/fabrica-software-banner.png');*/

        background-image: 
        linear-gradient(to right,
            rgba(0, 0, 0, 0.75) 0%,
            rgba(0, 0, 0, 0.65) 35%,
            rgba(0, 0, 0, 0.35) 65%,
            rgba(0, 0, 0, 0.15) 100%
        ),
        url('../img/banner_servicios/fabrica-software-banner.png');


}







 .service-hero-content {
    max-width: 700px;
    padding-left: 10%;
}


.service-hero-content h1 {
    font-size: 42px;
    margin-bottom: 20px;
}

.service-hero-content p {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.95;
}



@media (max-width: 768px) {
    .service-hero {
        text-align: center;
        justify-content: center;
    }

    .service-hero-content {
        margin-left: 0;
        padding: 0 20px;
    }
}


/* =========================
   SERVICE CONTENT SECTION
========================= */

.service-section {
    padding: 100px 0;
}

.service-section h2 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 25px;
    font-weight: 700;
}

.service-section .section-intro {
    max-width: 850px;
    margin: 0 auto 60px auto;
    text-align: center;
    font-size: 18px;
    line-height: 1.8;
    color: #555;
}

/* Cards */

.service-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.service-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;

    min-height: 260px; /* fuerza uniformidad */
}

.service-card h4 {
    font-size: 20px;
    margin-bottom: 18px;
    font-weight: 600;
    text-align: left;
    line-height: 1.4;
}

.service-card p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    text-align: left;
}


.service-card h4::after {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    background: #ff6b00; /* tu color corporativo */
    margin-top: 10px;
}

@media (max-width: 992px) {
    .service-cards {
        grid-template-columns: 1fr;
    }
}


.section.bg-primary {
    background: #ff6b00; /* tu naranja */
    padding: 100px 0;
    text-align: center;
}

.section.bg-primary h2 {
    color: #ffffff;
    margin-bottom: 35px;
}

.section.bg-primary .btn {
    background: #ffffff;
    color: #ff6b00;
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.section.bg-primary .btn:hover {
    background: #111;
    color: #ffffff;
}



/*

.section.bg-primary {
    background: #0f1c2e; 
    padding: 100px 0;
    text-align: center;
}

.section.bg-primary h2 {
    color: #ffffff;
}

.section.bg-primary .btn {
    background: #ff6b00;
    color: #ffffff;
}*/



.service-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-link:hover .service {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.08);
}



/* CONTACTO form */
/* ==============================
   CONTACT BACKGROUND SECTION
============================== */

.contact-section-bg {
    background: 
        linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
        url('../img/contacto.jpg') center center / cover no-repeat;

    min-height: 100vh;
    display: flex;
    align-items: center;

}
/*
.contact-overlay {
    background: rgba(0,0,0,0.45);
    padding: 80px 20px;
    width: 100%;
    height: 100%;    
}*/


.contact-card {
     max-width: 1100px;
    margin: auto;
    padding: 60px;

    background: rgba(255, 255, 255, 0.58); /* blanco translúcido */
    backdrop-filter: blur(12px);          /* efecto vidrio */
    -webkit-backdrop-filter: blur(12px);  /* soporte Safari */

    border-radius: 20px;                 /* opcional pero recomendado */
    box-shadow: 0 30px 80px rgba(0,0,0,0.25);
}

/* HEADER */

.contact-header {
    margin-bottom: 40px;
}

.contact-title {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #3e3e3e;
}

.contact-desc {
    font-size: 15px;
    color: #555;
    margin-bottom: 15px;
}

.contact-highlight {
    font-weight: 600;
    margin-bottom: 15px;
}

.contact-privacy {
    font-size: 13px;
    color: #777;
}

/* INNER LAYOUT */

.contact-inner-layout {
    display: flex;
     justify-content: flex-start; /* lo pega a la izquierda */
     align-items: center;
    min-height: 100vh;
    padding: 100px 8%;
   
}

.contact-image-box img {
    margin-top: 90px;
    width: 300px;
    border-radius: 5px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);

    /*
     --primary: #f76e10;
    --secondary: #f3971c;
    --dark: #35323d;
    --light: #ffffff;
    --gray: #737284;

    --light2: #ededed;
    */
}

/* FORM */

.contact-form-box {
    flex: 1;
     max-width: 600px;
}

.contact-form-box input,
.contact-form-box select,
.contact-form-box textarea {
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 18px;
    border-radius: 10px;
    border: 1px solid #e1e5eb;
    background: #f9fafc;
    font-size: 14px;
    transition: all 0.3s ease;
}

.contact-form-box textarea {
    min-height: 110px;
    resize: none;
}

.contact-form-box input:focus,
.contact-form-box select:focus,
.contact-form-box textarea:focus {
    outline: none;
    border-color: #ff6b00;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(255,107,0,0.15);
}

.form-row {
    display: flex;
    gap: 20px;
}

.btn-contact {
    width: 100%;
    padding: 15px;
    border-radius: 50px;
    font-weight: 600;
    margin-top: 10px;
}

/* RESPONSIVE */

@media (max-width: 992px) {

    .contact-inner-layout {
        flex-direction: column;
    }

    .contact-image-box img {
        width: 150px;
    }

    .contact-card {
        padding: 35px;
    }

    .form-row {
        flex-direction: column;
    }
}


/* =========================
   CONSENTIMIENTO CONTACTO
========================= */

/* Fix específico para checkboxes */

/* Override específico para checkboxes */
.contact-form-box input[type="checkbox"] {
    width: auto !important;
    padding: 0 !important;
    margin: 3px 6px 0 0 !important;
}


.contact-consent {
    margin-top: 10px;
    margin-bottom: 20px;
}

.consent-text {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.consent-option {
    display: flex;
    align-items: flex-start;
    gap: 8px;              /* controla espacio exacto */
    font-size: 14px;
    color: #444;
    margin-bottom: 8px;
    cursor: pointer;
}

.consent-option input {
    margin-top: 3px;
    accent-color: var(--primary); /* usa tu color corporativo */
    cursor: pointer;
}

.consent-option span {
    line-height: 1.4;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* PROPUESTA DE VALOR */

.valor-section{
    background:#f4f4f4;
    padding:100px 0;
    font-family: 'Poppins', sans-serif;
}

.valor-container{
    width:1200px;
    margin:auto;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:40px;
}

/* TITULO */

.valor-title{
    font-size:60px;
    font-weight:700;
    margin-bottom:40px;
    color:#222;
}

/* LISTA */

.valor-item{
    display:flex;
    align-items:center;
    gap:20px;
    margin-bottom:25px;
}

.valor-icon{
    width:60px;
    height:60px;
    background:#f2662f;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
}

.valor-icon img{
    width:30px;
}

.valor-item p{
    font-size:18px;
    color:#333;
    max-width:320px;
}

/* TARJETA CENTRAL */

.valor-center{
    position:relative;
}

.valor-card{
    background:#f2662f;
    color:white;
    padding:50px;
    border-radius:25px;
    width:320px;
    text-align:center;
}

.valor-card h3{
    font-size:24px;
    margin-bottom:20px;
}

.valor-card p{
    font-size:18px;
    line-height:1.6;
}

/* FLECHA */

.valor-card::before{
    content:"";
    position:absolute;
    left:-20px;
    top:120px;
    border-top:20px solid transparent;
    border-bottom:20px solid transparent;
    border-right:20px solid #f2662f;
}

/* IMAGEN */

.valor-right img{
    width:320px;
}

/* FIN PROPUESTA DE VALOR */


/* ALIADOS COMERCIALES */
.partners-section{
    width:100%;
    padding:0;    
}

.partners-container{
    display:grid;
    grid-template-columns: 40% 60%;
    min-height:500px;
}

/* Lado izquierdo */

.partners-left{
    background: linear-gradient(135deg,#ff6a00,#8c1c00,#000);
    display:flex;
    align-items:center;
    justify-content:center;
    padding:80px;
}

.partners-left h2{
    color:white;
    font-size:64px;
    line-height:1.1;
    font-weight:700;
}

/* Lado derecho */

.partners-right{
    background:#f5f5f5;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:60px;
}

/* Grid logos */

.partners-grid{
    display:grid;
    grid-template-columns: repeat(4,1fr);
    gap:40px;
    align-items:center;
    justify-items:center;
}

/* Logos */

.partners-grid img{
    max-width:120px;
    filter: grayscale(100%);
    opacity:0.7;
    transition:all 0.4s ease;
}

/* Hover profesional */

.partners-grid img:hover{
    filter: grayscale(0%);
    opacity:1;
    transform:scale(1.12);
}
/*
.partners-grid img:hover{
    filter: grayscale(0%);
    opacity:1;
    transform:scale(1.12);
    box-shadow:0 0 12px rgba(255,106,0,0.4);
}
*/

@media(max-width:900px){

    .partners-container{
        grid-template-columns:1fr;
    }

    .partners-left{
        text-align:center;
    }

    .partners-left h2{
        font-size:42px;
    }

    .partners-grid{
        grid-template-columns: repeat(2,1fr);
        gap:30px;
    }

}

/* FIN ALIADOS COMERCIALES */


/* CERTIFICACIONES */
.certifications-section{
    background:#ffffff;
    padding:100px 0;
    position:relative;
}

/* barra naranja lateral */

.certifications-section::after{
    /*content:"";
    position:absolute;
    right:0;
    top:0;
    width:20px;
    height:100%;
    background:#f28c28;*/
   
}

/* contenedor */

.certifications-container{
    max-width:1200px;
    margin:auto;
    padding:0 40px;
}

/* titulo */

.certifications-header h2{
    font-size:64px;
    font-weight:700;
    color:#222;
    margin-bottom:60px;
}

/* grid logos */

.certifications-grid{
    display:grid;
    grid-template-columns: repeat(6,1fr);
    gap:40px;
    align-items:center;
}

/* logos */

.certifications-grid img{
    width:100%;
    max-height:80px;
    object-fit:contain;
    filter: grayscale(100%);
    opacity:0.8;
    transition:all .35s ease;
}

/* hover profesional */

.certifications-grid img:hover{
    filter: grayscale(0%);
    opacity:1;
    transform:scale(1.08);
}

@media(max-width:1100px){

.certifications-grid{
    grid-template-columns: repeat(4,1fr);
}

}

@media(max-width:700px){

.certifications-header h2{
    font-size:42px;
}

.certifications-grid{
    grid-template-columns: repeat(2,1fr);
}

.certifications-section::after{
    width:60px;
}

}

/* FIN CERTIFICACIONES */

/* nueva seccion certificaciones */

.certificaciones {
    text-align: center;
    padding: 60px 0;
    overflow: hidden;
}

.cert-slider {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.cert-track {
    display: flex;
    width: max-content;
    animation: scroll 25s linear infinite;
}

.cert-track img {
    height: 100px;
    margin: 0 40px;
    opacity: 0.8;
    transition: 0.3s;
}

.cert-track img:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Animación */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pausa el carrusel al pasar el mouse */
.cert-slider:hover .cert-track {
    animation-play-state: paused;
}

.cert-slider::before,
.cert-slider::after {
    content: "";
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}

.cert-slider::before {
    left: 0;
    background: linear-gradient(to right, #fff, transparent);
}

.cert-slider::after {
    right: 0;
    background: linear-gradient(to left, #fff, transparent);
}

/* fin nueva seccion certificaciones */




/* boton envia arriba */

#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    
    background: var(--primary); /* puedes usar tu color corporativo */
    color: #fff;
    border: none;
    border-radius: 50%;
    
    width: 50px;
    height: 50px;
    font-size: 22px;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#backToTop:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

/* cuando aparece */
#backToTop.show {
    opacity: 1;
    visibility: visible;
}

#backToTop {
    background: rgba(244, 141, 25, 0.6); /* transparencia */
    backdrop-filter: blur(5px); /* efecto glass (moderno) */
    box-shadow: none;
}
/* ******************** */