/* --- VARIABLES TECH --- */
:root {
    --primary: #009FE3;
    --accent: #FFD700;
    --bg-light: #ffffff;
    --bg-soft: #f6f8fa;
    --text-main: #1d1d1f;
    --text-muted: #86868b;
    --font-main: 'Montserrat', sans-serif;
}

/* --- RESET & GLOBAL --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    padding-top: 78px;
}

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

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 110px 0;
}

.bg-soft {
    background-color: var(--bg-soft);
}

h1,
h2,
h3,
h4 {
    line-height: 1.15;
}

h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #000;
}

.section-subtitle {
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1.2px;
    font-size: 0.78rem;
    margin-bottom: 12px;
    display: block;
}

.section-intro {
    max-width: 760px;
    color: #666c73;
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.section-title-center {
    text-align: center;
}

/* --- HEADER --- */
header {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    padding: 16px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #eaeaea;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    max-height: 66px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    color: var(--text-main);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: 0.25s ease;
}

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

.mobile-toggle {
    display: none;
    font-size: 1.35rem;
    cursor: pointer;
    color: var(--text-main);
    line-height: 1;
}

/* --- HERO --- */
#hero {
    padding: 200px 0 120px;
    background: linear-gradient(180deg, #eef7fc 0%, #f6fafc 100%);
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    margin-bottom: 22px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(0, 159, 227, 0.10);
    color: var(--primary);
    font-size: 0.86rem;
    font-weight: 700;
}

#hero h1 {
    font-size: 4rem;
    font-weight: 800;
    color: #000;
    max-width: 980px;
    margin: 0 auto 24px;
}

#hero p {
    font-size: 1.18rem;
    color: #666c73;
    max-width: 760px;
    margin: 0 auto 34px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* --- BOTONES --- */
.btn {
    display: inline-block;
    background: var(--primary);
    color: #fff !important;
    padding: 15px 30px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 8px 22px rgba(0, 159, 227, 0.22);
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

.btn-nav {
    padding: 15px 28px;
    border-radius: 999px;
    font-size: 0.96rem;
}

.btn-accent {
    background: var(--accent);
    color: #000 !important;
    box-shadow: 0 8px 22px rgba(255, 215, 0, 0.26);
}

.btn-secondary {
    background: #fff;
    color: var(--text-main) !important;
    border: 1px solid #d9e5ec;
    box-shadow: none;
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary) !important;
}

.contact-btn {
    text-align: center;
    margin-top: 10px;
}

/* --- BLOQUE INTRO MARCA --- */
#intro-brand {
    padding: 0 0 30px;
    margin-top: -20px;
}

.intro-brand-box {
    background: #fff;
    border: 1px solid #edf1f4;
    border-radius: 26px;
    padding: 26px 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.04);
}

.intro-brand-item {
    text-align: center;
    padding: 20px 16px;
}

.intro-brand-item i {
    font-size: 2.1rem;
    color: var(--primary);
    margin-bottom: 14px;
}

.intro-brand-item h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.intro-brand-item p {
    color: #6f6f75;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* --- SECCIÓN PANTALLA --- */
.split-layout {
    display: flex;
    align-items: center;
    gap: 70px;
    flex-wrap: wrap;
}

.split-image,
.split-content {
    flex: 1;
    min-width: 320px;
}

.split-image img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.08);
}

.split-content p {
    margin-bottom: 18px;
    color: #666c73;
    font-size: 1.04rem;
}

.split-content .btn {
    margin-top: 10px;
}

/* --- GRID DE SERVICIOS / PASOS --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 52px;
}

.service-card {
    background: #fff;
    padding: 42px 32px;
    border-radius: 22px;
    border: 1px solid #eceff2;
    transition: 0.3s ease;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.02);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    border-color: #dfe8ee;
}

.service-card i {
    font-size: 2.3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.28rem;
    line-height: 1.3;
    margin-bottom: 14px;
    color: #111;
}

.service-card p {
    color: #6e737a;
    font-size: 0.98rem;
    line-height: 1.7;
}

/* --- CONTACTO --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.45fr;
    gap: 34px;
    margin-top: 50px;
    align-items: stretch;
}

.contact-info {
    background: #17181d;
    color: #fff;
    padding: 42px 36px;
    border-radius: 24px;
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.12);
}

.contact-info h3 {
    color: #fff;
    margin-bottom: 30px;
    text-align: left;
    font-size: 1.45rem;
}

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

.info-item i {
    color: var(--primary);
    font-size: 1.05rem;
    margin-top: 5px;
}

.info-item strong {
    display: block;
    color: var(--primary);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin-bottom: 4px;
}

.info-item p,
.info-item div {
    color: #b5bac2;
    font-size: 1rem;
    line-height: 1.6;
}

.map-container {
    width: 100%;
    min-height: 480px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #e9edf0;
    background: #fff;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.map-topbar {
    padding: 14px 18px;
    border-bottom: 1px solid #eef2f4;
    background: #fff;
}

.map-topbar a {
    text-decoration: none;
    color: var(--primary);
    font-size: 0.92rem;
    font-weight: 600;
}

.map-frame {
    width: 100%;
    height: 100%;
    min-height: 420px;
    border: 0;
    display: block;
}

/* --- FOOTER --- */
footer {
    background: #16171d;
    color: #fff;
    padding: 90px 0 34px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 55px;
}

