:root {
    --primary-orange: #FF8C00;
    --white: #FFFFFF;
    --dark-grey: #1a1a2e;
    --text-color: #e0e0e0;
}

/* --- Estilos de Tipografía: Opción A (Elegante) --- */
body {
    font-family: 'Lato', sans-serif; /* Fuente base para párrafos */
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--dark-grey);
    overflow-x: hidden;
}

/* Títulos (todos los niveles) */
h1, h2, h3, h4, h5, h6, .display-1, .display-2, .display-3, .display-4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--white);
}

/* Hacemos los títulos de sección un poco más ligeros que los principales */
h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Ajuste para la navegación para que use la fuente de párrafo más audaz */
.main-nav .nav-links a {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
}

h2, h3 {
    color: var(--white);
}

.main-header {
    background-color: rgba(26, 26, 46, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid #fff;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    padding: 0.5rem 0;
    position: fixed;
    width: 95%;
    max-width: 950px;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1030;
    border-radius: 50px;
    transition: all 0.3s ease;
    height: 5em;
    display: flex;
    justify-content: center;
}

.main-header.scrolled {
    background-color: rgba(26, 26, 46, 0.85);
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.logo-img {
    max-height: 40px;
    transition: all 0.3s ease;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    align-items: center;
}

.main-nav .nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.main-nav .nav-links li {
    margin-left: 40px;
}

.main-nav .nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

.main-nav .nav-links a:hover {
    color: var(--white);
}

.main-nav .nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-orange);
    transition: width 0.4s ease-in-out;
}

.main-nav .nav-links a:hover::after {
    width: 100%;
}

.header-buttons {
    margin-left: 40px;
}

.custom-btn, .btn-outline-light {
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease-in-out;
    z-index: 1;
}

.custom-btn::before, .btn-outline-light::before {
    content: "";
    position: absolute;
    height: 100%;
    width: 0%;
    top: 0;
    left: -50px;
    transform: skewX(45deg);
    z-index: -1;
    transition: all 0.8s cubic-bezier(0.7, 0, 0.2, 1);
}

.custom-btn {
    background-color: var(--primary-orange);
    border-color: var(--primary-orange);
}

.custom-btn::before {
    background-color: var(--primary-orange);
}

.btn-outline-light::before {
    background-color: var(--white);
}

.custom-btn:hover, .custom-btn:focus {
    color: var(--white);
    background-color: var(--primary-orange);
    border-color: var(--primary-orange);
}

.btn-outline-light:hover, .btn-outline-light:focus {
    color: var(--dark-grey);
    border-color: var(--white);
}

.menu-icon, #menu-toggle {
    display: none;
}

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

#bgvideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.1);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

.hero-section h1 {
    font-size: 4.5rem;
    color: var(--white);
    line-height: 1.1;
    font-weight: 700;
}

.hero-image-placeholder img {
    animation: floating 3s ease-in-out infinite alternate;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-15px); }
}

.service-card, .testimonial-card, .contact-form-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

#intro {
    position: relative;
    background-color: var(--dark-grey);
    overflow: hidden;
    color: var(--white);
    padding: 8rem 0;
}

#intro .text-highlight {
    color: var(--primary-orange);
}

.intro-background-shape {
    content: '';
    position: absolute;
    top: -50%;
    right: -25%;
    width: 100%;
    height: 150%;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    z-index: 0;
}

#intro .container {
    position: relative;
    z-index: 1;
}

.btn-outline-custom {
    color: var(--white);
    border: 2px solid var(--white);
    padding: 0.8rem 2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    color: var(--white);
    background-color: var(--primary-orange);
    border-color: var(--primary-orange);
}

#nosotros {
    min-height: 90vh;
    display: flex;
    align-items: center;
}

#nosotros .col-lg-6:first-child {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-item-stacked {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.feature-icon-stacked {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    margin-right: 1.5rem;
    background-color: rgba(255, 140, 0, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-orange);
    font-size: 1.5rem;
}

.feature-content-stacked p {
    color: var(--text-color);
    margin-bottom: 0;
}

.image-collage {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 150px);
    gap: 1rem;
    height: 100%;
}

