:root {
    --primary: #0b4f94;
    --primary-dark: #083866;
    --bg: #f4f7fb;
    --text: #243447;
    --shadow: 0 12px 35px rgba(0, 0, 0, .08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
}

/*====================================
    CHAT FAQ
====================================*/

/* Botón flotante */
#chat-btn{
    position:fixed;
    bottom:20px;
    right:20px;
    width:60px;
    height:60px;
    border-radius:50%;
    background:var(--primary);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    box-shadow:0 10px 25px rgba(0,0,0,.18);
    z-index:9999;
    transition:.3s;
}

#chat-btn:hover{
    background:var(--primary-dark);
    transform:scale(1.05);
}

#chat-box{
    position:fixed;
    bottom:90px;
    right:20px;
    width:340px;
    height:430px;
    background:#fff;
    border-radius:16px;
    box-shadow:0 15px 35px rgba(0,0,0,.18);
    overflow:hidden;
    display:none;
    flex-direction:column;
    z-index:9999;
}

#chat-header{
    background:var(--primary);
    color:#fff;
    padding:14px 16px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-weight:600;
}

#chat-messages{
    flex:1;
    padding:15px;
    overflow-y:auto;
    background:#f8fbff;
}

.faq-btn{
    width:100%;
    padding:14px 16px;
    margin-bottom:10px;
    border:none;
    border-radius:10px;
    background:var(--primary);
    color:#fff;
    font-size:.95rem;
    font-weight:600;
    text-align:left;
    cursor:pointer;
    transition:.25s;
}

.faq-btn:hover{
    background:var(--primary-dark);
}

.faq-answer{
    display:none;
    margin:-4px 0 14px;
    padding:14px 16px;
    background:#fff;
    border-left:4px solid var(--primary);
    border-radius:0 10px 10px 10px;
    color:#555;
    font-size:.92rem;
    line-height:1.6;
    box-shadow:0 3px 12px rgba(0,0,0,.05);
}

/* --- SERVICIOS --- */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: start;
}

.service-card {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .06);
    text-align: center;
    height: 100%;
    transition: transform .3s ease;
    border-top: 5px solid var(--primary);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .1);
}

/* Tarjetas Expertos */

.service-card,
.service-card:link,
.service-card:visited,
.service-card:hover,
.service-card:active {
    color: var(--text);
    text-decoration: none;
}

.service-card p {
    color: #666;
    line-height: 1.7;
    font-size: .97rem;
    margin: 20px 0;
}

.card-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 28px;
    background: var(--primary);
    color: #fff !important;
    border-radius: 30px;
    font-size: .95rem;
    font-weight: 600;
    transition: .3s ease;
    box-shadow: 0 6px 18px rgba(11,79,148,.18);
}

.service-card:hover .card-btn {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.card-btn:hover,
.card-btn:visited,
.card-btn:active {
    color: #fff !important;
}

.icon-wrapper{
    display:flex;
    justify-content:center;
    align-items:center;
    margin-bottom:1.5rem;
}

.icon-wrapper i{
    font-size:3.5rem;
    color:var(--primary);
}

.service-card h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
}

.service-list {
    list-style: none;
    text-align: left;
    padding: 0 5px;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    color: #555;
    font-size: 1rem;
    line-height: 1.4;
}

.service-list li::before {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
}

.container {
    width: min(1180px, 92%);
    margin: auto;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, .08);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: .5px;
    width: 215px;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    color: #4b5563;
    font-weight: 600;
    transition: .3s;
}

nav a:hover {
    color: var(--primary);
}

.btn {
        background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    border-radius: 10px;
    font-weight: 700;
    transition: .30s;
}

.btn:hover {
     background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid #fff;
    box-shadow: none;
}

.hero {
    height: 100vh;
    background: url(../resources/Fondodocumovil.png) center / cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(9, 34, 72, .75), rgba(9, 34, 72, .6));
}

.hero-content {
    position: relative;
    color: #fff;
    max-width: 760px;
}

.hero h1 {
    font-size: clamp(2.6rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 800;
}

.hero p {
    font-size: 1.2rem;
    opacity: .95;
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.section {
    padding: 110px 0;
}

.section h2 {
    text-align: center;
    font-size: 2.3rem;
    color: var(--primary);
    margin-bottom: 55px;
}

.alt {
    background: #eef4fb;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.btn-reject {
    background: #f1f1f1;
    color: #333;
}

.btn-reject:hover {
    background: #ddd;
}

@media (max-width:900px) {

    nav {
        display: none;
    }

    .hero {
        padding-top: 80px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

}

/* FONDOS DE SECCIONES */

#servicios {
    background: #fff;
}

#expertos {
    background: #eef4fb;
}

#proceso {
    background: #f7f9fc;
}

