/*==================================================
PROINTSEG
Diseño Web Profesional
Versión 2026 - CSS Depurado & Fully Responsive
==================================================*/

/*==================================================
GOOGLE FONT & VARIABLES
==================================================*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #0A66FF;
    --primary-dark: #0049C7;
    --secondary: #111827;
    --white: #FFFFFF;
    --light: #F5F7FA;
    --gray: #6B7280;
    --dark: #1A1A1A;
    --border: #E5E7EB;
    --shadow: 0 15px 35px rgba(0, 0, 0, .08);
    --shadow-hover: 0 20px 45px rgba(0, 0, 0, .15);
    --radius: 18px;
    --transition: .35s ease;
}

/*==================================================
RESET Y REGLAS GLOBALES
==================================================*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--white);
    color: var(--dark);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-tap-highlight-color: transparent;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    border: none;
    cursor: pointer;
    font-family: inherit;
}

input,
textarea {
    font-family: inherit;
}

::selection {
    background: var(--primary);
    color: var(--white);
}

a:focus-visible,
button:focus-visible,
input:focus,
textarea:focus {
    outline: 3px solid rgba(10, 102, 255, .35);
    outline-offset: 2px;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f5f5f5;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 20px;
}

/*==================================================
CONTENEDOR & SECCIONES
==================================================*/
.container {
    width: min(90%, 1320px);
    margin: auto;
}

section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title span {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 3px;
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 18px;
    color: var(--dark);
    position: relative;
}

.section-title h2::after {
    content: "";
    width: 80px;
    height: 4px;
    background: var(--primary);
    display: block;
    margin: 16px auto 0;
    border-radius: 50px;
}

.section-title p {
    max-width: 760px;
    margin: auto;
    color: var(--gray);
    font-size: 18px;
    line-height: 1.7;
}

/*==================================================
BOTONES
==================================================*/
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 36px;
    border-radius: 50px;
    font-size: 17px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.btn::before {
    content: "";
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, .25);
    transition: .6s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-blue {
    background: var(--primary);
    color: var(--white);
}

.btn-blue:hover {
    background: var(--primary-dark);
}

.btn-white {
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-white:hover {
    background: var(--white);
    color: var(--dark);
}

/*==================================================
HEADER & NAVEGACIÓN
==================================================*/
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: .4s;
    background: rgba(15, 23, 42, .65);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

header.scrolled {
    background: var(--secondary);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .18);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 90px;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 60px;
}

.logo img {
    width: 110px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.55));
    transition: transform .4s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

nav {
    display: flex;
    align-items: center;
    gap: 35px;
}

nav a {
    position: relative;
    color: var(--white);
    font-size: 17px;
    font-weight: 600;
    transition: .35s;
}

nav a:hover {
    color: #4EA1FF;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 3px;
    border-radius: 20px;
    background: var(--primary);
    transition: .35s;
}

nav a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    color: var(--white);
    font-size: 28px;
    cursor: pointer;
    background: transparent;
    padding: 5px;
}

/*==================================================
HERO SECTION
==================================================*/
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    animation: sliderHero 20s infinite;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: var(--white);
    max-width: 1000px;
}

.hero-content h1 {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 25px;
    text-shadow: 0 8px 20px rgba(0, 0, 0, .35);
}

.hero-content p {
    font-size: 22px;
    line-height: 1.6;
    max-width: 850px;
    margin: auto;
    color: #ECECEC;
}

.hero-buttons {
    margin-top: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-buttons .btn-blue {
    box-shadow: 0 12px 35px rgba(10, 102, 255, .35);
}

.hero-buttons .btn-white {
    border: 2px solid rgba(255, 255, 255, .85);
    backdrop-filter: blur(6px);
}

.hero-buttons .btn-white:hover {
    background: var(--white);
    color: var(--secondary);
}

.scroll-down {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: scrollMove 2s infinite;
}

.scroll-down i {
    color: var(--white);
    font-size: 28px;
}

/*==================================================
SERVICIOS
==================================================*/
.services {
    background: var(--light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: .4s;
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    transition: 1s;
}

.service-card:hover img {
    transform: scale(1.08);
}

.service-content {
    padding: 30px 25px;
    text-align: center;
}

.service-icon {
    width: 65px;
    height: 65px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -60px auto 20px;
    position: relative;
    z-index: 5;
    font-size: 26px;
    border: 4px solid var(--white);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .12);
}

.service-content h3 {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 700;
    color: var(--secondary);
}

.service-content p {
    color: var(--gray);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 25px;
}

.service-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 26px;
    background: var(--primary);
    color: var(--white);
    border-radius: 40px;
    font-weight: 600;
    transition: .35s;
}

.service-btn:hover {
    background: var(--primary-dark);
}

/*==================================================
CLIENTES & ESTADÍSTICAS
==================================================*/
.clients {
    background: #f7f8fc;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.client-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 140px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .05);
    filter: grayscale(100%);
    transition: .4s;
}