.collage-item {
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.collage-item:hover img {
    transform: scale(1.05);
}

.collage-item.item-1 { grid-column: 1 / 2; grid-row: 1 / 2; }
.collage-item.item-2 { grid-column: 2 / 3; grid-row: 1 / 3; }
.collage-item.item-3 { grid-column: 1 / 2; grid-row: 2 / 4; }
.collage-item.item-4 { grid-column: 2 / 3; grid-row: 3 / 4; }

#quote {
    padding: 6rem 0;
    border-top: 1px solid #fff;
    border-bottom: 1px solid #fff;
}

#quote .quote-card {
    background-color: transparent;
}

#quote .blockquote p {
    color: #fff;
    font-weight: 500;
}

#quote .blockquote-footer {
    color: #fff;
    font-size: 1.2rem;
}

.testimonial-card-container {
    padding: 10px;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-height: 380px;
}

.testimonial-card p {
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.glider-contain {
    position: relative;
}

.glider-prev, .glider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.glider-prev:hover, .glider-next:hover {
    background-color: var(--primary-orange);
    color: var(--white);
}

.glider-prev { left: -20px; }
.glider-next { right: -20px; }

.dots {
    text-align: center;
    margin-top: 25px;
}

.glider-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    margin: 0 5px;
    transition: background 0.3s ease;
}

.glider-dot.active {
    background: var(--primary-orange);
}

#cta {
    position: relative;
    padding: 8rem 0;
    color: var(--white);
    background: url('../muiltimedia/contacto_img.jpg') no-repeat center center/cover fixed;
}

#cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 26, 46, 0.7);
    z-index: 1;
}

#cta .container {
    position: relative;
    z-index: 2;
}

#cta h2, #cta p {
    color: var(--white);
}

.contact-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    color: var(--white);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2.5rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    margin-right: 1.5rem;
    color: var(--primary-orange);
}

.contact-text h3 {
    margin-bottom: 0.5rem;
}

.contact-text p {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.contact-text a {
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.contact-text a:hover {
    opacity: 0.8;
}

#contacto .form-control {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--white);
    padding: 0.8rem 1rem;
}

#contacto .form-control:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 0.25rem rgba(255, 140, 0, 0.25);
}

#contacto textarea {
    resize: none;
}

#contacto .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.button {
    position: relative;
    transition: all 0.3s ease-in-out;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
    padding-block: 0.75rem;
    padding-inline: 1.25rem;
    background-color: var(--primary-orange);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    gap: 10px;
    font-weight: bold;
    border: 3px solid rgba(255, 255, 255, 0.3);
    outline: none;
    overflow: hidden;
    font-size: 16px;
    cursor: pointer;
}

.button .icon {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease-in-out;
}

.button:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.6);
}

.button:hover .icon {
    transform: translate(4px);
}

.button:hover::before {
    animation: shine 1.5s ease-out infinite;
}

.button::before {
    content: "";
    position: absolute;
    width: 100px;
    height: 100%;
    background-image: linear-gradient(120deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0) 70%);
    top: 0;
    left: -100px;
    opacity: 0.6;
}

@keyframes shine {
    0% { left: -100px; }
    60% { left: 100%; }
    to { left: 100%; }
}

.main-footer {
    background-color: var(--dark-grey);
    color: var(--text-color);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.main-footer a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.main-footer a:hover {
    color: var(--primary-orange);
}

.main-footer .logo-img-footer {
    max-height: 40px;
    margin-bottom: 10px;
}

.main-footer h5 {
    color: var(--white);
}

#page-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-grey);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

#main-content {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.loader-container {
    text-align: center;
    color: var(--white);
}

