:root {
    --color-dark: #0A0A0A; /* Richer true black for higher contrast */
    --color-light: #FFFFFF; /* Crisper white for more energy */
    --color-accent: #E5A93C; /* Vibrant amber/gold for energy */
    --color-grey-mid: #555555;
    --color-grey-tint: #CCCCCC;
    
    --font-main: 'Outfit', sans-serif;
    --transition-slow: all 0.6s cubic-bezier(0.86, 0, 0.07, 1);
    --transition-fast: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
}

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

body {
    font-family: var(--font-main);
    background-color: #FFFFFF;
    color: var(--color-dark);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Page Background (Crosshatch Art) */
.page-background-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background-color: #FFFFFF;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(0, 0, 0, 0.04) 10px, rgba(0, 0, 0, 0.04) 11px),
        repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(0, 0, 0, 0.04) 10px, rgba(0, 0, 0, 0.04) 11px);
    pointer-events: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    line-height: 1.1;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 3rem;
    z-index: 1000;
    transition: var(--transition-fast);
}

.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.05);
    padding: 1.5rem 3rem;
}

.logo-text {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -1px;
    color: var(--color-light);
    transition: var(--transition-fast);
}

.hamburger {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 18px;
    z-index: 1001;
    background: transparent;
    border: none;
}

.hamburger .line {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--color-light);
    transition: var(--transition-fast);
}

.hamburger.dark-mode .line {
    background-color: var(--color-dark);
}

.hamburger.active .line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: var(--color-dark);
}
.hamburger.active .line:nth-child(2) {
    opacity: 0;
}
.hamburger.active .line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: var(--color-dark);
}

/* Off-Canvas Navigation */
.offcanvas-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    max-width: 500px;
    height: 100vh;
    background-color: var(--color-light);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    transition: var(--transition-slow);
}

.offcanvas-nav.active {
    left: 0;
    box-shadow: 20px 0 50px rgba(0,0,0,0.1);
}

.offcanvas-nav ul {
    list-style: none;
}

.offcanvas-nav ul li {
    margin: 1rem 0;
    overflow: hidden;
}

.offcanvas-nav ul li a {
    font-size: 3rem;
    font-weight: 500;
    color: var(--color-dark);
    display: inline-block;
    transform: translateY(100%);
    transition: var(--transition-slow);
}

.offcanvas-nav.active ul li a {
    transform: translateY(0);
}

.offcanvas-nav ul li:nth-child(1) a { transition-delay: 0.1s; }
.offcanvas-nav ul li:nth-child(2) a { transition-delay: 0.2s; }
.offcanvas-nav ul li:nth-child(3) a { transition-delay: 0.3s; }
.offcanvas-nav ul li:nth-child(4) a { transition-delay: 0.4s; }

.offcanvas-nav ul li a:hover {
    color: var(--color-accent);
}

.nav-footer {
    position: absolute;
    bottom: 3rem;
    left: 4rem;
    right: 4rem;
}

.nav-socials {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.nav-socials a {
    color: var(--color-dark);
    transition: var(--transition-fast);
}

.nav-socials a:hover {
    color: var(--color-accent);
    transform: translateY(-2px);
}

.nav-footer p {
    font-size: 0.8rem;
    color: var(--color-grey-mid);
    line-height: 1.5;
}

/* Slideshow Hero */
.hero-slideshow {
    position: relative;
    height: 100vh;
    width: 100%;
    background-color: var(--color-dark);
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02); /* Less zoom to prevent pixelation */
    transition: transform 8s ease-out, filter var(--transition-fast);
}

.slide.active img {
    transform: scale(1);
}

/* Subtle Hover Effect on Hero */
.hero-slideshow:hover .slide.active img {
    transform: scale(1.03);
    filter: brightness(0.7) saturate(1.2);
    transition: transform 4s ease-out, filter var(--transition-fast);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.8) 0%, rgba(10, 10, 10, 0.2) 50%, rgba(10, 10, 10, 0.6) 100%);
}

.slide-content {
    position: absolute;
    bottom: 5rem;
    left: 3rem;
    z-index: 10;
}

