/* Fonts loaded via HTML link for better performance */

:root {
    /* Colores Principales */
    --tg-red: #d5111d;
    --tg-yellow: #fff200;
    --tg-white: #ffffff;
    --tg-black: #1a1a1a;
    --tg-gray: #f4f4f4;

    /* Variaciones y Efectos */
    --tg-red-dark: #a50d17;
    --tg-yellow-dark: #e6da00;
    --tg-shadow: rgba(0, 0, 0, 0.1);

    /* Typography */
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--tg-white);
    color: var(--tg-black);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--tg-red);
    box-shadow: 0 4px 0 var(--tg-black);
    padding: 1rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid var(--tg-black);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 90px;
    width: auto;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled {
    padding: 0.2rem 0;
    background: var(--tg-red);
}

header.scrolled .logo img {
    height: 60px;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 45px;
}

.nav-links {
    display: flex;
    gap: 35px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--tg-white);
    font-weight: 500;
    font-size: 1.05rem;
    position: relative;
    padding: 5px 0;
    transition: all 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--tg-yellow);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links img:hover {
    transform: scale(1.05);
}

.menu-toggle {
    display: none;
    background: var(--tg-yellow);
    border: 3px solid var(--tg-black);
    box-shadow: 4px 4px 0 var(--tg-black);
    padding: 10px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s;
}

.menu-toggle:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--tg-black);
}


/* Hero Section Redesign - Creative Logo Style */
.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(26, 26, 26, 0.4), rgba(26, 26, 26, 0.85)),
        url('../assets/img/hero.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 140px 0 120px;
    text-align: center;
}

.hero-wrapper {
    display: block;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    position: relative;
    z-index: 10;
}

.hero-badge {
    display: inline-block;
    background: var(--tg-yellow);
    color: var(--tg-black);
    padding: 10px 24px;
    border-radius: 100px;
    font-weight: 900;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    box-shadow: 6px 6px 0 var(--tg-black);
    transform: rotate(-3deg);
    border: 2px solid var(--tg-black);
}

.hero h1 {
    font-size: clamp(3.2rem, 11vw, 5.8rem);
    line-height: 0.9;
    margin-bottom: 35px;
    color: var(--tg-white);
    text-transform: uppercase;
    letter-spacing: -4px;
    text-shadow:
        10px 10px 0 var(--tg-black),
        -2px -2px 0 var(--tg-black),
        2px -2px 0 var(--tg-black),
        -2px 2px 0 var(--tg-black),
        2px 2px 0 var(--tg-black);
}

.hero h1 span {
    display: block;
    background: none;
    -webkit-text-fill-color: initial;
    background-clip: initial;
}

.hero h1 .line-2 {
    color: var(--tg-yellow);
    transform: translateX(15px);
}

.hero h1 .line-3 {
    font-size: 0.7em;
    opacity: 0.9;
}

.hero p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.98);
    max-width: 580px;
    margin: 0 0 45px;
    line-height: 1.5;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
    font-weight: 400;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.btn-hero-primary {
    background: var(--tg-yellow);
    color: var(--tg-black);
    padding: 12px 25px;
    font-size: 0.95rem;
    border: 3px solid var(--tg-black);
    box-shadow: 4px 4px 0 var(--tg-black);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    font-weight: 800;
}

.btn-hero-primary span {
    position: relative;
    z-index: 2;
}

.btn-hero-primary:hover {
    transform: translate(-3px, -3px);
    box-shadow: 7px 7px 0 var(--tg-black);
    background: var(--tg-white);
}

.hero-trust .highlight {
    background: var(--tg-white);
    color: var(--tg-red);
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 1rem;
    box-shadow: 4px 4px 0 var(--tg-black);
    border: 2px solid var(--tg-black);
}

.btn-header-main {
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 10px;
}

.btn-hero-mobile {
    display: none;
}

/* Floating Shapes Background Layer */
.hero-shapes .shape {
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    border-radius: 30px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    z-index: 1;
    /* Behind wrapper (z-index: 5) */
    pointer-events: none;
    /* Won't block clicks */
}

.shape-1 {
    top: 10%;
    left: 10%;
    animation: roam1 25s ease-in-out infinite;
}

.shape-2 {
    top: 60%;
    left: -5%;
    animation: roam2 30s ease-in-out infinite;
    width: 120px;
    height: 120px;
    font-size: 3rem;
}