.loader-text {
    margin-top: 15px;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.three-body {
    --uib-size: 45px;
    --uib-speed: 1s;
    --uib-color: var(--primary-orange);
    position: relative;
    display: inline-block;
    height: var(--uib-size);
    width: var(--uib-size);
    animation: spin78236 calc(var(--uib-speed) * 2.5) infinite linear;
}

.three-body__dot {
    position: absolute;
    height: 100%;
    width: 30%;
}

.three-body__dot:after {
    content: '';
    position: absolute;
    height: 0%;
    width: 100%;
    padding-bottom: 100%;
    background-color: var(--uib-color);
    border-radius: 50%;
}

.three-body__dot:nth-child(1) { bottom: 5%; left: 0; transform: rotate(60deg); transform-origin: 50% 85%; }
.three-body__dot:nth-child(1)::after { bottom: 0; left: 0; animation: wobble1 var(--uib-speed) infinite ease-in-out; animation-delay: calc(var(--uib-speed) * -0.3); }
.three-body__dot:nth-child(2) { bottom: 5%; right: 0; transform: rotate(-60deg); transform-origin: 50% 85%; }
.three-body__dot:nth-child(2)::after { bottom: 0; left: 0; animation: wobble1 var(--uib-speed) infinite calc(var(--uib-speed) * -0.15) ease-in-out; }
.three-body__dot:nth-child(3) { bottom: -5%; left: 0; transform: translateX(116.666%); }
.three-body__dot:nth-child(3)::after { top: 0; left: 0; animation: wobble2 var(--uib-speed) infinite ease-in-out; }

@keyframes spin78236 {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes wobble1 {
    0%, 100% { transform: translateY(0%) scale(1); opacity: 1; }
    50% { transform: translateY(-66%) scale(0.65); opacity: 0.8; }
}

@keyframes wobble2 {
    0%, 100% { transform: translateY(0%) scale(1); opacity: 1; }
    50% { transform: translateY(66%) scale(0.65); opacity: 0.8; }
}

#form-status-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 26, 46, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#form-status-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.status-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    color: var(--white);
}

.status-card p {
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: 500;
}

.form-loader {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--primary-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.hidden {
    opacity: 0;
    filter: blur(5px);
    transform: translateX(-50%);
    transition: all 1s;
}

.show {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0);
}

.hired-title {
    color: var(--white);
}

.hired-title-red {
    color: var(--primary-orange);
}

.typed-cursor {
    color: var(--primary-orange);
    font-weight: bold;
}

@media (max-width: 991px) {
    .nav-container {
        display: none;
        position: fixed;
        top: 95px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: rgb(26, 26, 46);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 20px 0;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    #menu-toggle:checked ~ .nav-container {
        display: flex;
        opacity: 1;
    }

    .main-nav .nav-links {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .main-nav .nav-links li {
        margin: 20px 0;
        font-size: 1.5rem;
    }
    
    .header-buttons {
        margin-left: 0;
        margin-top: 30px;
    }

    .menu-icon {
        display: block;
        color: var(--white);
        font-size: 1.8rem;
        cursor: pointer;
        z-index: 1;
    }
    
    .hero-section h1 { font-size: 2.8rem; }
    .glider-prev, .glider-next { display: none; }

    .contact-details {
        margin-bottom: 3rem;
    }
    
    #nosotros {
        min-height: auto;
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    .image-collage {
        grid-template-rows: repeat(4, 180px);
    }

    .collage-item.item-1 { grid-column: 1 / 3; grid-row: 1 / 2; }
    .collage-item.item-2 { grid-column: 1 / 3; grid-row: 2 / 3; }
    .collage-item.item-3 { grid-column: 1 / 3; grid-row: 3 / 4; }
    .collage-item.item-4 { grid-column: 1 / 3; grid-row: 4 / 5; }
}

/* --- Estilos para la Sección de Proyectos (Mejoras Móviles) --- */
.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    height: 250px;
    margin: 0 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    cursor: pointer;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-info-mobile {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
    padding: 1rem;
    color: var(--white);
    text-align: left;
    z-index: 5;
    pointer-events: none;
}

.project-info-mobile h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.project-info-mobile p {
    font-size: 0.85rem;
    line-height: 1.3;
    color: var(--text-color);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 10;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover img {
    transform: scale(1.05);
}

@media (max-width: 767.98px) {
    .project-overlay {
        display: none;
    }
    .project-card:hover img {
        transform: none;
    }
}

.prev-proyectos { left: -25px; }
.next-proyectos { right: -25px; }

/* --- Estilos para el Modal de Imagen --- */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.modal-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {transform: scale(0.8);}
    to {transform: scale(1);}
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-modal:hover, .close-modal:focus {
    color: #bbb;
    text-decoration: none;
}

.modal-caption {
    width: 80%;
    max-width: 800px;
    text-align: center;
    color: #ccc;
    padding-top: 15px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

#modal-title {
    margin-bottom: 10px;
    color: var(--white);
    font-weight: bold;
}

#modal-description {
    line-height: 1.5;
    color: var(--text-color);
}

.saber-mas-link {
    color: var(--primary-orange);
    font-weight: 500;
    font-size: 0.9rem;
    display: block;
    margin-top: 0.5rem;
}

/* --- Estilos Mejorados para el Modal de Servicios --- */
.service-card {
    display: flex;
    flex-direction: column;
}

.service-card p {
    flex-grow: 1;
}

.service-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.service-modal-content {
    background: var(--dark-grey);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: auto;
    padding: 30px 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    animation: zoomIn 0.3s ease;
    text-align: center;
}

.service-modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem auto;
    background-color: rgba(255, 140, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-orange);
    font-size: 2.5rem;
}

.close-service-modal {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-service-modal:hover,
.close-service-modal:focus {
    color: var(--white);
    text-decoration: none;
}

#service-modal-title {
    color: var(--primary-orange);
    margin-bottom: 1rem;
    font-size: 2rem;
}

#service-modal-description {
    color: var(--text-color);
    line-height: 1.7;
}