.footer-col h4 {
    color: var(--primary);
    margin-bottom: 22px;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col p,
.footer-col ul li a {
    color: #b2b6be;
    font-size: 1rem;
    text-decoration: none;
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a:hover {
    color: #fff;
}

.social-links {
    margin-top: 22px;
}

.social-links a {
    color: #fff;
    font-size: 1.25rem;
    margin-right: 18px;
    transition: 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.social-links a i {
    line-height: 1;
}

.social-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    font-size: 0.88rem;
    color: #8f949c;
}

.legal-links a,
.btn-link {
    color: #8f949c;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.88rem;
}

.legal-links a:hover,
.btn-link:hover {
    color: #fff;
}

/* --- RESPONSIVE --- */
@media (max-width: 1100px) {
    #hero h1 {
        font-size: 3.4rem;
    }

    .intro-brand-box {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    body {
        padding-top: 78px;
    }

    section {
        padding: 90px 0;
    }

    .nav-container {
        position: relative;
    }

    .logo img {
        max-height: 48px;
    }

    .mobile-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        right: 0;
        width: 280px;
        background: #fff;
        border-radius: 22px;
        box-shadow: 0 25px 45px rgba(0, 0, 0, 0.08);
        padding: 24px;
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        border: 1px solid #eaeaea;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        font-size: 1rem;
    }

    .btn-nav {
        width: 100%;
        text-align: center;
    }

    #hero {
        padding: 150px 0 90px;
    }

    #hero h1 {
        font-size: 2.5rem;
        max-width: 700px;
    }

    #hero p {
        font-size: 1.05rem;
    }

    h2 {
        font-size: 2rem;
    }

    .split-layout {
        gap: 40px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    section {
        padding: 75px 0;
    }

    #hero {
        padding: 110px 0 60px;
    }

    .hero-badge {
        font-size: 0.78rem;
        padding: 7px 12px;
        margin-bottom: 18px;
    }

    #hero h1 {
        font-size: 2.15rem;
        line-height: 1.18;
        margin-bottom: 18px;
    }

    #hero p {
        font-size: 0.98rem;
        margin-bottom: 26px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 260px;
        text-align: center;
    }

    h2 {
        font-size: 1.8rem;
    }

    .section-intro {
        font-size: 0.98rem;
    }

    .intro-brand-box {
        padding: 18px;
        gap: 0;
    }

    .intro-brand-item {
        padding: 18px 10px;
    }

    .service-card {
        padding: 32px 24px;
    }

    .service-card h3 {
        font-size: 1.12rem;
    }

    .service-card p {
        font-size: 0.95rem;
    }

    .contact-info {
        padding: 32px 24px;
    }

    .map-container {
        min-height: 330px;
    }

    .map-frame {
        min-height: 290px;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 74px;
    }

    .container {
        padding: 0 16px;
    }

    #hero {
        padding: 100px 0 55px;
    }

    .logo img {
        max-height: 42px;
    }

    .mobile-toggle {
        font-size: 1.25rem;
    }

    .nav-links {
        width: calc(100vw - 32px);
        right: 0;
    }

    #hero h1 {
        font-size: 1.95rem;
    }

    #hero p {
        font-size: 0.94rem;
    }

    .split-image,
    .split-content {
        min-width: 100%;
    }

    .service-card {
        border-radius: 18px;
    }

    .contact-info,
    .map-container,
    .split-image img,
    .intro-brand-box {
        border-radius: 18px;
    }
}

/* =========================
   PÁGINAS LEGALES
========================= */

