:root {
    --bg-primary: #0D2F4B;
    --cta-primary: #FF1A2B;
    /* Brighter red for better visibility */
    --text-on-light: #B2B0B0;
    --text-white: #ffffff;
}

/* Global Reset & Typography */
@import url('https://fonts.googleapis.com/css2?family=Google+Sans');

/* For specific text looks */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    height: 100%;
    font-family: 'Google Sans', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-white);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Header / Navigation */
header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    height: 80px;
    /* Force a consistent smaller height */
}

.header-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header-social-link {
    color: #fff;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}

.header-social-link:hover {
    color: var(--cta-primary);
    transform: scale(1.1);
    text-decoration: underline !important;
}

/* Hamburger Button */
.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 1100;
    /* Above sidebar if needed, though sidebar has close btn */
}

.hamburger-btn .bar {
    width: 30px;
    height: 3px;
    background-color: #fff;
    transition: 0.3s;
}

.hamburger-btn:hover .bar {
    background-color: var(--cta-primary);
}

/* Fullscreen Overlay Menu */
.fullscreen-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f9f9f9;
    /* Light background as requested */
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.fullscreen-menu.active {
    opacity: 1;
    visibility: visible;
}

.close-btn {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 50px;
    /* Circle area */
    height: 50px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    color: #000;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: #000;
    color: #fff;
    transform: rotate(90deg);
}

.menu-content {
    display: flex;
    width: 90%;
    height: 80%;
    max-width: 1600px;
    justify-content: space-between;
    align-items: center;
}

/* Contact Info Section (Left Bottom) */
.menu-contact-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    height: 100%;
    padding-bottom: 50px;
    font-family: 'Google Sans', sans-serif;
    color: #111;
}