.service-modal-features li {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    text-align: left;
}

.service-modal-features li i {
    color: var(--primary-orange);
    margin-right: 10px;
}

/* --- Estilos para el Modal de Aviso de Privacidad --- */

#privacy-link {
    cursor: pointer;
    text-decoration: underline;
}

.privacy-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.privacy-modal-content {
    background: var(--dark-grey);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: auto;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    animation: zoomIn 0.3s ease;
}

.privacy-modal-body {
    padding: 40px 50px;
    max-height: 80vh;
    overflow-y: auto;
}

.close-privacy-modal {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10;
}

.close-privacy-modal:hover,
.close-privacy-modal:focus {
    color: var(--white);
    text-decoration: none;
}

/* --- Estilos para el Carrusel Infinito de Clientes --- */
.client-carousel {
    overflow: hidden;
    position: relative;
    width: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent, white 20%, white 80%, transparent);
    mask-image: linear-gradient(to right, transparent, white 20%, white 80%, transparent);
}

.carousel-track {
    display: flex;
    /* Ancho total: (5 logos * 180px) + (1 logo * 260px) ... todo por 2 */
    width: calc((180px * 5 + 260px) * 2); 
    animation: scroll 30s linear infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Se desplaza el ancho del set original, incluyendo el margen extra */
        transform: translateX(calc(-180px * 5 - 260px)); 
    }
}

.client-carousel:hover .carousel-track {
    animation-play-state: paused;
}

.slide {
    width: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    flex-shrink: 0;
}

/* Espacio extra para el último logo del set */
.slide.last-in-set {
    width: 260px; /* Ancho aumentado para crear el espacio extra */
}

.client-logo {
    height: 60px;
    width: auto;
    filter: grayscale(100%) brightness(2);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.slide:hover .client-logo {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
    transform: scale(1.1);
}

/* --- Estilos para el efecto de Cubo 3D en la sección "Por qué elegir hiRed?" --- */
.cube-container {
    width: 300px; /* Tamaño del cubo */
    height: 300px;
    perspective: 1000px; /* Perspectiva 3D para el efecto */
    margin: 40px auto; /* Centrar y dar un poco de margen */
    display: flex; /* Para centrar el cubo dentro del contenedor */
    align-items: center;
    justify-content: center;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d; /* Esencial para el 3D */
    animation: rotateCube 15s infinite linear; /* Animación de rotación */
}

/* Detener la animación al pasar el mouse */
.cube-container:hover .cube {
    animation-play-state: paused;
}

.cube-face {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.05); /* Fondo semitransparente por si la imagen no cubre todo */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Borde sutil */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Asegura que la imagen no se desborde */
}

.cube-face img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cubre la cara sin distorsionar */
    display: block; /* Elimina espacios extra debajo de la imagen */
}

/* Posicionamiento y rotación de cada cara del cubo */
.cube-face.front  { transform: rotateY(  0deg) translateZ(150px); } /* 150px es la mitad del width/height */
.cube-face.right  { transform: rotateY( 90deg) translateZ(150px); }
.cube-face.back   { transform: rotateY(180deg) translateZ(150px); }
.cube-face.left   { transform: rotateY(-90deg) translateZ(150px); }


/* Animación de rotación del cubo */
@keyframes rotateCube {
    0%   { transform: rotateY(0deg); }
    25%  { transform: rotateY(90deg); }
    50%  { transform: rotateY(180deg); }
    75%  { transform: rotateY(270deg); }
    100% { transform: rotateY(360deg); }
}