.shape-3 {
    top: 20%;
    right: 5%;
    animation: roam3 28s ease-in-out infinite;
}

.shape-4 {
    bottom: 5%;
    right: 20%;
    animation: roam4 35s ease-in-out infinite;
}

.shape-5 {
    top: 40%;
    left: 40%;
    animation: roam5 40s ease-in-out infinite;
    width: 80px;
    height: 80px;
    background: rgba(255, 242, 0, 0.05);
    border-radius: 50%;
}

.shape-6 {
    bottom: 30%;
    left: 20%;
    animation: roam6 32s ease-in-out infinite;
    width: 110px;
    height: 110px;
}

@keyframes roam1 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(150px, 100px) rotate(120deg);
    }

    66% {
        transform: translate(-50px, 200px) rotate(240deg);
    }
}

@keyframes roam2 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(250px, -150px) rotate(-90deg);
    }

    66% {
        transform: translate(100px, 100px) rotate(-180deg);
    }
}

@keyframes roam3 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(-200px, 150px) rotate(45deg);
    }

    66% {
        transform: translate(-300px, -50px) rotate(90deg);
    }
}

@keyframes roam4 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(-150px, -200px) rotate(-120deg);
    }

    66% {
        transform: translate(50px, -300px) rotate(-240deg);
    }
}

@keyframes roam5 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(200px, -100px) scale(1.2);
    }

    66% {
        transform: translate(-150px, -150px) scale(0.8);
    }
}

@keyframes roam6 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(400px, -200px) rotate(180deg);
    }
}





/* Divider */
.hero-divider {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 6;
}

.hero-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.hero-divider .shape-fill {
    fill: var(--tg-white);
}

/* Sections General */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--tg-black);
    position: relative;
    padding-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: -2px;
}

.section-subtitle {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #555;
    font-size: 1.25rem;
    line-height: 1.6;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 8px;
    background: var(--tg-yellow);
    border: 2px solid var(--tg-black);
    box-shadow: 3px 3px 0 var(--tg-black);
}

/* Nosotros Section Redesign */
#nosotros {
    padding: 120px 0;
    position: relative;
    background: radial-gradient(circle at 10% 20%, rgba(227, 30, 36, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 242, 0, 0.03) 0%, transparent 40%);
    overflow: hidden;
}

#nosotros::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(#ccc 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.15;
    pointer-events: none;
}

/* Modern Media Stack (Replacing Honeycomb) */
.about-media-stack {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stack-main {
    width: 80%;
    height: 450px;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 20px 20px 0 var(--tg-black);
    position: relative;
    z-index: 1;
    transform: rotate(-2deg);
    border: 4px solid var(--tg-black);
}

.stack-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stack-secondary {
    position: absolute;
    width: 250px;
    height: 320px;
    bottom: -30px;
    right: 0;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 15px 15px 0 var(--tg-black);
    z-index: 3;
    border: 4px solid var(--tg-black);
}

.stack-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stack-logo-card {
    position: absolute;
    top: 40px;
    left: -40px;
    background: var(--tg-red);
    padding: 70px 25px;
    /* Más padding horizontal para el logo apaisado */
    border-radius: 25px;
    /* Un poco menos redondeado para parecerse más a un badge/caja adaptada */
    border: 4px solid var(--tg-black);
    box-shadow: 12px 12px 0 var(--tg-black);
    z-index: 5;
    width: 220px;
    /* Más ancho */
    height: 120px;
    /* Menos alto */
    display: flex;
    align-items: center;
    justify-content: center;
    animation: floatingLogo 4s ease-in-out infinite;
}

.stack-logo-card img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, 0.15));
    image-rendering: high-quality;
}

@keyframes floatingLogo {

    0%,
    100% {
        transform: translateY(0) rotate(-2deg);
    }

    50% {
        transform: translateY(-15px) rotate(2deg);
    }
}