.legal-section {
    padding: 140px 0 100px;
    background: linear-gradient(180deg, #eef7fc 0%, #ffffff 240px);
}

.legal-container {
    max-width: 860px;
}

.legal-container h1 {
    font-size: 2.7rem;
    font-weight: 800;
    color: #000;
    margin-bottom: 18px;
    line-height: 1.08;
}

.legal-container h2 {
    font-size: 1.55rem;
    font-weight: 800;
    color: #111;
    margin-top: 34px;
    margin-bottom: 12px;
    line-height: 1.2;
}

.legal-container p {
    font-size: 1rem;
    color: #5f6670;
    line-height: 1.8;
    margin-bottom: 16px;
}

.legal-intro {
    font-size: 1.06rem;
    color: #5f6670;
    margin-bottom: 24px;
}

.company-data-box {
    background: #ffffff;
    border: 1px solid #e7edf2;
    border-radius: 20px;
    padding: 24px 26px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.04);
    margin: 24px 0 18px;
}

.legal-highlight {
    border-left: 4px solid var(--primary);
}

.privacy-notice {
    background: rgba(0, 159, 227, 0.05);
    border-color: rgba(0, 159, 227, 0.18);
}

.company-data-box ul,
.legal-list,
.policy-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.company-data-box ul li,
.legal-list li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 12px;
    color: #4f5660;
    line-height: 1.7;
}

.company-data-box ul li:last-child,
.legal-list li:last-child {
    margin-bottom: 0;
}

.company-data-box ul li::before,
.legal-list li::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    position: absolute;
    left: 0;
    top: 11px;
}

.policy-links {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.policy-links li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    background: #fff;
    border: 1px solid #e6edf3;
    border-radius: 16px;
    padding: 14px 18px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.03);
    transition: 0.25s ease;
}

.policy-links li a:hover {
    transform: translateY(-2px);
    border-color: #cfe3ef;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.05);
}

.legal-container a {
    color: var(--primary);
    text-decoration: none;
}

.legal-container a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .legal-section {
        padding: 120px 0 80px;
        background: linear-gradient(180deg, #eef7fc 0%, #ffffff 180px);
    }

    .legal-container h1 {
        font-size: 2.1rem;
        margin-bottom: 16px;
    }

    .legal-container h2 {
        font-size: 1.28rem;
        margin-top: 28px;
        margin-bottom: 10px;
    }

    .legal-container p {
        font-size: 0.97rem;
        line-height: 1.75;
    }

    .company-data-box {
        padding: 20px 18px;
        border-radius: 16px;
    }

    .policy-links li a {
        padding: 13px 15px;
        border-radius: 14px;
    }
}

@media (max-width: 480px) {
    .legal-container h1 {
        font-size: 1.85rem;
    }

    .legal-container h2 {
        font-size: 1.16rem;
    }

    .company-data-box ul li,
    .legal-list li {
        padding-left: 20px;
    }
}

/* =========================
   COOKIES / PRIVACIDAD
========================= */

.cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 24, 0.22);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 9999;
}

.cookie-box {
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
    border: 1px solid #e6edf3;
}

.cookie-box h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 14px;
    color: #111;
}

.cookie-box p {
    color: #616872;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 22px;
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.btn-cookie {
    border: none;
    background: var(--primary);
    color: #fff;
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.25s ease;
    box-shadow: 0 8px 18px rgba(0, 159, 227, 0.18);
}

.btn-cookie:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.btn-outline {
    background: #fff;
    color: var(--text-main);
    border: 1px solid #dbe5ec;
    box-shadow: none;
}

.settings-box {
    max-width: 620px;
}

.cookie-option {
    padding: 16px 0;
    border-top: 1px solid #edf2f6;
}

.cookie-option:first-of-type {
    border-top: none;
    padding-top: 0;
}

.cookie-option label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #1d1d1f;
    font-size: 0.98rem;
    line-height: 1.5;
    cursor: pointer;
}

.cookie-option input[type="checkbox"] {
    margin-right: 8px;
    accent-color: var(--primary);
}

.cookie-option strong {
    font-size: 1rem;
    color: #111;
}

.cookie-option span {
    color: #6a717b;
    font-size: 0.94rem;
}

@media (max-width: 768px) {
    .cookie-overlay {
        align-items: center;
        justify-content: center;
        padding: 12px;
        background: rgba(10, 14, 24, 0.16);
    }

    .cookie-box {
        max-width: 100%;
        max-height: 85vh;
        padding: 20px 16px;
        border-radius: 18px;
    }

    .cookie-box h3 {
        font-size: 1.2rem;
    }

    .cookie-box p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .cookie-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-cookie,
    .cookie-buttons .btn-link {
        width: 100%;
        text-align: center;
    }
}