/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    line-height: 1.8;
    letter-spacing: 0.25px;
    color: #f8f9fa;
    background-color: #172740;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
}

h3 {
    font-size: 1.875rem;
    font-weight: 600;
}

/* Navigation */
.navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    backdrop-filter: blur(8px);
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #f8f9fa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-logo:hover {
    color: #196fb6;
}

.nav-logo img {
    height: 3rem;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: filter 0.3s ease;
    animation: logo-glow 3s ease-in-out infinite;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    color: #f8f9fa;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #196fb6;
}

.nav-cta {
    background: #25D366;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.nav-cta:hover {
    background: #128C7E;
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(25, 111, 182, 0.8) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 2rem;
    color: white;
}

.hero-title {
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-button {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    font-size: 1.125rem;
}

.hero-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Hero Arrow */
.hero-arrow {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    text-decoration: none;
    animation: bounce-down 1.5s infinite;
    z-index: 3;
    transition: opacity 0.3s ease;
}

.v-arrow {
    width: 100%;
    height: 100%;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.hero-arrow:hover .v-arrow {
    opacity: 0.8;
}

/* Bounce animation for arrow */
@keyframes bounce-down {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-8px);
    }
    60% {
        transform: translateX(-50%) translateY(-4px);
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    color: #f8f9fa;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #196fb6;
    margin: 1rem auto 0;
}

/* Portfolio Section */
.portfolio {
    padding: 6rem 2rem;
    background: #154377;
    overflow-x: hidden;
}

.portfolio .container {
    max-width: none;
    margin: 0;
    padding: 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: -15px; /* negative gap creates 15px overlap */
    max-width: 1000px; /* increased from 800px */
    margin: 0 auto;
    padding: 0 2rem;
}

.project-card {
    position: relative;
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    aspect-ratio: 16/9; /* maintains 16:9 ratio */
}

.project-card:nth-child(1) {
    z-index: 1;
}

.project-card:nth-child(2) {
    margin-left: -15px;
    margin-right: -15px;
    margin-top: 15px; /* move second video down by 15px */
    z-index: 2;
}

.project-card:hover {
    transform: scale(1.02);
}

.project-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* VR Image Coming from Right Side */
.vr-image {
    position: absolute;
    top: 50%;
    right: -50px;
    transform: translateY(-50%);
    width: 300px;
    height: auto;
    object-fit: contain;
    z-index: -10;
    box-shadow: none !important;
    filter: none !important;
    border: none;
}



/* Benefits Section */
.benefits {
    position: relative;
    z-index: 5;
    padding: 6rem 0;
    background: #172740;
    overflow-x: hidden;
}

.benefits-wrapper {
    background: #172740 url('assets/img/Asset_VR.png') right bottom / 600px auto no-repeat;
}

.benefits-wrapper .benefits {
    background: none;
}

.before-after-comparison {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 4rem;
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Before and After Sections */
.before-section,
.after-section {
    background: transparent;
    transition: transform 0.3s ease;
}

.before-section:hover,
.after-section:hover {
    transform: translateY(-2px);
}

/* Comparison Labels */
.comparison-label {
    text-align: center;
    color: #f8f9fa;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Arrow Styles */
.arrow-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.comparison-arrow-svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    filter: brightness(0) saturate(100%) invert(33%) sepia(70%) saturate(2002%) hue-rotate(209deg) brightness(93%);
    animation: pulsate-arrow 0.8s ease-out infinite;
}

/* Pulsating animation for the arrow */
@keyframes pulsate-arrow {
    0% {
        transform: translate(-50%, -50%) scale(1);
        filter: brightness(0) saturate(100%) invert(33%) sepia(70%) saturate(2002%) hue-rotate(209deg) brightness(93%) drop-shadow(0 0 5px rgba(25, 111, 182, 0.5));
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        filter: brightness(0) saturate(100%) invert(33%) sepia(70%) saturate(2002%) hue-rotate(209deg) brightness(93%) drop-shadow(0 0 20px rgba(25, 111, 182, 1));
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        filter: brightness(0) saturate(100%) invert(33%) sepia(70%) saturate(2002%) hue-rotate(209deg) brightness(93%) drop-shadow(0 0 5px rgba(25, 111, 182, 0.5));
    }
}

/* Subtle logo glow animation */
@keyframes logo-glow {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5)) drop-shadow(0 0 16px rgba(255, 255, 255, 0.25));
    }
    50% {
        filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.6)) drop-shadow(0 0 24px rgba(255, 255, 255, 0.3));
    }
}

/* Images Zone Styles */
.images-zone {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: -15px; /* negative gap creates 15px overlap */
    max-width: 600px;
    margin: 0 auto;
}

/* Individual Image Container Styles */
.image-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.image-container:nth-child(1) {
    z-index: 1;
    aspect-ratio: 16/9;
}

.image-container:nth-child(2) {
    margin-left: -15px;
    margin-right: -15px;
    margin-top: 15px; /* move second image down by 15px */
    z-index: 2;
}