/* Decorative Geometric Elements */
.stack-deco {
    position: absolute;
    width: 100px;
    height: 100px;
    background: var(--tg-yellow);
    border-radius: 20px;
    bottom: 20px;
    left: -10px;
    opacity: 0.1;
    z-index: 0;
    transform: rotate(15deg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 100px;
    align-items: center;
}


.experience-badge {
    position: absolute;
    background: var(--tg-red);
    color: var(--tg-white);
    padding: 20px;
    border-radius: 20px;
    top: -20px;
    left: 0;
    z-index: 15;
    text-align: center;
    box-shadow: 0 15px 30px rgba(227, 30, 36, 0.3);
    animation: float 4s ease-in-out infinite;
}

.experience-badge .num {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
}

.experience-badge .txt {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

/* End of media stack */


.about-text .sub-title {
    display: inline-block;
    color: var(--tg-red);
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.about-text h3 {
    font-size: 2.8rem;
    color: var(--tg-black);
    line-height: 1.2;
    margin-bottom: 30px;
}

.about-text p {
    color: #555;
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.stat-item {
    text-align: center;
    padding: 25px 15px;
    background: var(--tg-white);
    border-radius: 20px;
    box-shadow: 6px 6px 0 var(--tg-black);
    transition: all 0.3s ease;
    border: 3px solid var(--tg-black);
}

.stat-item:hover {
    transform: translate(-3px, -3px);
    box-shadow: 9px 9px 0 var(--tg-black);
    background: var(--tg-yellow);
}

.stat-item i {
    font-size: 2rem;
    color: var(--tg-red);
    margin-bottom: 12px;
    display: block;
}

.stat-item .count {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--tg-black);
    display: block;
    line-height: 1;
}

.stat-item .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--tg-black);
    margin-top: 5px;
    display: block;
}

/* Servicios Section - Premium Editorial Gallery */
#servicios {
    padding: 120px 0;
    background-color: var(--tg-white);
    background-image:
        linear-gradient(rgba(227, 30, 36, 0.01) 2px, transparent 2px),
        linear-gradient(90deg, rgba(227, 30, 36, 0.01) 2px, transparent 2px);
    background-size: 60px 60px;
    position: relative;
    overflow: hidden;
}

#servicios::before {
    content: 'TODOGRAFIK';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    font-size: 20rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.015);
    z-index: 1;
    pointer-events: none;
    white-space: nowrap;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
    z-index: 2;
}

.service-card {
    background: var(--tg-white);
    border-radius: 40px;
    position: relative;
    padding-top: 60px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 4px solid var(--tg-black);
    box-shadow: 12px 12px 0 var(--tg-black);
    overflow: visible;
}

.service-card:nth-child(even) {
    margin-top: 60px;
}

.card-image-header {
    position: absolute;
    top: -40px;
    right: -20px;
    width: 160px;
    height: 160px;
    border-radius: 35px;
    overflow: hidden;
    z-index: 5;
    box-shadow: 8px 8px 0 var(--tg-black);
    border: 4px solid var(--tg-black);
    background: var(--tg-white);
    transition: all 0.5s ease;
}

.card-image-bg {
    width: 100%;
    height: 100%;
}

.card-image-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.service-card:hover .card-image-header {
    transform: rotate(5deg) scale(1.1);
}

.card-content-wrapper {
    padding: 40px;
    background: transparent;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.card-number {
    font-size: 8rem;
    color: rgba(0, 0, 0, 0.04);
    position: absolute;
    bottom: -20px;
    right: 20px;
    line-height: 1;
    z-index: -1;
    font-weight: 900;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--tg-red);
    color: var(--tg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    font-size: 2rem;
    border: 3px solid var(--tg-black);
    box-shadow: 5px 5px 0 var(--tg-black);
    margin-bottom: 30px;
}

.service-card h3 {
    font-size: 2rem;
    color: var(--tg-black);
    margin-bottom: 15px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.service-card p {
    color: #333;
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 30px;
    font-weight: 500;
}

.card-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--tg-yellow);
    color: var(--tg-black);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    padding: 10px 20px;
    border-radius: 10px;
    border: 2px solid var(--tg-black);
    box-shadow: 3px 3px 0 var(--tg-black);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.card-badge:hover {
    background: var(--tg-black);
    color: var(--tg-yellow);
    box-shadow: 5px 5px 0 var(--tg-red);
    transform: translate(-2px, -2px);
}

.service-card:hover {
    transform: translate(-8px, -8px);
    box-shadow: 23px 23px 0 var(--tg-black);
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 20px 0 30px;
    flex-grow: 1;
}

.service-features li {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--tg-black);
}

.service-features i {
    color: var(--tg-red);
    font-size: 1.1rem;
}

/* Trabajos / Portafolio Section Redesign */
#trabajos {
    padding: 120px 0;
    background-color: var(--tg-gray);
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    position: relative;
    overflow: hidden;
}