.slide-content h2 {
    font-size: 1.5rem; /* Made even smaller */
    color: var(--color-light);
    transform: translateY(30px);
    opacity: 0;
    transition: var(--transition-slow);
    transition-delay: 0.5s;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 8px;
    text-decoration-thickness: 1px;
}

.slide-title-link:hover {
    color: transparent;
    background: linear-gradient(
        120deg,
        var(--color-accent) 30%,
        #ffffff 50%,
        var(--color-accent) 70%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shimmer-text 2s linear infinite;
}

@keyframes shimmer-text {
    0% {
        background-position: 200% center;
    }
    100% {
        background-position: -200% center;
    }
}

.slide.active .slide-content h2 {
    transform: translateY(0);
    opacity: 1;
}

/* Hero Action Buttons */
.hero-actions {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    z-index: 20;
}

.btn-transparent {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: var(--color-light);
    background: rgba(255, 255, 255, 0.05); /* Slight glass effect */
    backdrop-filter: blur(5px);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    transition: var(--transition-fast);
    cursor: pointer;
}

.btn-transparent:hover {
    background: var(--color-light);
    color: var(--color-dark);
}

/* Slideshow Controls & Hero Socials */
.slideshow-controls {
    position: absolute;
    bottom: 5rem;
    right: 3rem;
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.slideshow-controls button {
    background: transparent;
    border: none;
    color: var(--color-light);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.slideshow-controls button:hover {
    color: var(--color-accent);
}

.hero-socials {
    position: absolute;
    bottom: 5rem;
    right: 3rem;
    display: flex;
    gap: 1.5rem;
    z-index: 10;
}

.hero-socials a {
    color: var(--color-light);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-socials a:hover {
    color: var(--color-accent);
    transform: translateY(-3px);
}

/* Content Blocks (Studio Forty Style) */
.block {
    padding: 8rem 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.block-dark {
    background-color: var(--color-dark);
    color: var(--color-light);
}

.block-light {
    background-color: transparent; /* Changed from var(--color-light) to let the background glow show through */
    color: var(--color-dark);
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-text {
    font-size: 4.5rem;
    font-weight: 400;
    letter-spacing: -2px;
    line-height: 1.1;
    max-width: 900px;
}

.sub-text {
    font-size: 1.5rem;
    color: var(--color-grey-tint);
    max-width: 600px;
    margin-top: 2rem;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
}

.service-item .icon-wrapper {
    width: 52px;
    height: 52px;
    margin-bottom: 1.5rem;
    color: var(--color-grey-tint);
    transition: color 0.4s ease;
}

.service-item:hover .icon-wrapper {
    color: var(--color-light);
}

.service-item .icon-wrapper svg {
    width: 100%;
    height: 100%;
}

.service-item h3 {
    font-size: 1.1rem;
    color: var(--color-light);
    font-weight: 300;
    letter-spacing: 2px;
    line-height: 1.4;
    text-transform: uppercase;
}

.two-col-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* Forces text on left, image on right. Text takes slightly more space */
    gap: 4rem;
    align-items: start; /* Aligns the top of the image perfectly even with the top of the text */
    width: 100%;
}

.col-text {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.col-image {
    display: flex;
    justify-content: flex-end;
}

.col-image img {
    width: 100%;
    max-width: 450px; /* Prevents the image from becoming too massive */
    height: auto;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    filter: saturate(1.1) contrast(1.05);
}

.block-dark .sub-text {
    color: var(--color-grey-tint);
}

.block-light .sub-text {
    color: var(--color-grey-mid);
}

.bg-crosshatch {
    background-color: #FFFFFF;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(0, 0, 0, 0.04) 10px, rgba(0, 0, 0, 0.04) 11px),
        repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(0, 0, 0, 0.04) 10px, rgba(0, 0, 0, 0.04) 11px);
}

.image-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    gap: 2rem;
    padding: 4rem;
    background-color: #FFFFFF;
}

.image-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #FFFFFF;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(0, 0, 0, 0.04) 10px, rgba(0, 0, 0, 0.04) 11px),
        repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(0, 0, 0, 0.04) 10px, rgba(0, 0, 0, 0.04) 11px);
    z-index: 0;
    pointer-events: none;
}

.hero-curve-bg {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 120px;
    z-index: 3;
    clip-path: url(#curve-clip);
    -webkit-clip-path: url(#curve-clip);
}

.grid-item {
    position: relative;
    height: 40vh; /* Reduced from 70vh to make them less tall */
    overflow: hidden;
    cursor: pointer;
    border-radius: 4px; /* Optional: adds a slight smoothing to the tile edges */
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.grid-item:hover img {
    transform: scale(1.02);
}

.grid-overlay {
    position: absolute;
    bottom: 3rem;
    left: 3rem;
    color: var(--color-light);
    z-index: 2;
}

.grid-overlay h3 {
    font-size: 1.6rem; /* Reduced to fit the new smaller grid width perfectly */
    margin-bottom: 0.5rem;
}

.grid-overlay p {
    font-size: 1.1rem;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.grid-tint {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(26,26,26,0.9), transparent);
    z-index: 1;
}

/* Contact Section */
.contact-layout {
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: stretch;
}

.col-contact-info {
    display: flex;
    flex-direction: column;
}

.contact-details {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 3rem 0;
}

.detail-item h4 {
    color: var(--color-accent);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.detail-item p {
    color: var(--color-light);
    font-size: 1.1rem;
    line-height: 1.5;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-light);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition-fast);
    outline: none;
    border-radius: 2px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.1);
}

.col-map {
    position: relative;
    width: 100%;
    min-height: 500px;
    border-radius: 4px;
    overflow: hidden;
}

.col-map iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: invert(90%) hue-rotate(180deg) contrast(1.1); /* Elegant dark map style */
}

/* Brands Marquee Loop (Nosotros Page) */
.brands-marquee {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 2rem 0;
    background: rgba(255, 255, 255, 0.02); /* Slight contrast band */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.brands-marquee::before,
.brands-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    width: 200px;
    height: 100%;
    z-index: 2;
}

.brands-marquee::before {
    left: 0;
    background: linear-gradient(to right, var(--color-dark) 0%, transparent 100%);
}

.brands-marquee::after {
    right: 0;
    background: linear-gradient(to left, var(--color-dark) 0%, transparent 100%);
}

.brands-track {
    display: inline-block;
    animation: marquee-scroll 30s linear infinite;
}

.brands-track img {
    height: 80px; /* Uniform height for brand logos */
    margin: 0 3rem;
    vertical-align: middle;
    filter: grayscale(100%) brightness(200%); /* Make them sharp white/grey */
    opacity: 0.6;
    transition: all 0.3s ease;
}

.brands-track img:hover {
    filter: none;
    opacity: 1;
    transform: scale(1.05);
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Footer */
.footer {
    background-color: var(--color-dark);
    color: var(--color-light);
    padding: 6rem 3rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: -1px;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.footer-links h4 {
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
    color: var(--color-grey-tint);
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(10, 10, 10, 0.4); /* Less heavy black, more transparent */
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    backdrop-filter: blur(15px); /* Strong frosted glass blur */
}

.lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 3rem;
    font-size: 3rem;
    color: var(--color-light);
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 2010;
    transition: var(--transition-fast);
}

.lightbox-close:hover {
    color: var(--color-accent);
}

.lightbox-content {
    width: 90%;
    max-width: 1400px;
    height: 80vh;
    position: relative;
    display: flex;
    gap: 2rem; /* Gap between image and text */
}

.lightbox-slider {
    position: relative;
    flex: 1; /* Takes up remaining space */
    height: 100%;
    overflow: hidden;
    background: transparent;
}

.lightbox-info {
    width: 350px;
    background: transparent;
    padding: 0 0 0 2rem;
    color: var(--color-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lightbox-info h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.lightbox-info p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-grey-tint);
}

.lightbox-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-slide.active {
    opacity: 1;
}

.lightbox-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.8));
}