.image-container:hover {
    transform: translateY(-2px);
}

/* Individual Image Styles */
.individual-image {
    width: 100%;
    object-fit: cover;
    opacity: 1;
    transition: transform 0.3s ease;
    display: block; /* Eliminates bottom spacing common with inline images */
}

.image-container:hover .individual-image {
    transform: scale(1.05);
}

/* VR Video Styles */
.after-section {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
}

.vr-video {
    width: 100%;
    max-width: 500px;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.vr-video:hover {
    transform: scale(1.02);
}

/* Closing Section */
.closing {
    padding: 6rem 0;
    background: linear-gradient(135deg, #172740 0%, #154377 100%);
    text-align: center;
}

.closing-text {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    color: #f8f9fa;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    max-width: 800px;
    margin: 0 auto;
}

/* Contact Form */
.contact-form {
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #f8f9fa;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #495057;
    border-radius: 6px;
    background: #fdb0ad !important; /* added for dark */
    color: #333;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #196fb6;
    box-shadow: 0 0 0 3px rgba(25, 111, 182, 0.1);
}

.submit-button {
    background: #25D366;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.submit-button:hover {
    background: #128C7E;
    transform: translateY(-1px);
}

.whatsapp-button {
    max-width: 300px;
    margin: 0 auto;
    position: relative;
}

/* Contact Info */
.contact-info {
    text-align: left;
}

.contact-link {
    color: #196fb6;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #154377;
}

.contact-details {
    color: #adb5bd;
}

.contact-details p {
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    padding: 2rem 0;
    background: #172740;
    color: #f8f9fa;
    text-align: center;
}

/* Minimalist Blue Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #196fb6;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #154377;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
    }

    .nav-menu {
        display: none; /* Mobile menu implementation would go here */
    }

    .hero-content {
        padding: 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .portfolio-grid {
        max-width: 880px; /* adjusted for new 1000px base */
        gap: -12px; /* reduced overlap on tablet */
        padding: 0 1rem;
    }

    .project-card:nth-child(2) {
        margin-left: -12px;
        margin-right: -12px;
        margin-top: 12px; /* reduced vertical offset for tablet */
    }



    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .before-after-comparison {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .arrow-section {
        display: none;
    }

    .images-zone {
        gap: -12px; /* reduced overlap on tablet */
        max-width: 400px;
    }

    .image-container:nth-child(1) {
        margin-bottom: -12px;
        z-index: 1;
    }

    .image-container:nth-child(2) {
        margin-left: -12px;
        margin-right: -12px;
        margin-top: 12px; /* reduced vertical offset for tablet */
        z-index: 2;
    }



    .vr-video {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.875rem;
    }

    h2 {
        font-size: 1.875rem;
    }

    .hero {
        height: 80vh;
    }

    .container {
        padding: 0 1rem;
    }

    .portfolio-grid {
        max-width: 95%;
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .project-card:nth-child(1) {
        margin-bottom: -0.5rem;
        margin-left: 0;
        z-index: 2;
    }

    .project-card:nth-child(2) {
        margin-left: 0;
        margin-top: 0.5rem;
        margin-bottom: -0.5rem;
        z-index: 1;
    }

    .images-zone {
        max-width: 95%;
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .image-container:nth-child(1) {
        margin-bottom: -0.5rem;
        margin-left: 0;
        z-index: 2;
    }

    .image-container:nth-child(2) {
        margin-left: 0;
        margin-top: 0.5rem;
        margin-bottom: -0.5rem;
        z-index: 1;
    }


}

/* Loading and Interaction States */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Video poster styling - hide all controls for GIF-like appearance */
.project-video {
    cursor: pointer;
    pointer-events: auto;
}

/* Ensure video controls are completely hidden */
.project-video::-webkit-media-controls-panel,
.project-video::-webkit-media-controls {
    display: none !important;
}

.project-video::-webkit-media-controls-start-playback-button {
    display: none !important;
}

.project-video::-moz-media-controls-panel {
    display: none !important;
}

.project-video:focus {
    outline: none;
}

.servicios-hero {
    height: 80vh;
    background: linear-gradient(135deg, #172740 0%, #154377 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.section-subtitle {
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
    color: #f8f9fa;
    line-height: 1.4;
}

.highlight {
    color: #87CEEB;
    font-weight: 600;
}

/* Highlight in paragraphs - transparent marker style */
p .highlight {
    color: inherit;
    font-weight: normal;
    background-color: rgba(135, 206, 235, 0.4);
    padding: 0 2px;
    border-radius: 2px;
}

/* Additional spacing for servicios page content */
.benefits .container p {
    margin-bottom: 1.5rem;
    color: #e9ecef;
}

/* Justify text in beneficios section */
#beneficios p {
    text-align: justify;
}

.submitting {
    opacity: 0.6;
    pointer-events: none;
}

.submitting::after {
    content: ' Enviando...';
}

/* Servicios VR Image Styling */
.services-vr-image {
    width: 1200px;
    height: auto;
    display: block;
    margin: 2rem auto;
    object-fit: contain;
}
