:root {
    --primary-color: #001A33;
    /* Dark Blue */
    --primary-light: #003366;
    --accent-color: #FB923C;
    /* Orange */
    --accent-light: #FDBA74;
    --secondary-color: #38BDF8;
    /* Celeste */
    --text-color: #F1F5F9;
    /* Off-white for dark grounds */
    --text-dark: #0F172A;
    --bg-dark: #001A33;
    --bg-light: #F8FAFC;
    --white: #FFFFFF;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --container-width: 1200px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans 3', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--primary-color);
    overflow-x: hidden;
}

h1,
h2,
h3,
.section-tag,
.logo-text {
    font-family: 'Lexend', sans-serif;
}

img {
    max-width: 100%;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.highlight {
    color: var(--secondary-color);
    font-weight: 700;
}

.highlight-orange {
    color: var(--accent-color);
}

.text-celeste {
    color: var(--secondary-color) !important;
}

.text-celeste-bold {
    color: var(--secondary-color);
    font-weight: 700;
}

.section-tag {
    display: inline-block;
    color: var(--accent-color);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 4px;
    margin-bottom: 2rem;
}

.py-section {
    padding: 6rem 0;
}

.py-4 {
    padding: 4rem 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-white {
    background-color: var(--white);
}

.border-bottom {
    border-bottom: 1px solid var(--gray-200);
}

.text-center {
    text-align: center;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.overflow-hidden {
    overflow: hidden;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    height: 140px;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

header.scrolled {
    height: 90px;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 120px;
    transition: var(--transition);
    transform-origin: left center;
}

header.scrolled .logo img {
    height: 70px;
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
    margin-left: auto;
}

.nav-links a {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.15rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-color);
}

.btn-contact {
    background-color: var(--accent-color);
    /* Orange */
    color: var(--white) !important;
    padding: 0.7rem 1.8rem;
    border-radius: 4px;
    font-weight: 600;
}

.btn-contact:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: calc(100vh - 140px);
    margin-top: 140px;
    display: flex;
    align-items: center;
    padding: 4rem 0;
    /* Shared dark background for the hero and its animation. */
    background-color: #19282F;
    color: var(--white);
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 55% 75% at 0% 0%, rgba(17, 60, 135, 0.55), transparent 70%),
        radial-gradient(ellipse 35% 45% at 8% 100%, rgba(0, 169, 157, 0.14), transparent 70%);
}

/* Brand accent line at the bottom of the hero */
.hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color) 50%, var(--accent-color));
}

.hero-grid {
    position: relative;
    z-index: 1;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 2rem;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    animation: heroFadeUp 0.8s cubic-bezier(0.2, 0, 0, 1) both;
}

.hero-visual {
    position: relative;
    margin-right: -6rem;
    margin-left: -3rem;
}