.client-card img {
    max-height: 70px;
    width: auto;
    object-fit: contain;
    transition: .4s;
}

.client-card:hover {
    filter: none;
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.clients-stats {
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .08);
    overflow: hidden;
}

.stat-box {
    text-align: center;
    padding: 40px 15px;
    border-right: 1px solid var(--border);
}

.stat-box:last-child {
    border-right: none;
}

.stat-box i {
    font-size: 38px;
    color: var(--primary);
    margin-bottom: 15px;
}

.stat-box h3 {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 700;
}

.stat-box p {
    color: var(--gray);
    font-size: 16px;
}

/*==================================================
NOSOTROS (ABOUT)
==================================================*/
.about {
    background: var(--white);
}

.about-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

.about-image {
    overflow: hidden;
    border-radius: 20px;
}

.about-image img {
    width: 100%;
    max-height: 550px;
    object-fit: cover;
    box-shadow: 0 20px 45px rgba(0, 0, 0, .12);
}

.about-content span {
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 2px;
}

.about-content h2 {
    margin: 15px 0 20px;
    font-size: 42px;
    line-height: 1.2;
    color: var(--secondary);
}

.about-content p {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 25px;
}

.about-list {
    margin-bottom: 30px;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-weight: 600;
    color: var(--secondary);
}

.about-list i {
    color: var(--primary);
    font-size: 18px;
}

.about-bottom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.about-card {
    background: #f7f9fc;
    border-radius: 20px;
    padding: 35px 25px;
    transition: .35s;
}

.about-card:hover {
    transform: translateY(-6px);
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.about-card h3 {
    margin-bottom: 15px;
    font-size: 22px;
    color: var(--secondary);
}

.about-card p {
    color: var(--gray);
    line-height: 1.7;
    font-size: 15px;
}

/*==================================================
TRABAJA CON NOSOTROS & CONTACTO
==================================================*/
.work {
    background: #f8f9fc;
}

.work-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.work-info h2 {
    font-size: 40px;
    color: var(--secondary);
    margin-bottom: 20px;
}

.work-info p {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 20px;
}

.work-info ul {
    margin: 25px 0;
}

.work-info li {
    margin-bottom: 14px;
    font-size: 16px;
    color: var(--dark);
}

.work-info li i {
    color: var(--primary);
    margin-right: 10px;
}

.work-image img {
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .12);
}

.work-form,
.contact-form {
    background: var(--white);
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .06);
}

.work-form input,
.work-form textarea,
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 15px;
    transition: .3s;
}

.work-form textarea,
.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

.work-form input:focus,
.work-form textarea:focus,
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.work-form button {
    width: 100%;
}

.contact-container {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 50px;
}

.contact-info {
    background: var(--secondary);
    color: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
}

.contact-info h2 {
    margin-bottom: 18px;
    font-size: 32px;
}

.contact-info p {
    line-height: 1.7;
    margin-bottom: 30px;
    color: #d7d7d7;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-item i {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
}

.contact-item p {
    color: #d7d7d7;
    font-size: 14px;
    margin-bottom: 0;
}

.contact-form {
    background: #f8f9fc;
    padding: 40px;
}

.contact-form form {
    display: grid;
    gap: 15px;
}

/*==================================================
FOOTER COMPLETO
==================================================*/
.footer {
    width: 100%;
    background: linear-gradient(135deg, #071A35 0%, #0C2D5A 100%);
    color: var(--white);
    padding: 70px 0 30px;
}

.footer-container {
    width: 90%;
    max-width: 1320px;
    margin: auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr 1.3fr;
    gap: 45px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.footer-logo {
    width: 160px;
    margin-bottom: 15px;
}

.footer h3 {
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
}

.footer h3::after {
    content: "";
    width: 40px;
    height: 3px;
    background: var(--primary);
    position: absolute;
    left: 0;
    bottom: -8px;
    border-radius: 5px;
}

.footer-about p {
    color: #d7d7d7;
    line-height: 1.7;
    font-size: 14px;
}

.footer-links li,
.footer-services li {
    margin: 12px 0;
}

.footer-links a,
.footer-services li {
    color: #d7d7d7;
    transition: .3s;
    font-size: 14px;
}

.footer-links a:hover,
.footer-services li:hover {
    color: var(--primary);
    padding-left: 6px;
}

.footer-cta {
    width: 90%;
    max-width: 1320px;
    margin: 40px auto;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 18px;
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.cta-text h3 {
    font-size: 26px;
    margin-bottom: 6px;
}

.cta-text p {
    color: #d7d7d7;
    font-size: 15px;
}

.cta-form {
    display: flex;
    gap: 15px;
    align-items: center;
}

.cta-form input {
    width: 240px;
    height: 48px;
    border: none;
    border-radius: 10px;
    padding: 0 18px;
    font-size: 14px;
}

.cta-form button {
    height: 48px;
    padding: 0 30px;
    border: none;
    border-radius: 10px;
    background: var(--primary);
    color: var(--white);
    transition: .3s;
    font-weight: 600;
}

.cta-form button:hover {
    background: var(--primary-dark);
}

.footer-social {
    text-align: center;
    padding: 30px 0 20px;
}

.footer-social h4 {
    color: #d8d8d8;
    margin-bottom: 20px;
    letter-spacing: 1.5px;
    font-size: 15px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icons a {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, .08);
    color: var(--white);
    font-size: 20px;
    transition: .3s;
}

.social-icons a:hover {
    background: var(--primary);
    transform: translateY(-4px);
}

.footer-copy {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.footer-copy p {
    color: #c9c9c9;
    font-size: 13px;
}

/*==================================================
ELEMENTOS FLOTANTES
==================================================*/
.whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    font-size: 28px;
    z-index: 999;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .25);
    transition: .35s;
}

.whatsapp:hover {
    transform: scale(1.1);
}

#top {
    position: fixed;
    bottom: 95px;
    right: 28px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: .35s;
    z-index: 998;
}

#top.show {
    opacity: 1;
    visibility: visible;
}

