:root {
    /* Paleta Premium - Estilo Stitch (DeepMind) */
    --primary: #10B981;
    /* Esmeralda vibrante */
    --primary-glow: rgba(16, 185, 129, 0.4);
    --secondary: #0F172A;
    /* Slate muy oscuro para profundidad */
    --accent: #F59E0B;
    /* Ámbar para toques de atención */
    --bg-dark: #020617;
    /* Fondo casi negro profundo */
    --bg-card: rgba(255, 255, 255, 0.03);
    /* Glassmorphism base */
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --border-glass: rgba(255, 255, 255, 0.08);

    /* Sombras Elevadas (Multicapa) */
    --shadow-premium: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06), 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px var(--primary-glow);

    --transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 1;
    /* Restaurado para asegurar visibilidad */
    transform: translateY(0);
    transition: all 0.8s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Ambient Glow Effects */
.ambient-glow {
    position: fixed;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
    animation: pulse 10s infinite alternate;
}

.glow-1 {
    top: -10%;
    left: -10%;
    background: var(--primary);
}

.glow-2 {
    bottom: -10%;
    right: -10%;
    background: var(--primary);
    animation-delay: -5s;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.1;
    }

    100% {
        transform: scale(1.2);
        opacity: 0.2;
    }
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-dark);
    /* Subtle dots pattern for tech feel */
    background-image:
        radial-gradient(var(--border-glass) 1px, transparent 1px);
    background-size: 40px 40px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 25px;
}

/* Header & Nav */
header {
    background: rgba(2, 6, 23, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 70px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.1;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary);
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px 0;
    min-width: 220px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: block;
    /* Overriding flex from nav ul */
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--white);
    font-size: 0.9rem;
    transition: all 0.3s;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    padding-left: 25px;
}

/* Mobile Menu Adjustments */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 20px;
    }

    nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .logo-container {
        flex-direction: column;
        text-align: center;
    }
}

/* Hero */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(2, 6, 23, 0.6), rgba(2, 6, 23, 0.9)), url('../img/upisa.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    position: relative;
    padding: 100px 0;
}

.hero-content {
    position: relative;
    z-index: 100;
    /* Ensure content is above everything */
    max-width: 850px;
}

.badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-primary {
    background: var(--white);
    color: var(--primary);
}

.btn-primary:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: #25d366;
    color: var(--white);
    margin-left: 15px;
    border: none;
}

.btn-whatsapp:hover {
    background: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.btn-linkedin {
    background: #0077b5;
    color: var(--white);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    margin-top: 15px;
}

.btn-linkedin:hover {
    background: #005582;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 119, 181, 0.3);
}

.btn-linkedin svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Stats */
.stats {
    padding: 60px 0;
    background: var(--white);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)),
        url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h40v40H0z' fill='none'/%3E%3Cpath d='M0 40L40 0M40 40L0 0' stroke='%230f3d2a' stroke-width='0.5' opacity='0.05'/%3E%3C/svg%3E");
    margin-top: -50px;
    /* Reduced negative margin to avoid overlap with buttons */
    position: relative;
    z-index: 40;
    /* High z-index but lower than hero-content if needed, or simply sufficient */
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.grid-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    gap: 20px;
}

.stat-item .number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-heading);
}

.stat-item .label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Alternating Backgrounds */
main section:nth-of-type(even) {
    background-color: #f7f9f8;
    background-image:
        linear-gradient(rgba(247, 249, 248, 0.97), rgba(247, 249, 248, 0.97)),
        url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h1v1H0zm10 10h1v1h-1z' fill='%230f3d2a' fill-opacity='0.03'/%3E%3C/svg%3E");
}

/* CTA Visibility & Sophistication */
.hero .btn {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-width: 2px;
    letter-spacing: 0.5px;
}

.hero .btn-whatsapp {
    background: #128c7e;
    border-color: #128c7e;
}

.hero .btn-whatsapp:hover {
    background: #075e54;
    border-color: #075e54;
}

.hero .btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #000000;
}

.hero .btn-primary:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
}

/* Section Title */
.section-title {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--primary-dark);
}

/* Servicios */
.servicios {
    padding: 100px 0;
}

.grid-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-glass);
    transition: var(--transition);
    text-align: center;
    color: var(--text-main);
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.service-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

/* Proyectos */
.proyectos {
    padding: 100px 0;
    background: var(--bg-light);
}

.proyectos .section-title {
    color: #0f3d2a;
    /* Dark green for visibility on light background */
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 20px;
}