#contacto {
    background: #edf5fd;
}

/*==============================
    ¿POR QUÉ DOCUMÓVIL?
==============================*/

.why-us {
    background: #fff;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 35px;
    margin-top: 60px;
}

.why-card {
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 18px;
    padding: 35px 25px;
    text-align: center;
    transition: .3s;
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 35px rgba(0, 0, 0, .08);
}

.why-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 75px;
    height: 75px;
    margin: 0 auto 25px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 2rem;
}

.why-card h3 {
    margin-bottom: 15px;
    color: var(--primary-dark);
    font-size: 1.25rem;
}

.why-card p {
    color: #666;
    line-height: 1.7;
    font-size: .97rem;
}

/*==============================
    SLIDER EMPRESAS
==============================*/

.companies{
    margin-top:90px;
}

.companies-title{
    text-align:center;
    font-size:1.8rem;
    color:var(--primary);
    margin-bottom:50px;
    font-weight:700;
}

.slider {
    overflow: hidden;
    position: relative;
    margin-top: 30px;
}

.slide-track {
    display: flex;
    width: calc(220px * 16);
    animation: scroll 35s linear infinite;
}

.slide {
    width: 220px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    flex-shrink: 0;
}

.slide img {
    width: 450px;
    height: 400px;
    object-fit: contain;
    transition: .3s;
}


@keyframes scroll {

    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-220px * 8));
    }

}

/*==================================================
CONTACTO
==================================================*/

.cta-contact{
    padding:70px 0;
    background:#f7fbff;
}

.cta-contact h2{
    margin-bottom: 55px;
}

.contact-grid{
    display:grid;
    grid-template-columns:420px 1fr;
    gap:40px;
    align-items:stretch;
}

.card{
    background:#fff;
    border-radius:18px;
    border:1px solid #e8edf3;
    box-shadow:0 12px 35px rgba(0,0,0,.08);
}

.info{
    padding:40px;
}

.info h3{
    font-size:1.8rem;
    color:var(--primary);
    margin-bottom:30px;
}

.contact-item{
    display:flex;
    align-items:flex-start;
    gap:15px;
    margin-bottom:22px;
}

.contact-item i{
    width:22px;
    margin-top:3px;
    color:var(--primary);
    font-size:20px;
    text-align:center;
    flex-shrink:0;
}

.contact-item p{
    margin:0;
    color:#555;
    line-height:1.7;
    font-size:15px;
}

.info hr{
    border:none;
    border-top:1px solid #e8edf3;
    margin:30px 0;
}

.contact-text{
    margin-top:20px;
    color:#666;
    line-height:1.7;
}

.map {
    overflow: hidden;
    padding: 0;
    border-radius: 18px;
}

.map iframe {
    width: 100%;
    height: 100%;
    min-height: 520px;
    border: 0;
    display: block;
    filter: grayscale(.08);
}


/*==================================================
MAIN FOOTER
==================================================*/
.main-footer {
    width: 100%;
    background-color: #1e1e24; 
    color: #ffffff;
    padding-top: 25px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 20px;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-column {
    flex: 1;
    min-width: 250px;
}

.brand-column {
    min-width: 260px;
}

.brand-tagline {
    font-size: 13.5px;
    color: #a0aab5;
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    width: 34px;
    height: 34px;
    background-color: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
}

.footer-column h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
}

.footer-column ul li {
    margin-bottom: 8px;
    list-style: none;
}

.footer-column ul li a {
    font-size: 14px;
    color: #a0aab5;
    transition: color 0.2s;
}

.footer-column ul li a:hover {
    color: #ffffff;
}

.contact-column {
    min-width: 220px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    color: #a0aab5;
    font-size: 15px;
}

.contact-icon {
    width: 22px;
    text-align: center;
    color: #2b83d3;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-info-item span {
    line-height: 1.4;
}

.footer-bottom {
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding:15px 20px;
}

.footer-bottom-container {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.copyright {
    font-size: 13px;
    color: #798593;
}

.legal-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.legal-links a {
    font-size: 13px;
    color: #798593;
}

.legal-links .separator {
    color: rgba(255, 255, 255, 0.15);
}

nav a {
    position: relative;
    display: inline-block;
}

.navbar nav a:hover,
.navbar nav a.active {
    color: var(--primary);
}

.navbar nav a.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    transform: translateX(-50%);
    width: 32px;
    height: 3px;
    border-radius: 30px;
    background: var(--primary);
}