/*==================================================
ANIMACIONES KEYFRAMES
==================================================*/
@keyframes scrollMove {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 10px); }
}

@keyframes sliderHero {
    0%, 20% { background-image: url("../img/hero/hero1.jpg"); }
    20.01%, 40% { background-image: url("../img/hero/hero2.jpg"); }
    40.01%, 60% { background-image: url("../img/hero/hero3.jpg"); }
    60.01%, 80% { background-image: url("../img/hero/hero4.jpg"); }
    80.01%, 100% { background-image: url("../img/hero/hero5.jpg"); }
}

/*==================================================
MEDIA QUERIES (ADAPTABILIDAD RESPONSIVA)
==================================================*/

/* Laptops Plegables / Tablets en Horizontal (max 1100px) */
@media (max-width: 1100px) {
    .section-title h2 { font-size: 40px; }
    .hero-content h1 { font-size: 52px; }
    .hero-content p { font-size: 19px; }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer-cta {
        flex-direction: column;
        text-align: center;
    }

    .cta-form {
        width: 100%;
        justify-content: center;
    }
}

/* Tablets en Vertical e iPads (max 992px) */
@media (max-width: 992px) {
    section { padding: 80px 0; }
    
    .header-container { min-height: 80px; }

    .menu-toggle { display: block; }

    nav {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 80px);
        background: var(--secondary);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 0;
        padding: 30px 25px;
        transition: right .4s ease-in-out;
        box-shadow: -10px 0 30px rgba(0, 0, 0, .3);
        overflow-y: auto;
    }

    nav.active { right: 0; }

    nav a {
        width: 100%;
        padding: 16px 0;
        font-size: 18px;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
    }

    nav a::after { display: none; }

    .about-top,
    .work-container,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image img { height: 400px; }

    .clients-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-box {
        padding: 30px 15px;
    }
    
    .stat-box:nth-child(2) {
        border-right: none;
    }

    .stat-box:nth-child(1),
    .stat-box:nth-child(2) {
        border-bottom: 1px solid var(--border);
    }

    .about-bottom {
        grid-template-columns: 1fr;
    }
}

/* Celulares Grandes / Phablets (max 768px) */
@media (max-width: 768px) {
    .section-title h2 { font-size: 32px; }
    .section-title p { font-size: 16px; }

    .hero-content h1 { font-size: 38px; }
    .hero-content p { font-size: 16px; }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .cta-form {
        flex-direction: column;
        width: 100%;
    }

    .cta-form input,
    .cta-form button {
        width: 100%;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .contact-form button {
        width: 100%;
    }
}

/* Celulares Estándar (max 576px) */
@media (max-width: 576px) {
    section { padding: 65px 0; }

    .header-container { min-height: 75px; }
    .logo { width: 130px; }
    .logo img { width: 95px; }

    nav {
        top: 75px;
        width: 100%;
        height: calc(100vh - 75px);
    }

    .hero-content h1 { font-size: 30px; }
    .hero-content p { font-size: 15px; }

    .clients-stats {
        grid-template-columns: 1fr;
    }

    .stat-box {
        border-right: none !important;
        border-bottom: 1px solid var(--border);
    }

    .stat-box:last-child {
        border-bottom: none;
    }

    .work-form,
    .contact-form,
    .contact-info {
        padding: 25px 20px;
    }

    .footer-cta {
        padding: 25px 20px;
    }

    .whatsapp {
        width: 52px;
        height: 52px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }

    #top {
        width: 42px;
        height: 42px;
        bottom: 80px;
        right: 25px;
    }
}

/* Celulares Pequeños (max 380px) */
@media (max-width: 380px) {
    .hero-content h1 { font-size: 26px; }
    .section-title h2 { font-size: 26px; }
    .btn { padding: 14px 28px; font-size: 15px; }
}