/* Map Modal */
.map-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.map-modal.active {
    display: flex;
    opacity: 1;
}

.map-modal-content {
    width: 90%;
    max-width: 750px;
    height: 60vh;
    background: var(--color-dark);
    position: relative;
    border-radius: 8px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
}

.map-close {
    position: absolute;
    top: -3rem;
    right: 0;
    font-size: 2rem;
    color: var(--color-light);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.map-close:hover {
    color: var(--color-accent);
}

.lightbox-controls {
    position: absolute;
    bottom: -4rem;
    left: 0;
    width: calc(100% - 350px - 2rem); /* Center under the image area */
    display: flex;
    justify-content: center;
    gap: 2rem;
    z-index: 2010;
}

.lightbox-controls button {
    background: transparent;
    border: none;
    color: var(--color-light);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.lightbox-controls button:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-light);
}

/* -----------------------------
   Portfolio Page Hero
------------------------------ */
.portfolio-hero {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--color-dark);
}

.portfolio-hero .hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 1;
}

.portfolio-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    transform: translateY(-30px);
}

.portfolio-hero .hero-curve {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 120px;
    z-index: 3;
}

.stats-card {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    background: #ffffff;
    border: 1px solid #eaeaea;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    padding: 1.5rem 2.5rem;
    max-width: 800px;
    width: 90%;
    border-radius: 4px;
}