.menu-social-links {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.menu-social-link {
    color: var(--bg-primary);
    font-size: 2rem;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.menu-social-link:hover {
    color: var(--cta-primary);
    transform: translateY(-5px);
    text-decoration: underline !important;
}

.contact-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--cta-primary);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.contact-email {
    font-size: 2.5rem;
    /* Large email */
    color: var(--bg-primary);
    text-decoration: none;
    font-weight: 400;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.contact-phone {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 30px;
    color: var(--text-on-light);
}

.contact-address p {
    font-size: 1rem;
    color: var(--text-on-light);
    line-height: 1.5;
}

/* Menu Links (Right Center) */
.menu-links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.menu-link {
    font-family: 'Google Sans', sans-serif;
    font-size: clamp(4rem, 8vw, 8rem);
    color: var(--bg-primary);
    text-decoration: none;
    line-height: 0.9;
    text-transform: lowercase;
    /* Poppr style is lowercase often, or mixed. Let's try lowercase as per image perception or keep massive */
    transition: transform 0.3s, color 0.3s;
    position: relative;
}

.menu-link:hover {
    color: var(--cta-primary);
    /* Hover color */
    transform: translateX(-20px);
}

/* Responsive Menu */
@media (max-width: 1024px) {
    .menu-content {
        flex-direction: column-reverse;
        justify-content: center;
        gap: 50px;
        text-align: center;
    }

    .menu-contact-info {
        align-items: center;
        height: auto;
        padding-bottom: 0;
    }

    .menu-links {
        align-items: center;
    }

    .contact-email {
        font-size: 1.5rem;
    }
}

.header-right {
    display: flex;
    align-items: center;
}

.social-icons a {
    color: #fff;
    font-size: 1.2rem;
    text-decoration: none;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #ff6600;
}


.header-cta {
    padding: 12px 25px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
    animation: pulse-glow-white 2s ease-in-out infinite;
}

.header-cta:hover {
    background: #fff;
    color: #000;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

@keyframes pulse-glow-white {

    0%,
    100% {
        box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
    }

    50% {
        box-shadow: 0 5px 25px rgba(255, 255, 255, 0.3), 0 0 15px rgba(255, 255, 255, 0.2);
    }
}

/* Intro Section - Poppr Style */
.intro-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    /* Fallback */
    background: radial-gradient(circle at center, #153a5c 0%, #0D2F4B 100%);
    overflow: hidden;
    padding-top: 0;
    /* Ensure no top padding causes gap */
}

/* Nosotros Section */
.nosotros-section {
    position: relative;
    width: 100%;
    padding: 100px 50px;
    background: var(--bg-primary);
    display: flex;
    justify-content: center;
    background: radial-gradient(circle at 80% 50%, rgba(215, 14, 25, 0.1) 0%, rgba(13, 47, 75, 0) 60%);
}

.nosotros-container {
    width: 100%;
    max-width: 1400px;
    display: flex;
    justify-content: stretch;
    align-items: stretch;
    gap: 0;
    overflow: hidden;
    border-radius: 20px;
    /* Optional: rounded corners for the whole block */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.nosotros-image-col {
    flex: 1;
    min-height: 100px;
    position: relative;
}

.nosotros-image-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nosotros-content-col {
    flex: 1;
    background: #051421;
    /* Darker blue */
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nosotros-label {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--cta-primary);
    text-transform: uppercase;
    margin-bottom: 30px;
    display: block;
}

.nosotros-text {
    width: 100%;
}

.nosotros-text p {
    font-family: 'Google Sans', sans-serif;
    font-size: clamp(1.1rem, 2vw, 2rem);
    line-height: 1.5;
    color: var(--text-white);
    font-weight: 300;
}

/* Word-by-word animation */
.nosotros-text .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    white-space: pre-wrap;
    /* Preserve spaces */
}

.nosotros-text .word.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Text Highlights - Enhanced Impact */
.text-purple,
.text-cyan,
.text-yellow {
    color: var(--cta-primary);
    font-weight: 800;
    /* Extra bold */
    font-size: 1.1em;
    /* Slightly larger relative to surrounding text */
    /* Slightly larger relative to surrounding text */
    letter-spacing: 1px;

    /* Neon Glow Effect */
    text-shadow:
        0 0 5px rgba(255, 26, 43, 0.8),
        0 0 10px rgba(255, 26, 43, 0.6),
        0 0 20px rgba(255, 26, 43, 0.4),
        0 0 40px rgba(255, 26, 43, 0.2);

    transition: all 0.3s ease;
    animation: text-pulse 3s infinite ease-in-out;
}

.text-purple:hover,
.text-cyan:hover,
.text-yellow:hover {
    text-shadow:
        0 0 10px rgba(255, 26, 43, 1),
        0 0 20px rgba(255, 26, 43, 0.8),
        0 0 40px rgba(255, 26, 43, 0.6);
    transform: scale(1.05);
}

@keyframes text-pulse {

    0%,
    100% {
        filter: brightness(1);
        text-shadow: 0 0 5px rgba(255, 26, 43, 0.6), 0 0 15px rgba(255, 26, 43, 0.3);
    }

    50% {
        filter: brightness(1.3);
        text-shadow: 0 0 10px rgba(255, 26, 43, 0.9), 0 0 25px rgba(255, 26, 43, 0.5);
    }
}



/* Responsive Nosotros */
@media (max-width: 1024px) {
    .nosotros-container {
        flex-direction: column;
        height: auto;
    }

    .nosotros-image-col {
        min-height: 300px;
        width: 100%;
    }

    .nosotros-content-col {
        padding: 40px;
        width: 100%;
    }
}

.hero-container {
    position: relative;
    width: 100%;
    max-width: 1600px;
    height: 80vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Split layout: left and right */
    gap: 50px;
    align-items: center;
    padding: 0 80px;
}

/* Central Video Card */
.hero-visual-card {
    position: relative;
    width: 100%;
    max-width: 605px;
    height: 605px;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    z-index: 5;
    transform: perspective(1000px) rotateX(2deg);
    transition: transform 0.3s ease;
    justify-self: end;
    /* Align to right side of grid */
}

.card-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

/* Overlapping Text Layer */
.hero-content-layer {
    position: relative;
    /* Changed from absolute */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    /* Align to left */
    z-index: 10;
    padding-left: 20px;
}

/* Logo Top */
.hero-logo-top {
    width: 180px;
    margin-top: 100px;
    margin-bottom: 30px;
    z-index: 20;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
}

.hero-title {
    font-family: 'Google Sans', sans-serif;
    font-size: clamp(2.5rem, 5vw, 6rem);
    line-height: 0.9;
    text-align: left;
    /* Left align */
    color: #fff;
    display: flex;
    flex-direction: column;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 40px;
}

.hero-title span {
    display: block;
}

/* Specific positioning to overlap smoothly */
.line-1,
.line-2,
.line-3 {
    transform: none;
    /* Remove offsets for left-aligned layout */
    z-index: 12;
}

.line-2 {
    color: transparent;
    -webkit-text-stroke: 2px #fff;
    color: #fff;
}

/* Floating CTA Pill */
.hero-cta-pill {
    margin-top: 20px;
    background-color: var(--cta-primary);
    color: var(--text-white);
    padding: 20px 50px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 1.1rem;
    pointer-events: auto;
    box-shadow: 0 10px 30px rgba(255, 26, 43, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 20;
    animation: pulse-glow 2s ease-in-out infinite;
    align-self: center;
    /* Center the button */
}

.hero-cta-pill:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 26, 43, 0.8);
}

/* Pulse glow animation for buttons */
@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 10px 30px rgba(255, 26, 43, 0.6);
    }

    50% {
        box-shadow: 0 10px 40px rgba(255, 26, 43, 0.9), 0 0 25px rgba(255, 26, 43, 0.5);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    margin-top: 120px;
    /* Push down further */
    color: var(--text-white);
    font-size: 1.5rem;
    /* Smaller, more minimalist */
    z-index: 20;
    animation: bounce 2s infinite;
    opacity: 0.6;
    /* Lighter/minimalist */
    cursor: pointer;
    align-self: center;
    /* Center under the button */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Optional text label "Scroll" if desired, but minimalist usually means just arrow */

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Responsiveness for Hero */
@media (max-width: 1024px) {
    .hero-visual-card {
        width: 440px;
        height: 440px;
    }

    /* Tablet: 2x2 Grid for Services */
    .main-container {
        grid-template-columns: repeat(2, 1fr);
        height: auto;
        gap: 15px;
        padding: 0 20px 60px;
    }

    .column {
        height: 350px;
        flex: none;
        border-radius: 20px;
        border: none;
    }
}

@media (max-width: 768px) {

    /* Header adjustments - Force Alignment */
    header {
        padding: 10px 20px !important;
        /* Compact padding */
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        height: 70px !important;
        /* Fixed height for consistency */
    }

    .header-left,
    .header-right {
        display: flex !important;
        align-items: center !important;
        height: 100%;
        /* Full height of header */
    }

    .hamburger-btn {
        margin: 0;
        justify-content: center;
    }

    /* Menu Text (if visible) or Overlay Links */
    .menu-link {
        font-size: 2rem;
        /* Smaller menu text in overlay */
    }

    .hero-container {
        grid-template-columns: 1fr;
        padding: 40px 20px 100px;
        /* Increased bottom padding further */
        gap: 15px;
        height: auto;
        padding-top: 120px;
        /* More space from top */
    }

    /* Fix Brand Overlap */
    .brands-grid {
        margin-bottom: 50px !important;
        /* Push next section away */
    }

    .split-section {
        padding-bottom: 50px !important;
        /* Extra bottom padding */
    }

    .hero-visual-card {
        width: 100%;
        max-width: 330px;
        height: 330px;
        justify-self: center;
        margin: 40px auto 10px;
        /* Added top margin and bottom margin */
        order: -1;
    }

    .hero-content-layer {
        align-items: center;
        padding-left: 0;
        text-align: center;
    }

    .hero-title {
        font-size: 2.2rem;
        /* Much smaller text */
        text-align: center;
        align-items: center;
        /* center flex items */
        line-height: 1.1;
        margin-bottom: 30px;
    }

    .hero-logo-top {
        width: 100px;
        margin-top: 10px;
        margin-bottom: 20px;
    }

    /* Disable sticky for 'Sobre Nosotros' */
    .nosotros-label {
        position: static;
        margin-bottom: 20px;
        width: 100%;
        text-align: center;
    }

    .nosotros-text {
        font-size: 1.2rem;
        /* Smaller body text */
    }

    .nosotros-container {
        flex-direction: column;
        gap: 20px;
    }

    /* Stack Services Columns - Force Flex to ensure height */
    .main-container {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        min-height: auto !important;
        grid-template-columns: none !important;
        gap: 15px !important;
        padding: 0 20px 40px !important;
    }

    .column {
        width: 100% !important;
        height: 300px !important;
        flex: 0 0 300px !important;
        border: none !important;
        border-radius: 15px !important;
    }

    /* Ensure Split Sections clear everything */
    .split-section {
        clear: both;
        position: relative;
        z-index: 2;
        /* Sit above if needed */
        margin-top: 0;
    }
}

/* Main Container Grid */
.main-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    flex-grow: 1;
    /* Take remaining height */
    width: 100%;
    min-height: 75vh;
    /* Elongated fixed height */
    gap: 20px;
    /* Spacing between columns */
    padding: 0 40px 100px;
    /* Spacing on sides and bottom */
}

/* Columns */
.column {
    position: relative;
    height: 100%;
    /* Fill the container */
    overflow: hidden;
    cursor: pointer;
    border-radius: 30px;
    /* Rounded corners */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.column:last-child {
    border-right: none;
}

/* Background Images */
.column-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s ease;
    filter: brightness(0.5);
}

/* Content Structure */
.content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    box-sizing: border-box;
    transition: background 0.4s ease;
}