/* Ajustes para dispositivos más pequeños */
@media (max-width: 768px) {
    .cube-container {
        width: 250px;
        height: 250px;
        margin: 30px auto;
    }
    .cube-face.front  { transform: rotateY(  0deg) translateZ(125px); }
    .cube-face.right  { transform: rotateY( 90deg) translateZ(125px); }
    .cube-face.back   { transform: rotateY(180deg) translateZ(125px); }
    .cube-face.left   { transform: rotateY(-90deg) translateZ(125px); }
}

/* --- Estilos para el Efecto de Botón con Barrido de Color --- */

.button-effect {
    position: relative;
    overflow: hidden;
    height: 3rem;
    padding: 0 2rem;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.1); /* Fondo inicial semitransparente */
    background-size: 400%;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 500;
}

.button-effect:hover::before {
    transform: scaleX(1);
}

.button-effect .button-content {
    position: relative;
    z-index: 1;
}

.button-effect::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    transform: scaleX(0);
    transform-origin: 0 50%;
    width: 100%;
    height: inherit;
    border-radius: inherit;
    background: var(--primary-orange); /* Usamos tu color naranja para el efecto */
    transition: all 0.475s;
}

/* --- Estilos para los botones del Hero en móvil --- */
@media (max-width: 576px) {
    .hero-buttons {
        display: flex;
        justify-content: center;
        gap: 1em; /* Espacio de 1em entre los botones */
    }

    .hero-buttons .button-effect {
        padding: 0 1.5rem; /* Ajusta el padding para que el texto no se comprima */
        font-size: 0.9rem; /* Reduce un poco el tamaño de la fuente */
        flex-shrink: 0; /* Evita que los botones se encojan demasiado */
    }
}

/* --- Estilos para el Chatbox --- */

.chatbox-icon {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-orange);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1050;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.chatbox-icon:hover {
    transform: scale(1.1);
}

.chatbox-container {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 90%;
    max-width: 370px;
    background: var(--dark-grey);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.chatbox-container.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chatbox-header {
    background: rgba(0,0,0,0.2);
    padding: 1rem;
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.chatbox-close {
    font-size: 1.5rem;
    cursor: pointer;
    color: #aaa;
    transition: color 0.3s;
}

.chatbox-close:hover {
    color: var(--white);
}

.chatbox-messages {
    padding: 1rem;
    height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-message {
    padding: 0.75rem 1rem;
    border-radius: 15px;
    max-width: 80%;
    line-height: 1.4;
}

.chat-message.bot {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    align-self: flex-start;
    border-bottom-left-radius: 3px;
}

.chat-message.user {
    background-color: var(--primary-orange);
    color: var(--white);
    align-self: flex-end;
    border-bottom-right-radius: 3px;
}

.chat-message ol {
    padding-left: 20px;
    margin: 10px 0 0 0;
}

.chat-message ol li {
    margin-bottom: 5px;
}

.chatbox-input {
    display: flex;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#chat-input {
    flex-grow: 1;
    border: none;
    background: rgba(0,0,0,0.2);
    padding: 0.75rem;
    border-radius: 10px;
    color: var(--white);
    margin-right: 10px;
}

#chat-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-orange);
}

#send-chat-btn {
    border: none;
    background: var(--primary-orange);
    color: var(--white);
    width: 45px;
    height: 45px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.2rem;
}


/* --- Estilos para el Botón Flotante de Cotización (Siempre Centrado) --- */

/* Espacio reservado al final de la página para el botón */
body {
    padding-bottom: 100px;
}

#floating-quote-btn {
    position: fixed;
    z-index: 1045;
    bottom: 20px; /* Posicionado en la parte inferior */
    left: 50%;
    transform: translateX(-50%); /* Ajuste fino para el centrado exacto */
    background-color: var(--primary-orange);
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    white-space: nowrap;
    animation: pulse-orange 2s infinite;
    transition: transform 0.3s ease;
    text-align: center;
}

#floating-quote-btn:hover {
    transform: translateX(-50%) scale(1.05); /* Mantenemos el centrado al hacer hover */
}

/* Animación de pulso para llamar la atención */
@keyframes pulse-orange {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 140, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 140, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 140, 0, 0);
    }
}

@media (max-width: 576px) {
    #floating-quote-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.8rem;
        white-space: normal;
        line-height: 1.2;
    }
}

#floating-whatsapp-btn {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 1045;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    text-decoration: none;
    animation: pulse-green 2s infinite;
    transition: transform 0.3s ease;
}

#floating-whatsapp-btn:hover {
    transform: scale(1.1);
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}