#trabajos::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--tg-red) 5%, transparent 70%);
    top: -200px;
    left: -200px;
    opacity: 0.05;
    filter: blur(80px);
    pointer-events: none;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 25px;
    margin-bottom: 60px;
}

.works-cta {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.work-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: var(--tg-black);
    border: 3px solid var(--tg-black);
    box-shadow: 6px 6px 0 var(--tg-black);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
}

/* Bento Spanning */
.work-big {
    grid-column: span 2;
    grid-row: span 2;
}

.work-tall {
    grid-row: span 2;
}

.work-wide {
    grid-column: span 2;
}

.work-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: all 0.6s ease;
    opacity: 1;
}

.work-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.4) 50%,
            transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.work-info {
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: left;
}

.work-tag {
    display: inline-block;
    background: var(--tg-yellow);
    color: var(--tg-black);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--tg-black);
    box-shadow: 3px 3px 0 var(--tg-black);
    margin-bottom: 12px;
}

.work-info h3 {
    color: var(--tg-white);
    font-size: clamp(1.1rem, 1.5vw, 1.5rem);
    font-weight: 700;
    text-transform: capitalize;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin-bottom: 0;
}

.work-card:hover {
    transform: translateY(-8px);
    box-shadow: 12px 12px 0 var(--tg-black);
}

.work-card:hover img {
    transform: scale(1.1);
}

.work-card:hover .work-overlay {
    opacity: 1;
    transform: translateY(0);
}

.work-card:hover .work-icon {
    transform: scale(1) rotate(0);
    opacity: 1;
}

.work-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: var(--tg-yellow);
    color: var(--tg-black);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 2px solid var(--tg-black);
    box-shadow: 3px 3px 0 var(--tg-black);
    transform: scale(0.8) rotate(-15deg);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}



/* Oportunidades Section */
#oportunidades {
    padding: 120px 0;
    background-color: var(--tg-white);
    position: relative;
    overflow: hidden;
}

.opp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.opp-card {
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    transition: all 0.4s ease;
}

.opp-img-wrapper {
    width: 100%;
    height: auto;
    position: relative;
    overflow: hidden;
    background: var(--tg-white);
    border: 4px solid var(--tg-black);
    box-shadow: 10px 10px 0 var(--tg-black);
    border-radius: 40px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: block;
}

.opp-card:hover .opp-img-wrapper {
    transform: translate(-8px, -8px);
    box-shadow: 18px 18px 0 var(--tg-black);
}

.opp-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.opp-card:hover .opp-img {
    transform: scale(1.1);
}

/* Footer */
footer {
    background: var(--tg-red);
    color: var(--tg-white);
    padding: 100px 0 40px;
    border-top: 6px solid var(--tg-black);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(0, 0, 0, 0.2) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand .footer-logo {
    display: inline-block;
    margin-top: -10px;
    margin-bottom: 30px;
}

.footer-brand .footer-logo img {
    display: block;
    width: 170px;
    /* Aumentamos ligeramente para balance */
    height: auto;
    object-fit: contain;
}

.footer-brand p {
    font-size: 1rem;
    /* Un poco más pequeño y sutil */
    line-height: 1.6;
    margin-bottom: 25px;
    font-weight: 400;
    opacity: 0.9;
}

.footer-column h4 {
    font-size: 1.4rem;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 6px;
    background: var(--tg-yellow);
    border: 2px solid var(--tg-black);
    box-shadow: 3px 3px 0 var(--tg-black);
}

.footer-links,
.footer-contact {
    list-style: none;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--tg-white);
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s;
}

.footer-links a:hover {
    opacity: 1;
    padding-left: 5px;
    color: var(--tg-yellow);
}

.footer-contact li {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    opacity: 0.9;
}