.bento-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-card);
    transition: var(--transition);
    border: 1px solid var(--border-glass);
}

.bento-item:hover {
    transform: scale(1.02);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.upisa-main {
    grid-column: span 2;
    background-image: url('../img/proyectos-hbc/UPISA PTAC/UPISA PTAC 1.jpg');
}

.barudi-main {
    grid-column: span 2;
    grid-row: span 2;
    background-image: url('../img/proyectos-hbc/Edificio 2.png');
}

.cma-main {
    background-image: url('../img/proyectos-hbc/Equipos/Separador de fases 1.jpg');
    /* Assuming existing image location or similar */
}

.hl-main {
    background-image: url('../img/proyectos-hbc/HL Caps PTE/HL-1.jpg');
}

.tomizo-main {
    background-image: url('../img/proyectos-hbc/Tomiso PTE/Tomiso PTE 1.jpg');
    /* Verify path later if needed, but assuming pattern */
}

.agrotec-main {
    grid-column: span 2;
    background-image: url('../img/proyectos-hbc/AGROTEC/P1000570.JPG');
}

.pytrading-main {
    grid-column: span 1;
    background-image: url('../img/proyectos-hbc/Py TRading PTE/Py Trad. PTE 1.jpg');
}

.montajes-main {
    grid-column: span 1;
    background-image: url('../img/proyectos-hbc/Montajes/Montajes 1.JPG');
}

.obras-civiles-main {
    grid-column: span 2;
    background-image: url('../img/proyectos-hbc/Obras civiles/Construcciones civiles 1.JPG');
}

.equipos-main {
    grid-column: span 1;
    background-image: url('../img/proyectos-hbc/Equipos/Reactor UASB.jpg');
}

.adm-sci-main {
    grid-column: span 1;
    background-image: url('../img/proyectos-hbc/ADM SCI/P1020674.JPG');
}

/* More Photos Gallery */
.project-gallery-group {
    margin-bottom: 50px;
    background: var(--bg-soft);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(141, 163, 153, 0.1);
}

.project-gallery-group h4 {
    font-family: var(--font-heading);
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.3rem;
    border-left: 4px solid var(--primary);
    padding-left: 15px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
}

.gallery-item {
    height: 250px;
    border-radius: 12px;
    background-color: #f0f3f2;
    /* Color de respaldo */
    background-size: cover;
    background-position: center;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.gallery-caption {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    text-align: center;
    text-transform: capitalize;
    line-height: 1.2;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
}

.item-overlay h3 {
    margin-bottom: 5px;
}

/* Equipo */
.equipo {
    padding: 100px 0;
}

.grid-team {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.team-card {
    padding: 40px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-premium);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.team-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.team-card h3 {
    margin-bottom: 5px;
    font-size: 1.5rem;
    color: var(--primary-dark);
}

.team-card .role {
    display: block;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bio-content p {
    font-size: 0.95rem;
    margin-bottom: 15px;
    color: var(--text-muted);
    text-align: justify;
}

.bio-content p:last-child {
    margin-bottom: 0;
}

/* Footer */
footer {
    background: var(--primary-dark);
    color: var(--white) !important;
    padding: 80px 0 40px;
}

footer p,
footer h3,
footer div {
    color: var(--white) !important;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
}

.copyright {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

.linkedin-corporativo {
    padding: 60px 0;
    text-align: center;
}

.linkedin-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--border-glass);
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--shadow-premium);
    transition: var(--transition);
}

.linkedin-card:hover {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

.linkedin-card .linkedin-msg {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary) !important;
    font-size: 1.5rem;
    margin-bottom: 15px;
    line-height: 1.2;
}

.linkedin-card .linkedin-cta {
    font-size: 1.1rem;
    color: var(--text-muted) !important;
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .linkedin-card {
        padding: 30px 20px;
    }

    .linkedin-card .linkedin-msg {
        font-size: 1.3rem;
    }

    .footer-grid {
        flex-direction: column;
        gap: 40px;
    }
}

.mt-4 {
    margin-top: 40px;
}

.text-center {
    text-align: center;
}

/* IA Modal */
.ia-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.5s ease-out;
}

.ia-modal-content {
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.ia-modal-content h2 {
    font-family: var(--font-heading);
    margin-bottom: 15px;
    color: var(--primary);
}

.ia-modal-content p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.ia-options {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Project & Client Modal */
.project-list-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(8px);
}

.project-list-content {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    width: 90%;
    max-width: 1000px;
    max-height: 85vh;
    border-radius: 24px;
    border: 1px solid var(--border-glass);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
    color: var(--text-main);
}

.modal-header {
    padding: 25px 40px;
    background: var(--primary);
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.close-modal {
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.projects-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 30px 40px;
}

.project-detail-item {
    padding: 25px 0;
    border-bottom: 1px solid #eee;
}

.project-detail-item:last-child {
    border-bottom: none;
}

.project-detail-item h4 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.project-desc {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.project-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    font-size: 0.9rem;
}

.project-info-grid strong {
    color: var(--primary-dark);
}

.client-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.client-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-main);
}

.client-item:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.client-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

/* Contact Simple Section */
.contact-simple {
    padding: 0 0 80px;
    /* Sin padding superior para conexión inmediata */
    background: transparent;
    text-align: center;
}

.contact-list-bullets {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-list-bullets li {
    font-size: 1.2rem;
    color: var(--text-main);
    font-weight: 500;
}

.contact-list-bullets li span {
    color: var(--primary);
    margin-right: 10px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .contact-box {
        padding: 30px;
    }

    .container {
        padding: 0 15px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .cta-group {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .btn-whatsapp {
        margin-left: 0;
    }

    .grid-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .stat-item .number {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .grid-services {
        grid-template-columns: 1fr;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .upisa-main,
    .barudi-main {
        grid-column: span 1;
        grid-row: span 1;
        height: 250px;
    }

    .grid-team {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .ia-modal-content {
        padding: 30px 20px;
        width: 95%;
    }

    .ia-options {
        flex-direction: column;
    }
}

/* Info Modals & Glassmorphism */
.info-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
    animation: fadeIn 0.4s ease-out;
}

.glass-premium {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 30px rgba(56, 189, 248, 0.1);
    border-radius: 20px;
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    color: var(--white);
    padding: 40px;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

.glass-premium::-webkit-scrollbar {
    width: 6px;
}

.glass-premium::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.info-modal-content .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.header-main {
    display: flex;
    align-items: center;
    gap: 20px;
}

.modal-logo {
    height: 60px;
    border-radius: 8px;
}

.info-modal-content h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin: 0;
}

.info-modal-content .subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 5px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.info-section {
    background: rgba(255, 255, 255, 0.03);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    transition: transform 0.3s ease;
}

.info-section:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.info-section h3 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.info-section p,
.info-section li {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.process-list {
    list-style: none;
    padding: 0;
}

.process-list li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.process-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary);
}

.mini-logo {
    position: absolute;
    bottom: 10px;
    right: 15px;
    height: 20px;
    opacity: 0.4;
}

.modal-footer {
    margin-top: 30px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

.card-hint {
    font-size: 0.8rem;
    color: var(--primary);
    margin-top: 10px;
    opacity: 0;
    transition: opacity 0.3s;
}

.service-card:hover .card-hint {
    opacity: 1;
}

@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }

    .glass-premium {
        padding: 20px;
    }
}

/* --- Global Image Protection (Premium) --- */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    pointer-events: auto;
    /* Allow clicks but prevent drag */
}

/* --- Infographics & Lightbox --- */
.infographic-wrapper {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid rgba(255, 255, 255, 0.05);
    grid-column: 1 / -1;
}

.infographic-wrapper h3 {
    color: var(--primary);
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 600;
}

.infographic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.infographic-item {
    cursor: pointer;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: rgba(15, 23, 42, 0.4);
    position: relative;
}

.infographic-item::after {
    content: "🔎 Ampliar";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(56, 189, 248, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.infographic-item:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.infographic-item:hover::after {
    opacity: 1;
}

.infographic-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: filter 0.3s;
}

.infographic-item:hover img {
    filter: brightness(0.6);
}

.infographic-caption {
    padding: 15px;
    font-size: 0.95rem;
    text-align: center;
    background: rgba(15, 23, 42, 0.95);
    color: var(--white);
    font-weight: 500;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.98);
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    cursor: zoom-out;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 95%;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.9);
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.lightbox.active img {
    transform: scale(1);
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
    transition: all 0.3s;
}

.close-lightbox:hover {
    background: var(--primary);
    transform: rotate(90deg);
}


@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }

    .glass-premium {
        padding: 20px;
    }
}

/* Floating Action Buttons for Mobile App Feel */
.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1500;
}

.fab-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0.9;
}

.fab-btn:hover {
    transform: scale(1.1);
    opacity: 1;
}

.fab-btn svg {
    width: 24px;
    height: 24px;
}

.fab-install {
    background: var(--secondary);
    display: none;
    /* Hidden by default, shown by JS */
}