﻿/* ==================== CSS VARIABLES ==================== */
:root {
    --bg-primary: #0c0c0c;
    --bg-secondary: #ffffff;
    --bg-accent: #1a1a1a;
    --color-accent: #02afee;
    --color-gold: #b58153;
    --color-secondary: #1a1a1a;
    --text-main: #efefef;
    --text-dark: #333333;
    --text-inverted: #ffffff;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --container-width: 1200px;
    --transition-smooth: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(2, 175, 238, 0.15);
}

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    background-color: var(--bg-secondary);
}

#page-wrapper {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

/* ==================== TYPOGRAPHY ==================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-main);
}

/* ==================== UTILITIES ==================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-wide {
    max-width: 95%;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.btn-pill {
    display: inline-flex;
    align-items: center;
    background: #242424;
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 8px;
    transition: var(--transition-smooth);
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.btn-pill .btn-text {
    padding: 1.2rem 2.5rem;
}

.btn-pill .btn-icon {
    background: #e1e1e1;
    color: #1a1a1a;
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 0% 100%);
    margin-left: -15px;
    transition: var(--transition-smooth);
}

.btn-pill:hover .btn-icon {
    padding-left: 2rem;
    background: #ffffff;
}

.btn-pill:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-outline-pill {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: var(--transition-smooth);
    overflow: hidden;
}

.btn-outline-pill .btn-text {
    padding: 1.2rem 2.5rem;
}

.btn-outline-pill .btn-icon {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.2rem 1.5rem;
    clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 0% 100%);
    margin-left: -15px;
}

.btn-outline-pill:hover {
    background: white;
    color: black;
    border-color: white;
}

.tab-section {
    position: relative;
    z-index: 1;
}

.section-stack {
    position: relative;
    margin-top: -60px;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.tab-folder-white {
    background: #ffffff !important;
    color: #1a1a1a !important;
    clip-path: polygon(0 0, 15% 0, 25% 60px, 100% 60px, 100% 100%, 0 100%);
}

.tab-folder-black {
    background: var(--bg-primary) !important;
    color: var(--text-main) !important;
    clip-path: polygon(0 0, 15% 0, 25% 60px, 100% 60px, 100% 100%, 0 100%);
}

.tab-folder-dark {
    background: #1a1a1a !important;
    color: var(--text-main) !important;
    clip-path: polygon(0 0, 15% 0, 25% 60px, 100% 60px, 100% 100%, 0 100%);
}

.tab-folder-white p,
.tab-folder-white h2,
.tab-folder-white h3 {
    color: #1a1a1a !important;
}

.z-10 {
    z-index: 10;
}

.z-20 {
    z-index: 20;
}

.z-30 {
    z-index: 30;
}

.z-40 {
    z-index: 40;
}

.z-50 {
    z-index: 50;
}

.section {
    padding: 5rem 0 6.5rem;
}

.section-title {
    text-align: left;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent), #0190c7);
    margin: 1rem 0 0;
    border-radius: 2px;
}

/* ==================== HEADER & NAVIGATION ==================== */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    backdrop-filter: blur(0px);
    box-shadow: none;
    transition: var(--transition-smooth);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    /* Línea divisoria muy sutil */
}

/* Efecto hover premium para escritorio */
@media (hover: hover) {
    .header:hover {
        background: rgba(0, 0, 0, 0.4);
        /* Negro con opacidad baja */
        backdrop-filter: blur(15px);
        /* Efecto de desenfoque de cristal */
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }
}

.header.scrolled {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    border-bottom-color: transparent;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    max-width: var(--container-width);
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    height: 75px;
    transition: var(--transition-smooth);
}

@media (max-width: 768px) {
    .logo {
        height: 55px;
    }
}

.logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.logo:hover img {
    transform: scale(1.03);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-inverted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Dropdown Styles */
.nav-item {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 260px;
    background: #000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border-radius: 8px;
    z-index: 1002;
    list-style: none;
}

.nav-link i.fa-chevron-down {
    font-size: 0.7em;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-item:hover .nav-link i.fa-chevron-down {
    transform: rotate(180deg);
}

.dropdown-item {
    display: block;
    padding: 10px 20px;
    color: #fff;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: var(--color-accent);
    color: #fff;
    padding-left: 25px;
}

.nav-cta {
    background: var(--color-accent);
    color: var(--text-inverted);
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-cta:hover {
    background: #0190c7;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(2, 175, 238, 0.3);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--text-inverted);
    border-radius: 3px;
    transition: var(--transition-smooth);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ==================== BREADCRUMBS ==================== */
.breadcrumbs {
    padding: 120px 0 30px;
    /* Account for fixed header */
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 100%);
    color: #fff;
    font-size: 0.9rem;
}

.breadcrumbs .container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: var(--color-accent);
}

.breadcrumbs .separator {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
}

.breadcrumbs .current {
    color: var(--color-accent);
    font-weight: 600;
}


/* ==================== HERO SECTION ==================== */
.hero {
    height: auto;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    background: #000;
    /* Fondo base negro */
    overflow: hidden;
    padding-top: 100px;
    padding-bottom: 110px;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Capa de imagen con efecto Ken Burns */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.45));
    z-index: 1;
}