.footer-contact i {
    color: var(--tg-yellow);
    font-size: 1.2rem;
    margin-top: 4px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.social-btn {
    width: 44px;
    height: 44px;
    background: var(--tg-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--tg-black);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 1.2rem;
    border: 3px solid var(--tg-black);
    box-shadow: 4px 4px 0 var(--tg-black);
}

.social-btn:hover {
    background: var(--tg-white);
    color: var(--tg-red);
    transform: translate(-3px, -3px);
    box-shadow: 7px 7px 0 var(--tg-black);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 3px solid var(--tg-black);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Maps Section Styles */
.maps-section {
    background-color: var(--tg-gray);
    padding: 100px 0;
}

.map-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: center;
}

.map-container {
    border: 4px solid var(--tg-black);
    box-shadow: 15px 15px 0 var(--tg-black);
    border-radius: 30px;
    overflow: hidden;
    line-height: 0;
    transition: transform 0.3s ease;
}

.map-container:hover {
    transform: translate(-5px, -5px);
    box-shadow: 20px 20px 0 var(--tg-black);
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: none;
    filter: grayscale(0.2);
}

.map-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.action-card {
    background: var(--tg-white);
    border: 4px solid var(--tg-black);
    box-shadow: 12px 12px 0 var(--tg-black);
    border-radius: 30px;
    padding: 40px;
    text-align: center;
}

.action-card i {
    font-size: 3rem;
    color: var(--tg-red);
    margin-bottom: 20px;
}

.action-card h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.action-card p {
    color: #666;
    margin-bottom: 30px;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.w-100 {
    width: 100%;
    justify-content: center;
}

.btn-white {
    background: var(--tg-white);
}

.btn-white:hover {
    background: var(--tg-gray);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #fff200;
    color: var(--tg-black);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 3px solid var(--tg-black);
    box-shadow: 6px 6px 0 var(--tg-black);
    text-decoration: none;
    font-size: 1.5rem;
    z-index: 999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--tg-white);
    color: var(--tg-red);
    transform: translate(-4px, -4px);
    box-shadow: 10px 10px 0 var(--tg-black);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

/* ==========================================================================
   MEDIA QUERIES (CONSOLIDATED)
   ========================================================================== */

@media (max-width: 1200px) {
    .hero h1 { font-size: 4.5rem; }
    .services-grid { grid-template-columns: repeat(2, 1fr); gap: 60px 30px; }
    .service-card:nth-child(even) { margin-top: 60px; }
    .service-card:nth-child(odd) { margin-top: 0; }
    .works-grid { grid-template-columns: repeat(3, 1fr); }
    .opp-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
    .hero { padding: 160px 0 100px; }
    .hero-wrapper { grid-template-columns: 1fr; text-align: center; }
    .hero h1 .line-2 { transform: translateX(10px); }
    .hero p { margin-inline: auto; }
    .hero-shapes .shape { width: 60px; height: 60px; font-size: 1.5rem; }
    .shape-4 { display: none; }
    .about-grid { grid-template-columns: 1fr; gap: 80px; }
    .service-card h3 { font-size: 1.7rem; }
    .works-grid { grid-template-columns: repeat(2, 1fr); }
    .opp-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .map-grid { grid-template-columns: 1fr; gap: 60px; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 90px;
        left: 0;
        width: 100%;
        background: var(--tg-red);
        flex-direction: column;
        padding: 40px;
        gap: 25px;
        transform: translateY(-150%);
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        z-index: 999;
        display: flex !important;
        overflow-y: auto;
        max-height: calc(100vh - 90px);
        border-bottom: 4px solid var(--tg-black);
    }
    .nav-links.active { transform: translateY(0); }
    .nav-links a { font-size: 1.5rem; font-weight: 800; color: var(--tg-white); }
    .menu-toggle { display: block; }
    .btn-header-main, .hero-trust { display: none; }
    .btn-hero-mobile { display: inline-flex; }
    .hero h1 { font-size: clamp(2.5rem, 10vw, 3.5rem); }
    .about-grid { gap: 120px; }
    .about-media-stack { height: 480px; }
    .stack-main { width: 100%; height: 380px; transform: none; border-radius: 30px; }
    .stack-secondary { width: 200px; height: 260px; bottom: -40px; }
    .stack-logo-card { width: 130px; height: 130px; top: 20px; left: -15px; padding: 20px; }
    .services-grid { grid-template-columns: 1fr; gap: 50px; }
    .service-card { margin-top: 0 !important; }
    .card-content-wrapper { padding: 30px 25px; min-height: auto; }
    .card-image-header { width: 130px; height: 130px; top: -30px; right: -10px; }
    .card-number { font-size: 6rem; }
    .map-container { display: none; }
    .footer-column:nth-child(2),
    .footer-column:nth-child(3) { display: none; }
}

@media (max-width: 576px) {
    .works-grid { display: flex; flex-direction: column; gap: 30px; }
    .work-card { height: 350px !important; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-column h4::after { left: 50%; transform: translateX(-50%); }
    .footer-contact li, .social-links { justify-content: center; }
    .about-stats { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.8rem; }
    .section-title h2 { font-size: 2.2rem; }
}