:root {
    --azul: #0A192F;
    --amarillo: #D4AF37;
    --blanco: #ffffff;
    --gris-claro: #F8F9FA;
    --texto-oscuro: #333333;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-3d: 0 25px 50px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

html,
body {
    line-height: 1.6;
    color: var(--texto-oscuro);
    background-color: var(--blanco);
    overflow-x: hidden;
    width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6,
.logo {
    font-family: 'Poppins', sans-serif;
}

/* --- Navbar --- */
nav {
    background-color: rgba(10, 25, 47, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--blanco);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 10%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.logo img {
    max-height: 80px;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
    flex: 1;
    justify-content: center;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: var(--blanco);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--amarillo);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-nav {
    background: var(--amarillo);
    color: var(--azul);
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-nav:hover {
    background: var(--blanco);
    transform: scale(1.05);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    height: 75vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    color: var(--blanco);
    padding: 0 10%;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    max-width: 800px;
    line-height: 1.1;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.btn-cta {
    background-color: var(--amarillo);
    color: var(--blanco);
    padding: 18px 35px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-cta:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 25px rgba(212, 175, 55, 0.4);
    background-color: #e3be47;
}

/* --- Sections --- */
section {
    padding: 100px 10%;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--azul);
    position: relative;
}

h2::after {
    content: '';
    width: 60px;
    height: 4px;
    background: var(--amarillo);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* --- About Us --- */
.about {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-content {
    flex: 1;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 35px;
    box-shadow: var(--shadow-3d);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid var(--glass-border);
}

.about-content:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 20px 20px 0 var(--amarillo);
}

/* --- Services --- */
.services {
    background-color: var(--gris-claro);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.service-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 50px 30px;
    text-align: center;
    border-radius: 35px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-3d);
}

.service-card:hover {
    box-shadow: 0 30px 60px rgba(10, 25, 47, 0.2);
    border-color: var(--amarillo);
}

.service-card i {
    font-size: 3rem;
    color: var(--azul);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
}

/* --- Contact --- */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.info-item {
    margin-bottom: 25px;
}

.info-item h3 {
    color: var(--azul);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.info-item i {
    color: var(--amarillo);
}

.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.payment-methods span {
    background: #e9ecef;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
    color: var(--azul);
    font-size: 0.9rem;
}

.cta-box {
    background: var(--azul);
    color: var(--blanco);
    padding: 30px;
    border-radius: 10px;
    margin-top: 20px;
}

.cta-box h3 {
    color: var(--amarillo);
    margin-bottom: 10px;
}

/* --- Footer --- */
footer {
    background-color: var(--azul);
    color: var(--blanco);
    padding: 60px 10% 20px 10%;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: left;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 40px;
}

.footer-logo img {
    max-height: 120px;
    width: auto;
    margin-bottom: 15px;
}

.footer-col h3 {
    color: var(--amarillo);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--blanco);
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s;
}

.footer-col ul li a:hover {
    opacity: 1;
    color: var(--amarillo);
    padding-left: 5px;
}

.footer-col p {
    margin-bottom: 10px;
    opacity: 0.8;
}

.footer-col .payment-methods span {
    background: rgba(255, 255, 255, 0.1);
    color: var(--blanco);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-logo img {
    max-height: 60px;
    width: auto;
    margin-bottom: 15px;
}

.copyright {
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.6;
}

/* --- Page Specific Styles --- */

/* Page Headers */
.page-header {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    color: var(--blanco);
    text-align: center;
    padding: 100px 20px;
}

.parallax-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -2;
}

.page-header .overlay,
.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 51, 102, 0.8));
    z-index: -1;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* About Us Layouts */
.about-extended {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.about-section-row {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-section-row:nth-child(even) {
    flex-direction: row-reverse;
}

.about-section-row img {
    flex: 1;
    width: 100%;
    border-radius: 10px;
    box-shadow: 10px 10px 0 var(--amarillo);
    max-height: 400px;
    object-fit: cover;
}

.about-section-row .content {
    flex: 1;
    background: var(--blanco);
    padding: 40px;
    border-radius: 35px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.about-section-row .content:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Detailed Services */
.service-detail {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    background: var(--blanco);
    padding: 40px;
    border-radius: 35px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.service-detail:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.service-detail:nth-child(even) {
    flex-direction: row-reverse;
}

.service-detail img {
    width: 45%;
    border-radius: 10px;
    height: 300px;
    object-fit: cover;
}

.service-detail .desc {
    width: 55%;
}

.service-detail .desc h3 {
    color: var(--azul);
    font-size: 2rem;
    margin-bottom: 15px;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-gap: 15px;
}

.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    content-visibility: auto;
    contain-intrinsic-size: 250px;
}

.gallery-grid img.hidden-image {
    display: none !important;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

/* Contact Form & Map */
.contact-form {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 50px;
    border-radius: 35px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.contact-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 35px 60px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--azul);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 18px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    background-color: var(--gris-claro);
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--amarillo);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.form-group textarea {
    resize: vertical;
    height: 120px;
}

.btn-submit {
    background-color: var(--azul);
    color: var(--blanco);
    padding: 18px 30px;
    border: none;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
    width: 100%;
}

.btn-submit:hover {
    background-color: var(--amarillo);
    color: var(--azul);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.map-container {
    margin-top: 50px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: 0;
    display: block;
}

/* Process Section (Services Page) */
.process-section {
    background-color: var(--gris-claro);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.process-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px 20px 20px 20px;
    border-radius: 35px;
    box-shadow: var(--shadow-3d);
    position: relative;
    text-align: center;
    border-bottom: 4px solid var(--amarillo);
    border-left: 1px solid var(--glass-border);
    border-right: 1px solid var(--glass-border);
    border-top: 1px solid var(--glass-border);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.process-card:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.process-card .step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--azul);
    color: var(--amarillo);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.2rem;
    border: 4px solid var(--gris-claro);
}

.process-card i {
    font-size: 2.5rem;
    color: var(--azul);
    margin-bottom: 15px;
}

.process-card h3 {
    margin-bottom: 10px;
    color: var(--azul);
}

/* Core Values Section */
.core-values {
    background: linear-gradient(rgba(10, 25, 47, 0.85), rgba(10, 25, 47, 0.85)), url('imagenes/imagen (16).jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--blanco);
    text-align: center;
}

.core-values h2 {
    color: var(--blanco);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.value-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 35px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.4s ease, box-shadow 0.4s ease;
}

.value-card:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.value-card i {
    font-size: 2.5rem;
    color: var(--amarillo);
    margin-bottom: 15px;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

/* Floating Buttons */
.floating-btn {
    position: fixed;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    text-decoration: none;
    color: var(--blanco);
}

.floating-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    color: var(--blanco);
}

.floating-fb {
    bottom: 30px;
    background-color: #1877F2;
}

.floating-wa {
    bottom: 100px;
    background-color: #25D366;
}

.floating-gmail {
    bottom: 170px;
    background-color: #D44638;
}

/* --- Gallery Lightbox --- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--blanco);
    font-size: 3rem;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--amarillo);
}

/* --- Menu Toggle (Desktop Hidden) --- */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--blanco);
    cursor: pointer;
    z-index: 1001;
}

/* Responsive */
@media (max-width: 992px) {
    .about {
        flex-direction: column;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .about-section-row,
    .service-detail {
        flex-direction: column;
    }

    .about-section-row:nth-child(even),
    .service-detail:nth-child(even) {
        flex-direction: column;
    }

    .about-section-row img,
    .service-detail img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .service-detail .desc {
        width: 100%;
    }

    section {
        padding: 60px 5%;
    }
}

@media (max-width: 768px) {

    /* Navbar Hamburger */
    .menu-toggle {
        display: block;
    }

    .btn-nav {
        display: none;
    }

    nav {
        padding: 15px 5%;
    }

    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background-color: var(--azul);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
        margin: 0;
    }

    nav ul.nav-active {
        right: 0;
    }

    nav ul li {
        margin: 20px 0;
    }

    /* Typography & Sections */
    .hero h1,
    .page-header h1 {
        font-size: 2.5rem;
    }

    .hero p,
    .page-header p {
        font-size: 1rem;
    }

    /* Mobile Text Hide */
    .mobile-hide {
        display: none !important;
    }

    /* Adjust Floating Buttons for Mobile */
    .floating-btn {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
        right: 15px;
    }

    .floating-fb {
        bottom: 15px;
    }

    .floating-wa {
        bottom: 75px;
    }

    .floating-gmail {
        bottom: 135px;
    }

    .about h2,
    .services h2,
    .core-values h2 {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-card,
    .value-card,
    .service-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {

    .hero h1,
    .page-header h1 {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }
}

/* --- Advanced UI Enhancements --- */

/* Parallax Background */
.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-size: cover;
    background-position: center;
    z-index: -1;
    will-change: transform;
}

/* Glassmorphism Orb */
.glass-orb {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--amarillo) 0%, rgba(212, 175, 55, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.5;
    pointer-events: none;
}

/* Text Reveal Animation */
.text-reveal {
    clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0% 100%);
    opacity: 0;
    transform: translateY(50px);
    animation: revealAnimation 1.2s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

@keyframes revealAnimation {
    100% {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        opacity: 1;
        transform: translateY(0);
    }
}

/* 3D Interactivity */
.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
}

.tilt-card>* {
    transform: translateZ(30px);
}

/* 3D Reveal */
.reveal-3d {
    opacity: 0;
    transform: perspective(2000px) rotateX(-15deg) translateY(80px) scale(0.9);
    transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 1.2s ease;
}

.reveal-3d.visible {
    opacity: 1;
    transform: perspective(2000px) rotateX(0) translateY(0) scale(1);
}

/* Floating Shapes for Parallax */
.floating-shape {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    opacity: 0.3;
    filter: blur(40px);
    border-radius: 50%;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--amarillo);
    top: 10%;
    left: -100px;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: var(--azul);
    bottom: 20%;
    right: -50px;
}