.hero-visual img,
.hero-animation-scene {
    display: block;
    width: 100%;
    height: auto;
    /* Fade every edge into the section background */
    -webkit-mask-image:
        linear-gradient(to right, transparent 0%, #000 20%, #000 84%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, #000 12%, #000 82%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(to right, transparent 0%, #000 20%, #000 84%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, #000 12%, #000 82%, transparent 100%);
    mask-composite: intersect;
}

.hero-animation-scene {
    aspect-ratio: 1600 / 884;
    overflow: hidden;
    background: radial-gradient(ellipse at 80% 60%, #064f65 0%, #11323f 27%, #19282f 59%);
}

.hero-animation-badge-box {
    fill: #d5e8ea22;
    stroke: #f5fbfb;
    stroke-width: 1.8;
}

.hero-animation-icon {
    fill: none;
    stroke: #f5fbfb;
    stroke-width: 2.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero-animation-badge-inner {
    transform-box: fill-box;
    transform-origin: center;
}

.hero-animation-hand {
    filter: brightness(.71) saturate(.78);
}

@media (min-width: 993px) {
    .hero-visual {
        position: absolute;
        width: min(78vw, 1100px);
        left: 50%;
        top: 50%;
        margin: 0;
        /* The path starts at x=365 in a 1600-wide scene: anchor it to page center. */
        transform: translate(-22.8125%, -50%);
        pointer-events: none;
    }
}

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.25rem);
    line-height: 1.1;
    margin-bottom: 2rem;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.hero .highlight {
    color: var(--accent-color);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 600px;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(202, 138, 4, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* About Section */
.about h2 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    line-height: 1.1;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-light);
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.stat-card {
    background: var(--primary-color);
    padding: 3.5rem 2rem;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
    border-top: 4px solid var(--accent-color);
    color: var(--white);
}

.stat-card h3 {
    font-size: 3rem;
    color: var(--secondary-color);
    /* Celeste */
    margin-bottom: 0.5rem;
}

/* Parallax Section */
.parallax-section {
    position: relative;
    height: 500px;
    background: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&q=80&w=2070') center/cover no-repeat fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.parallax-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
}

.parallax-content {
    position: relative;
    z-index: 5;
    max-width: 800px;
}

.parallax-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.parallax-text {
    font-size: 1.25rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Services section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.service-card {
    background: var(--white);
    padding: 4rem 3rem;
    border-radius: 4px;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 40px 60px rgba(15, 23, 42, 0.1);
    border-color: var(--accent-color);
}

.icon-box {
    display: none;
    /* Replaced by images */
}

.service-image-container {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    margin-bottom: 2rem;
}

.service-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(251, 146, 60, 0.4);
    /* Orange overlay */
    mix-blend-mode: multiply;
    transition: var(--transition);
}

.service-card:hover .service-image-container img {
    transform: scale(1.1);
}

.service-card:hover .service-image-container::after {
    background: rgba(251, 146, 60, 0.2);
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card p {
    min-height: 80px;
    /* Ensure space for typing animation */
}

/* Typing animation utility */
.typing::after {
    content: '|';
    animation: blink 0.7s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.mb-6rem {
    margin-bottom: 3rem;
}

/* Contact section */
.contact-info h2 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
}

.icon-circle {
    width: 48px;
    height: 48px;
    background: var(--bg-light);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.contact-form-container {
    background: var(--white);
    padding: 4rem;
    border-radius: 4px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 2rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid var(--gray-200);
    border-radius: 4px;
    font-family: inherit;
    background: var(--bg-light);
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: var(--white);
}

/* Footer */
footer {
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: 6rem 0 3rem;
    border-top: 1px solid var(--gray-200);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    text-align: center;
}

.footer-logo img {
    height: 55px;
    margin-bottom: 1.5rem;
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    font-size: 0.9rem;
    opacity: 0.7;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    align-items: center;
}

/* Responsive */
@media (max-width: 992px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .about h2,
    .contact-info h2 {
        font-size: 2.8rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile rules: see "RESPONSIVE / MOBILE" section at the end of this file */

/* Contact Refinements (Light bg, Dark Blue text) */
.contact.bg-white {
    background-color: var(--white);
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-primary-p {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.map-container-small {
    width: 100%;
    margin-bottom: 2.5rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 26, 51, 0.1);
    border: 2px solid var(--secondary-color);
}

.contact .info-item.text-primary p {
    color: var(--primary-color);
    font-weight: 600;
}

/* Simplified Footer */
footer {
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: 4rem 0;
    border-top: 1px solid var(--gray-200);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.footer-logo img {
    height: 90px;
    margin-bottom: 1rem;
}

footer p {
    font-size: 0.9rem;
    opacity: 0.6;
}

/* New Services List Layout */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 5rem;
    padding-top: 2rem;
}

.service-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.service-row:hover {
    box-shadow: 0 40px 60px rgba(15, 23, 42, 0.1);
    border-color: var(--accent-color);
}

.service-row:nth-child(even) .service-row-image {
    order: 2;
}

.service-row:nth-child(even) .service-row-content {
    order: 1;
}

.service-row-image {
    width: 100%;
    height: 100%;
    min-height: 400px;
    position: relative;
}

.service-row-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

@media (min-width: 993px) {
    .service-row-administration .service-row-image img {
        /* Prioritise the financial dashboard and the presenter in the portrait crop. */
        object-position: 38% center;
    }
}

.service-row-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(251, 146, 60, 0.3);
    mix-blend-mode: multiply;
    transition: var(--transition);
}

.service-row:hover .service-row-image::after {
    background: rgba(251, 146, 60, 0.1);
}

.service-row-content {
    padding: 3rem;
}

.service-row-content h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-row-content p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.mt-4 {
    margin-top: 2rem;
}

@media (max-width: 992px) {
    .service-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .service-row:nth-child(even) .service-row-image,
    .service-row:nth-child(even) .service-row-content {
        order: unset;
    }
    .service-row-image {
        min-height: 250px;
    }
    .service-row-content {
        padding: 2rem;
    }
}

/* =========================================
   UI/UX PRO MAX REFINEMENTS
   ========================================= */

:root {
    /* Brand color palette: Logo Exact Match */
    --primary-color: #113C87; /* Deep Blue from logo */
    --primary-light: #1A4EAB; 
    --accent-color: #E86A10; /* Orange from logo */
    --accent-light: #FA8C3C; 
    --secondary-color: #00A99D; /* Cyan / Teal from logo */
    --text-color: #F8FAFC; 
    --text-dark: #113C87;
    --text-muted: #475569;
    --bg-dark: #0A2458;
    --bg-light: #F1F5F9; 
    --ring-color: rgba(232, 106, 16, 0.5); /* Orange Focus rings */
    --transition: all 0.25s cubic-bezier(0.2, 0, 0, 1); /* Modern easing */
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .section-tag, .logo-text, .btn {
    font-family: 'Poppins', sans-serif;
}

/* Accessibility & Interaction Improvements */
*:focus-visible {
    outline: 3px solid var(--ring-color);
    outline-offset: 2px;
}

a, button, .btn {
    cursor: pointer;
}

.nav-links a {
    padding: 0.5rem 0.75rem; /* Increase touch target to >=44px */
    display: inline-block;
    border-radius: 4px;
}

.btn {
    border-radius: 6px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    box-shadow: 0 10px 15px -3px rgba(234, 88, 12, 0.3);
}

.service-row {
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-200);
}

.service-row:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--gray-200);
}

.service-row-content p {
    color: var(--text-muted);
}

.service-row-content h3 {
    color: var(--primary-color);
    font-weight: 600;
}

.text-primary-p, .about-text p, .parallax-text {
    color: var(--text-muted);
}

.parallax-text {
    color: rgba(255, 255, 255, 0.9) !important; /* Fix parallax text visibility */
}

.contact-form input, .contact-form textarea {
    border-radius: 6px;
}

.stat-card {
    border-top: 4px solid var(--accent-color);
}

/* Contact form stretch to match left column height */
.contact .grid-2 {
    align-items: stretch;
}

.contact-form-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contact-form {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.contact-form .form-group:nth-child(3) {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.contact-form textarea {
    height: 100%;
    min-height: 150px;
    resize: none;
}

/* Slogan (moved from inline style) */
.parallax-text.parallax-slogan {
    font-weight: 700;
    color: var(--accent-color) !important;
    font-size: 1.5rem;
    text-transform: uppercase;
}

/* Contact info items */
.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.info-item .icon-circle {
    flex-shrink: 0;
}

.info-item p {
    overflow-wrap: anywhere;
    margin: 0;
}

/* Hamburger button (hidden on desktop) */
.menu-toggle {
    display: none;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* =========================================
   RESPONSIVE / MOBILE
   ========================================= */
@media (max-width: 992px) {
    html,
    body {
        overflow-x: hidden;
        overflow-x: clip;
    }

    .container {
        padding: 0 1.25rem;
    }

    /* Header: fixed height, no resizing on scroll and no blur
       (both cause jitter/flicker while scrolling on phones) */
    header,
    header.scrolled {
        height: 76px;
        background: var(--white);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        transition: box-shadow 0.25s ease;
    }

    /* The PNG has ~19% transparent padding on top and ~12% on the left:
       crop it so the visible logo is ~60px tall on phones */
    .logo {
        height: 60px;
        overflow: hidden;
        display: flex;
        align-items: flex-start;
        flex-shrink: 0;
    }

    .logo img,
    header.scrolled .logo img {
        height: 98px;
        width: auto;
        max-width: none;
        margin-top: -18px;
        margin-left: -18px;
        transition: none;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        width: 48px;
        height: 48px;
        margin-left: auto;
        background: transparent;
        border: 0;
        border-radius: 8px;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .menu-toggle span {
        display: block;
        width: 26px;
        height: 3px;
        border-radius: 2px;
        background: var(--primary-color);
        transition: transform 0.3s ease, opacity 0.2s ease;
    }

    .menu-toggle.open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Dropdown menu panel */
    .nav-links {
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: 0.5rem 1.25rem 1.5rem;
        background: var(--white);
        border-top: 1px solid var(--gray-200);
        box-shadow: 0 20px 30px rgba(17, 60, 135, 0.15);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        pointer-events: none;
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    }

    .nav-links.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 1rem 0.5rem;
        font-size: 1.15rem;
        border-bottom: 1px solid var(--gray-200);
        border-radius: 0;
    }

    .nav-links .btn-contact {
        display: block;
        margin-top: 1rem;
        padding: 0.9rem 1rem;
        text-align: center;
        border-bottom: 0;
        border-radius: 6px;
    }

    /* Hero: no 100vh (mobile address bar changes it and makes content jump) */
    .hero {
        margin-top: 76px;
        height: auto;
        min-height: auto;
        padding: 3rem 0 1.5rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .hero-content {
        max-width: none;
    }

    /* Image full-bleed under the text */
    .hero-visual {
        margin: 0 -1.25rem;
    }

    .hero-visual img,
    .hero-animation-scene {
        -webkit-mask-image:
            linear-gradient(to right, transparent 0%, #000 12%, #000 90%, transparent 100%),
            linear-gradient(to bottom, transparent 0%, #000 15%, #000 80%, transparent 100%);
        mask-image:
            linear-gradient(to right, transparent 0%, #000 12%, #000 90%, transparent 100%),
            linear-gradient(to bottom, transparent 0%, #000 15%, #000 80%, transparent 100%);
        animation: none;
    }

    .hero h1 {
        font-size: clamp(2.1rem, 9vw, 3.2rem);
        margin-bottom: 1.25rem;
    }

    .hero p {
        font-size: 1.05rem;
        margin-bottom: 1.5rem;
    }

    .cta-buttons {
        flex-wrap: wrap;
        gap: 1rem;
        margin-top: 0.5rem;
    }

    /* Generic sections */
    .py-section {
        padding: 4rem 0;
    }

    .grid-2 {
        gap: 3rem;
    }

    .about h2,
    .contact-info h2,
    .section-header h2 {
        font-size: clamp(1.9rem, 7vw, 2.6rem);
    }

    .section-tag {
        font-size: 0.9rem;
        letter-spacing: 3px;
        margin-bottom: 1rem;
    }

    /* Stats */
    .about-stats {
        gap: 1rem;
    }

    .stat-card {
        padding: 2rem 1rem;
    }

    .stat-card h3 {
        font-size: 2.4rem;
    }

    /* Parallax -> static background on mobile */
    .parallax-section {
        height: auto;
        padding: 4.5rem 0;
        background-attachment: scroll;
    }

    .parallax-title {
        font-size: 2rem;
    }

    .parallax-text {
        font-size: 1.05rem;
    }

    .parallax-text.parallax-slogan {
        font-size: 1.15rem;
    }

    /* Services */
    .services-list {
        gap: 2.5rem;
        padding-top: 0;
    }

    .service-row:hover {
        transform: none;
    }

    .service-row-image {
        min-height: 220px;
    }

    .service-row-technology .service-row-image {
        height: auto;
        min-height: 0;
        aspect-ratio: 4 / 3;
    }

    .service-row-technology .service-row-image img {
        object-position: center 64%;
    }

    .service-row-image::after {
        mix-blend-mode: normal;
        background: rgba(232, 106, 16, 0.15);
    }

    .service-row-content {
        padding: 1.75rem 1.5rem;
    }

    .service-row-content h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .service-row-content p {
        font-size: 1rem;
    }

    /* Contact */
    .contact-form-container {
        padding: 2rem 1.25rem;
    }

    .form-group {
        margin-bottom: 1.25rem;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 16px; /* evita el zoom automático de iOS al enfocar */
        padding: 1rem;
    }

    .map-container-small iframe {
        height: 220px;
    }

    /* Footer */
    footer {
        padding: 3rem 0;
    }

    .footer-logo img {
        height: 110px;
        margin-bottom: 0;
    }

    .info-item p {
        overflow-wrap: break-word;
    }
}

@media (max-width: 480px) {
    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
    }

    .stat-card p {
        font-size: 0.9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero-content,
    .hero-visual,
    .hero-visual img {
        animation: none;
    }
}