.hero .container {
    width: 100%;
    display: flex;
    justify-content: flex-start;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(2, 175, 238, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(2, 175, 238, 0.08) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    color: var(--text-inverted);
    max-width: 900px;
    padding: 2rem;
    margin: 0;
}

.hero h1 {
    color: var(--text-inverted);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== SERVICES SECTION ==================== */
.services {
    background: var(--bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.service-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--color-accent), #0190c7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--text-inverted);
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card,
.benefit-item {
    text-align: center !important;
}

/* ==================== HIGHLIGHT CARDS ==================== */
.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 2.5rem;
}

.highlight-card {
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    padding: 3rem 1.8rem 1.5rem;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    min-height: 340px;
    height: 100%;
    text-decoration: none;
}

.highlight-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    z-index: 1;
    transition: all 0.5s ease;
}

.highlight-card::after {
    content: "→";
    position: absolute;
    bottom: 1.5rem;
    right: 1.8rem;
    color: #FFFFFF;
    font-size: 1.8rem;
    z-index: 2;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.highlight-card:hover {
    transform: scale(1.02) translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.highlight-card:hover::before {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
}

.highlight-card:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.highlight-card h3,
.highlight-card h4 {
    position: relative;
    z-index: 2;
    margin: 0 0 0.8rem 0;
    font-size: 1.5rem;
    color: #FFFFFF !important;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.highlight-card p {
    position: relative;
    z-index: 2;
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.4;
    min-height: 4.2rem;
    /* Reserves space for 3-4 lines of text to align titles */
    display: flex;
    align-items: flex-start;
}

@media (min-width: 1024px) {
    .highlight-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .highlight-grid.grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==================== WHY CHOOSE US SECTION ==================== */
.why-choose-us {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.benefit-item {
    background: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
    border-left: 4px solid var(--color-accent);
}

.benefit-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-hover);
}

.benefit-icon {
    font-size: 3rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
    transition: var(--transition-smooth);
}

.benefit-item:hover .benefit-icon {
    transform: scale(1.15);
}

.benefit-item h3 {
    color: var(--text-dark) !important;
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
}

.benefit-item p {
    color: #666;
    font-size: 1rem;
    line-height: 1.7;
}

/* ==================== HOME OPTIMIZATION UTILITIES ==================== */

/* Text Utilities */
.text-center {
    text-align: center !important;
}

.text-left {
    text-align: left !important;
}

.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

.mx-0 {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.mb-2 {
    margin-bottom: 2rem !important;
}

.mb-3 {
    margin-bottom: 3rem !important;
}

.mt-3 {
    margin-top: 3rem !important;
}

.mt-neg-60 {
    margin-top: -60px !important;
}

.max-w-700 {
    max-width: 700px !important;
}

.max-w-800 {
    max-width: 800px !important;
}

.max-w-900 {
    max-width: 900px !important;
}

.text-dark {
    color: #333 !important;
}

.text-light {
    color: rgba(255, 255, 255, 0.9) !important;
}

.text-light-dim {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Section Specifics */
.imprenta-intro {
    max-width: 800px;
    margin-bottom: 2rem;
}

.imprenta-services-title {
    margin-bottom: 2rem;
    border-left: 4px solid var(--color-accent);
    padding-left: 1rem;
    font-size: 1.4rem;
}

.reviews-container {
    width: 100%;
    padding: 0 2rem;
    text-align: left;
}

.trustindex-widget-container {
    margin-bottom: 2rem;
    width: 100%;
    min-height: 200px;
}

.cta-separator {
    width: 80px;
    height: 4px;
    background: var(--color-accent);
    margin: 0 auto;
}

.cta-button-container {
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* NAP Section (Formerly inline style block) */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.nap-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.nap-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.nap-icon {
    width: 45px;
    height: 45px;
    background: rgba(2, 175, 238, 0.1);
    color: var(--color-accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    border: 1px solid rgba(2, 175, 238, 0.2);
}

.nap-details h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--color-secondary);
}

.nap-details p {
    font-size: 1rem;
    line-height: 1.5;
    color: #444;
    margin: 0;
}

.map-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 450px;
}

@media (max-width: 992px) {
    .split-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .map-wrapper {
        height: 400px;
    }
}

.footer {
    background: #000000;
    color: var(--text-main);
    padding: 6rem 0 3rem;
    border-top: 1px solid rgba(181, 129, 83, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-section p,
.footer-section li {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-section i {
    color: var(--color-accent);
    margin-right: 0.5rem;
    width: 20px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(2, 175, 238, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--color-accent);
    transition: var(--transition-smooth);
}

.social-link:hover {
    background: var(--color-accent);
    color: var(--text-inverted);
    transform: translateY(-5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ==================== FLOATING CONTACT BUTTON ==================== */
html body #contactBtn.float-contact-btn,
html body .float-contact-btn {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    width: 65px !important;
    height: 65px !important;
    background-color: #02afee !important;
    /* Corporate Blue */
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 2rem !important;
    color: #ffffff !important;
    box-shadow: 0 8px 32px rgba(2, 175, 238, 0.4) !important;
    z-index: 9999999 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    animation: contactBounce 2s infinite !important;
    text-decoration: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}

#contactBtn.float-contact-btn i,
.float-contact-btn i {
    color: #ffffff !important;
    margin: 0 !important;
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    display: block !important;
}

.float-contact-btn:hover {
    transform: scale(1.1) translateY(-5px) !important;
    background-color: #0190c7 !important;
    box-shadow: 0 12px 40px rgba(2, 175, 238, 0.6) !important;
}

/* Phone floating button */
html body .float-phone-btn {
    position: fixed !important;
    bottom: 110px !important;
    right: 30px !important;
    width: 65px !important;
    height: 65px !important;
    background-color: #25d366 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.8rem !important;
    color: #ffffff !important;
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.4) !important;
    z-index: 9999998 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

.float-phone-btn:hover {
    transform: scale(1.1) translateY(-5px) !important;
    background-color: #1da851 !important;
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.6) !important;
}

.float-phone-btn i {
    color: #ffffff !important;
    margin: 0 !important;
}

/* Footer "Cómo llegar" button hover (replaces inline handlers) */
.footer a[href*="maps.app.goo.gl"]:hover {
    background: rgba(255, 255, 255, 0.1);
}

@keyframes contactBounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        gap: 1.5rem;
        transition: right 0.4s ease;
        padding: 5rem 2rem 2rem;
        overflow-y: auto;
        visibility: hidden;
        /* Prevent focus or layout contribution when closed */
    }

    .nav-menu.active {
        right: 0;
        visibility: visible;
    }

    .hamburger {
        display: flex;
    }

    /* Mobile Dropdown Logic */
    .dropdown-menu {
        position: static;
        width: 100%;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        /* Hidden by default on mobile */
        padding-left: 1rem;
    }

    .nav-item:hover .dropdown-menu {
        display: none;
        /* Disable hover on mobile */
    }

    .nav-item.active-mobile .dropdown-menu {
        display: block;
        /* Show when clicked */
    }

    .hero {
        text-align: center;
    }

    .hero .container {
        justify-content: center;
    }

    .hero-content {
        align-items: center;
        padding: 1rem;
        margin-top: 2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .services-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    html body #contactBtn.float-contact-btn,
    html body .float-contact-btn {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.8rem !important;
        bottom: 25px !important;
        right: 25px !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 9999999 !important;
    }

    html body .float-phone-btn {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.6rem !important;
        bottom: 100px !important;
        right: 25px !important;
    }

    .breadcrumbs {
        padding: 90px 0 20px;
    }

    /* Adjust for mobile header */
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 3rem 0 5rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .service-card,
    .benefit-item {
        padding: 2rem 1rem;
    }
}

/* ==================== PREMIUM FAQ ACCORDION (IMAGE REPLICA) ==================== */
.faq-section {
    position: relative;
    z-index: 50;
}

/* Separador removido para usar tab-folder global */

.faq-title {
    text-align: left;
    margin-bottom: 4rem;
    padding: 0 1.5rem;
    position: relative;
    max-width: var(--container-width);
    margin: 0 auto;
}

.faq-title h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: #0c1c3c;
    margin: 0;
}

.faq-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent), #0190c7);
    margin: 1rem 0 0;
    border-radius: 2px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

.faq-item {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid rgba(2, 175, 238, 0.95);
    /* High visibility blue border */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    height: fit-content;
}

.faq-item:hover,
.faq-item.active {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(2, 175, 238, 0.15);
    border-color: var(--color-accent);
    /* Full blue on hover or active */
}

.faq-header {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.faq-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #0c1c3c;
    margin: 0;
    line-height: 1.5;
    font-family: var(--font-heading);
}

.faq-icon {
    font-size: 1.4rem;
    /* Larger icon for better visibility */
    color: var(--color-accent);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 2rem;
    opacity: 0;
}

.faq-item.active .faq-content {
    max-height: 500px;
    padding: 0 2rem 2rem;
    opacity: 1;
    border-top: 1px solid #f1f4f8;
    padding-top: 1.5rem;
}

.faq-content p {
    color: #4a5568 !important;
    font-size: 1rem !important;
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 992px) {
    .faq-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
}

/* ==================== TAB FOLDER RESPONSIVE ==================== */
@media (max-width: 992px) {

    .tab-folder-white,
    .tab-folder-black,
    .tab-folder-dark {
        clip-path: polygon(0 0, 30% 0, 45% 60px, 100% 60px, 100% 100%, 0 100%);
    }
}

@media (max-width: 480px) {

    .tab-folder-white,
    .tab-folder-black,
    .tab-folder-dark {
        clip-path: polygon(0 0, 45% 0, 60% 50px, 100% 50px, 100% 100%, 0 100%);
    }

    .section-stack {
        margin-top: -50px;
        padding-top: 5.2rem !important;
        padding-bottom: 7.5rem !important;
    }
}

@media (max-width: 768px) {
    .container-wide {
        padding: 0 1rem;
        width: 100%;
        max-width: 100%;
    }

    /* Android fix: Eliminate horizontal drift and section overlap */
    .section-stack {
        margin-top: 0 !important;
        transform: none !important;
    }

    .tab-folder-white,
    .tab-folder-black,
    .tab-folder-dark {
        clip-path: none !important;
        margin-top: 0 !important;
        border-top: 3px solid var(--color-accent);
    }

    /* Visibility Fail-safe for Android intersection observer issues */
    .service-card,
    .benefit-item,
    .highlight-card,
    .hero-content,
    .section-title {
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
    }
}

/* ==================== SUBPAGES STYLES (EXTRACTED) ==================== */
.page-hero {
    height: auto;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    overflow: hidden;
    padding-top: 100px;
    padding-bottom: 110px;
}

.page-hero .container {
    width: 100%;
    display: flex;
    justify-content: flex-start;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(2, 175, 238, .15) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(2, 175, 238, .1) 0%, transparent 50%);
}

.page-hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    color: var(--text-inverted);
    max-width: 800px;
    padding: 2rem;
    margin: 0;
}

.page-hero h1 {
    color: var(--text-inverted);
    margin-bottom: 1.5rem;
}

.page-hero p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: rgba(255, 255, 255, .9);
    margin-bottom: 2rem;
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.type-card {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
    border-top: 4px solid var(--color-accent);
    text-align: center !important;
}

.type-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.type-card h3 {
    color: var(--color-accent);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.type-card li {
    padding: .5rem 0;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: .5rem;
    justify-content: flex-start;
    text-align: left;
}

.type-card li i {
    color: var(--color-accent);
    font-size: .9rem;
    flex-shrink: 0;
}

@media (max-width:768px) {
    .page-hero {
        min-height: 50vh;
    }

    .types-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== SPLIT SECTION & KEN BURNS ==================== */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.ken-burns-container {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    position: relative;
    transform: translateZ(0);
}

.ken-burns-effect {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: kenBurns 20s infinite alternate;
    will-change: transform;
}

@keyframes kenBurns {
    0% {
        transform: scale(1) translate(0, 0);
    }

    100% {
        transform: scale(1.15) translate(-2%, -2%);
    }
}

/* ==================== PAGE HERO (SUBPAGES) ==================== */
.page-hero {
    height: auto;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    overflow: hidden;
    padding-top: 100px;
    padding-bottom: 110px;
}

.page-hero .container {
    width: 100%;
    display: flex;
    justify-content: flex-start;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(2, 175, 238, .15) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(2, 175, 238, .1) 0%, transparent 50%);
}

.page-hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    color: var(--text-inverted);
    max-width: 800px;
    padding: 2rem;
    margin: 0;
}

.page-hero h1 {
    color: var(--text-inverted);
    margin-bottom: 1.5rem;
}

.page-hero p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: rgba(255, 255, 255, .9);
    margin-bottom: 2rem;
}

/* ==================== TYPE CARDS (SERVICES) ==================== */
.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.type-card {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
    border-top: 4px solid var(--color-accent);
    text-align: center !important;
}

.type-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.type-card h3 {
    color: var(--color-accent);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.type-card li {
    padding: .5rem 0;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: .5rem;
    justify-content: flex-start;
    text-align: left;
}

.type-card li i {
    color: var(--color-accent);
    font-size: .9rem;
    flex-shrink: 0;
}

/* ==================== APP ITEMS (ENCUADERNACION) ==================== */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.app-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 1.2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
}

.app-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
}

.app-item i {
    color: var(--color-accent);
    font-size: 1.2rem;
}

.app-item span {
    color: #fff;
    font-weight: 600;
}

/* ==================== VALUE CARDS (NOSOTROS) ==================== */
.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.value-card {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
    text-align: center;
    border-top: 4px solid var(--color-accent);
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.value-icon {
    font-size: 3.5rem;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

.value-card h3 {
    color: var(--text-main);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.value-card p {
    color: #666;
    font-size: 1rem;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .page-hero {
        min-height: 50vh;
    }

    .types-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .split-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .ken-burns-container {
        /* height: 300px; Removed to respect aspect-ratio: 1/1 */
        order: -1;
    }

    .text-column {
        text-align: center;
    }

    .text-column .section-title {
        text-align: center !important;
    }

    .text-column .section-title h2 {
        margin-left: auto !important;
        margin-right: auto !important;
    }
}