.stats-left {
    border-right: 1px solid #eaeaea;
    padding-right: 2rem;
    margin-right: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.stats-left .reviews-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    margin-top: 0.2rem;
}

.stats-right {
    font-size: 1.6rem;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .stats-card {
        flex-direction: column;
        padding: 1.5rem;
        text-align: center;
    }
    .stats-left {
        border-right: none;
        border-bottom: 1px solid #eaeaea;
        padding-right: 0;
        margin-right: 0;
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }
    .portfolio-hero .hero-curve {
        height: 60px;
    }
}

/* Responsive */
@media (max-width: 900px) {
    .two-col-layout { 
        grid-template-columns: 1fr; 
        gap: 2rem;
    }
    .col-image {
        justify-content: center;
    }
    .hero-text { font-size: 3rem; }
}

@media (max-width: 768px) {
    .site-header { padding: 1.5rem; }
    
    /* Hero Center Content */
    .hero-slideshow > div > h1.logo-text, .portfolio-hero .hero-content h1.logo-text { font-size: 4rem !important; }
    .hero-slideshow > div > p, .portfolio-hero .hero-content p { font-size: 0.9rem !important; margin-bottom: 2rem !important; letter-spacing: 3px !important; padding: 0 1rem; }
    .hero-buttons { flex-direction: column; gap: 1rem !important; padding: 0 2rem; }
    .hero-buttons .btn-transparent { width: 100%; text-align: center; }

    /* Slide Titles & Hero Socials (Bottom Aligned) */
    .slide-content { left: 1.5rem; bottom: 2rem; max-width: 65%; }
    .slide-content h2 { font-size: 1.5rem; line-height: 1.3; }
    
    .hero-socials { right: 1.5rem; bottom: 2rem; gap: 1rem; }
    .hero-socials a svg { width: 22px; height: 22px; }

    .hero-text { font-size: 2.5rem; }
    .block { padding: 4rem 1.5rem; }
    .image-grid { grid-template-columns: 1fr; }
    .grid-item { height: 50vh; }
    .grid-overlay { left: 1.5rem; bottom: 2rem; }
    .contact-layout { grid-template-columns: 1fr; gap: 4rem; }
    .col-map { min-height: 400px; }
    .footer-content { flex-direction: column; gap: 3rem; }
    .footer-links { flex-direction: column; gap: 2rem; }
    
    .nosotros-btn-container { display: flex; justify-content: center; }

    .services-grid { grid-template-columns: repeat(2, 1fr); }
    
    .offcanvas-nav { padding: 4rem 2rem; }
    .nav-footer { left: 2rem; right: 2rem; bottom: 2rem; }
}

@media (max-width: 600px) {
    html { font-size: 85%; }
    .services-grid { grid-template-columns: 1fr; }
    .hero-slideshow > div > h1.logo-text, .portfolio-hero .hero-content h1.logo-text { font-size: 3.5rem !important; }
    .offcanvas-nav ul li a { font-size: 2.5rem; }
    .lightbox-info h3 { font-size: 1.8rem; }
}