/* Initial state elements */
.content-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 5px;
}

.number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    opacity: 0.6;
    /* Subtle initially */
    transition: all 0.4s ease;
}

.title {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
    transition: transform 0.4s ease;
}

.description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #fff;
    opacity: 0;
    max-height: 0;
    /* Hide initially */
    transform: translateY(20px);
    transition: all 0.5s ease;
    width: 100%;
    max-width: 300px;
}

.arrow-icon {
    margin-top: 20px;
    font-size: 1.2rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s ease;
}

/* Highlight State (Red Active) */
.column.highlight .column-bg {
    filter: brightness(0.8);
    transform: scale(1.05);
}

.column.highlight .content {
    background: linear-gradient(135deg, var(--cta-primary) 0%, #cc0000 100%);
    /* Red gradient */
    min-height: 15vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.column.highlight .number {
    opacity: 1;
    font-size: 3rem;
    /* Pop on highlight */
}

.column.highlight .title {
    transform: translateY(0);
}

.column.highlight .description {
    opacity: 1;
    max-height: 200px;
    /* Reveal text */
    transform: translateY(0);
    margin-top: 10px;
    margin-bottom: 10px;
}

.column.highlight .arrow-icon {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive */



/* Contact Footer Section */
.contact-footer {
    background: #061423;
    /* Deepest dark for footer */
    padding: 80px 50px 30px;
    position: relative;
    color: #fff;
    border-top: 5px solid var(--cta-primary);
    /* Red accent line */
}

.footer-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-bottom: 60px;
}

/* Left Column: Info */
.footer-title {
    font-family: 'Archivo Black', sans-serif;
    font-size: 3rem;
    color: #fff;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-subtitle {
    font-family: 'Google Sans', sans-serif;
    font-size: 1.1rem;
    color: #94a3b8;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--cta-primary);
    width: 30px;
    text-align: center;
}

.contact-item a,
.contact-item p {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-family: 'Google Sans', sans-serif;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--cta-primary);
}

.footer-social {
    display: flex;
    gap: 20px;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.social-link:hover {
    background: var(--cta-primary);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 26, 43, 0.4);
}

/* Right Column: Form */
.footer-form-container {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-family: 'Google Sans', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--cta-primary);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 10px rgba(255, 26, 43, 0.2);
}

.submit-btn {
    padding: 18px 30px;
    background: var(--cta-primary);
    /* Corporate Red */
    color: #fff;
    border: none;
    border-radius: 50px;
    font-family: 'Google Sans', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background: #fff;
    color: var(--cta-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 26, 43, 0.4);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 60px;
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

/* Responsive Footer */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .footer-info {
        text-align: center;
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .contact-details {
        align-items: center;
    }
}