/* ========================================
   ANALOGO & DIGITAL - Full Site
   ======================================== */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

:root {
    --primary-red: #D0071C;
    --dark-red: #9B0014;
    --white: #FFFFFF;
    --white-soft: rgba(255, 255, 255, 0.85);
    --black-soft: rgba(0, 0, 0, 0.06);
    --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    font-family: 'Urbanist', sans-serif;
    background-color: var(--primary-red);
    color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    border-top: 5px solid var(--primary-red);
}

/* ========== NAVIGATION ========== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 50px;
    transition: all 0.4s var(--transition-smooth);
}

.nav.scrolled {
    padding: 12px 50px;
    background: rgba(168, 5, 20, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav-logo-img {
    height: 48px;
    width: auto;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav.scrolled .nav-logo-img {
    height: 40px;
}

.nav-logo-img:hover {
    opacity: 0.85;
    transform: scale(1.04);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 55px;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-family: 'Urbanist', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: opacity 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--white);
    transition: width 0.35s var(--transition-smooth);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    opacity: 0.85;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 101;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--white);
    transition: all 0.35s var(--transition-smooth);
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5.5px, 5.5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5.5px, -5.5px);
}

/* ========== PARTICLES ========== */

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    animation: float 15s infinite ease-in-out;
}

.particle:nth-child(1) { width: 6px; height: 6px; left: 10%; animation-delay: 0s; animation-duration: 20s; }
.particle:nth-child(2) { width: 4px; height: 4px; left: 25%; animation-delay: 2s; animation-duration: 18s; }
.particle:nth-child(3) { width: 8px; height: 8px; left: 40%; animation-delay: 4s; animation-duration: 22s; }
.particle:nth-child(4) { width: 3px; height: 3px; left: 55%; animation-delay: 1s; animation-duration: 16s; }
.particle:nth-child(5) { width: 5px; height: 5px; left: 70%; animation-delay: 3s; animation-duration: 19s; }
.particle:nth-child(6) { width: 7px; height: 7px; left: 85%; animation-delay: 5s; animation-duration: 21s; }
.particle:nth-child(7) { width: 4px; height: 4px; left: 15%; animation-delay: 6s; animation-duration: 17s; }
.particle:nth-child(8) { width: 6px; height: 6px; left: 60%; animation-delay: 7s; animation-duration: 23s; }

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ========== HERO SECTION ========== */

.hero {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 40px;
    position: relative;
    z-index: 10;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    padding: 120px 0 50px;
    width: 100%;
    max-width: 900px;
    animation: heroEntrance 1.5s var(--transition-smooth);
}

.hero-top {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

@keyframes heroEntrance {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.97);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-container {
    position: relative;
    width: 250px;
    height: 250px;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.35));
    transition: all 0.5s var(--transition-smooth);
    cursor: pointer;
    animation: floatLogo 6s ease-in-out infinite;
}

@keyframes floatLogo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.logo-container:hover {
    transform: scale(1.08) rotate(-2deg);
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}

.logo-img {
    width: 250px;
    height: auto;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.3s ease;
}

.logo-digital {
    z-index: 2;
    animation: smoothFade 8s ease-in-out infinite;
}

.logo-analog {
    z-index: 1;
}

@keyframes smoothFade {
    0%, 35% { opacity: 1; }
    50%, 85% { opacity: 0; }
    100% { opacity: 1; }
}

.text-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.brand-name {
    font-family: 'Urbanist', sans-serif;
    font-size: 104px;
    line-height: 0.95;
    font-weight: 900;
    display: flex;
    align-items: center;
}

.analogo {
    color: var(--white);
}

.ampersand {
    font-family: 'Urbanist', sans-serif;
    font-size: 60px;
    font-weight: 900;
    margin: 0 5px;
    display: inline-block;
    vertical-align: middle;
    opacity: 0.9;
}

.digital {
    color: transparent;
    background-image: repeating-linear-gradient(to bottom,
        var(--white) 0px, var(--white) 4px,
        transparent 4px, transparent 8px);
    -webkit-background-clip: text;
    background-clip: text;
}

.tagline {
    font-family: 'Urbanist', sans-serif;
    font-size: 15px;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0;
    margin-top: 14px;
    animation: fadeInUpTracking 1.8s var(--transition-smooth) 0.6s both;
}

@keyframes fadeInUpTracking {
    0% {
        opacity: 0;
        letter-spacing: 1px;
        transform: translateY(12px);
    }
    100% {
        opacity: 0.85;
        letter-spacing: 4px;
        transform: translateY(0);
    }
}

.hero-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    animation: heroEntrance 1.5s var(--transition-smooth) 0.4s both;
}

.contact-link {
    color: var(--white);
    text-decoration: none;
    font-family: 'Urbanist', sans-serif;
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 2px;
    transition: all 0.35s ease;
    padding: 8px 14px;
    opacity: 0.7;
}

.contact-link:hover {
    opacity: 1;
    letter-spacing: 3px;
}

/* ========== SHARED SECTION STYLES ========== */

.section-title-bold {
    font-family: 'Urbanist', sans-serif;
    font-size: 40px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.section-title-dark {
    font-family: 'Urbanist', sans-serif;
    font-size: 96px;
    font-weight: 900;
    color: var(--primary-red);
    letter-spacing: 1px;
    line-height: 1;
}

.section-title-dark-bold {
    font-family: 'Urbanist', sans-serif;
    font-size: 40px;
    font-weight: 700;
    color: var(--primary-red);
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.section-cherry {
    width: 114px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.4s var(--transition-smooth);
}

.section-cherry:hover {
    transform: scale(1.06) rotate(-3deg);
}

/* ========== REVEAL ANIMATIONS ========== */

.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.7s ease, transform 0.7s var(--transition-smooth);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== MARQUEE BAND ========== */

.marquee-band {
    position: relative;
    z-index: 10;
    background: var(--dark-red);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
    overflow: hidden;
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
    will-change: transform;
}

.marquee-item {
    font-family: 'Urbanist', sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    padding: 0 30px;
    white-space: nowrap;
}

.marquee-sep {
    color: var(--primary-red);
    font-size: 18px;
    font-family: 'Urbanist', sans-serif;
    font-style: normal;
    opacity: 0.7;
    flex-shrink: 0;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ========== SERVICIOS SECTION ========== */

.servicios {
    position: relative;
    z-index: 10;
    width: 100%;
    background: var(--white);
}

.servicios-header-band {
    background: var(--white);
    border-bottom: 4px solid var(--primary-red);
    padding: 52px 88px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.servicio-card {
    padding: 68px 62px 75px;
    border-right: 1px solid rgba(0, 0, 0, 0.07);
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    position: relative;
    overflow: hidden;
    transition: background 0.4s var(--transition-smooth),
                color 0.4s ease;
}

.servicio-card:nth-child(3n) {
    border-right: none;
}

.servicio-card:nth-child(4),
.servicio-card:nth-child(5),
.servicio-card:nth-child(6) {
    border-bottom: none;
}

.servicio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--primary-red);
    transition: height 0.45s var(--transition-smooth);
}

.servicio-card:hover::before {
    height: 100%;
}

.servicio-card:hover {
    background: var(--primary-red);
}

.servicio-card:hover .servicio-num {
    color: rgba(255, 255, 255, 0.45);
    opacity: 1;
}

.servicio-card:hover .servicio-name {
    color: var(--white);
}

.servicio-card:hover .servicio-desc {
    color: rgba(255, 255, 255, 0.65);
}

.servicio-card:hover .servicio-features li {
    color: rgba(255, 255, 255, 0.85);
}

.servicio-card:hover .servicio-features li::before {
    color: rgba(255, 255, 255, 0.35);
    opacity: 1;
}

.servicio-num {
    display: block;
    font-family: 'Urbanist', sans-serif;
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 3px;
    color: var(--primary-red);
    opacity: 0.5;
    margin-bottom: 18px;
    transition: color 0.4s ease, opacity 0.4s ease;
}

.servicio-name {
    font-family: 'Urbanist', sans-serif;
    font-size: 40px;
    font-weight: 800;
    color: var(--primary-red);
    letter-spacing: 1px;
    margin-bottom: 20px;
    line-height: 1.05;
    transition: color 0.4s ease;
}

.servicio-desc {
    font-size: 14px;
    line-height: 1.85;
    font-weight: 300;
    color: #666;
    margin-bottom: 24px;
    font-family: 'Urbanist', sans-serif;
    transition: color 0.4s ease;
}

.servicio-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.servicio-features li {
    font-family: 'Urbanist', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #3a3a3a;
    letter-spacing: 0.5px;
    padding-left: 18px;
    position: relative;
    transition: color 0.4s ease;
}

.servicio-features li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--primary-red);
    font-size: 10px;
    opacity: 0.7;
    transition: color 0.4s ease, opacity 0.4s ease;
}

/* ========== PROYECTOS SECTION ========== */

.proyectos {
    position: relative;
    z-index: 10;
    width: 100%;
    background-color: var(--primary-red);
    padding-bottom: 4px;
}

.proyectos-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    background: var(--white);
    padding: 34px 56px;
}

.proyectos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 4px;
}

/* ---- Card Link ---- */

.proyecto-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* ---- Card ---- */

.proyecto-card {
    background: var(--white);
    overflow: hidden;
    cursor: default;
    transition: transform 0.35s var(--transition-smooth),
                box-shadow 0.35s ease;
}

.proyecto-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
    z-index: 2;
    position: relative;
}

/* ---- Image area ---- */

.proyecto-card-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    background:
        repeating-linear-gradient(
            -45deg,
            rgba(0, 0, 0, 0.06) 0px,
            rgba(0, 0, 0, 0.06) 1px,
            transparent 1px,
            transparent 14px
        ),
        linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Real image (add src when ready) */
.proyecto-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    display: block;
    transition: transform 0.5s var(--transition-smooth);
}

.proyecto-card-img img:not([src]),
.proyecto-card-img img[src=""] {
    display: none;
}

.proyecto-card:hover .proyecto-card-img img {
    transform: scale(1.04);
}

/* Placeholder number shown when no image */
.proyecto-card-img img:not([src]) ~ .proyecto-ph,
.proyecto-card-img img[src=""] ~ .proyecto-ph {
    display: flex;
}

.proyecto-ph {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.proyecto-ph-num {
    font-family: 'Urbanist', sans-serif;
    font-size: 120px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.1);
    letter-spacing: 2px;
    line-height: 1;
}

.proyecto-ph-label {
    font-family: 'Urbanist', sans-serif;
    font-size: 10px;
    font-weight: 300;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
}

/* ---- Card info ---- */

.proyecto-card-info {
    padding: 28px 32px 32px;
    border-top: 5px solid var(--primary-red);
}

.proyecto-card-num {
    display: block;
    font-family: 'Urbanist', sans-serif;
    font-size: 10px;
    font-weight: 300;
    letter-spacing: 3px;
    color: var(--primary-red);
    opacity: 0.5;
    margin-bottom: 8px;
}

.proyecto-card-name {
    font-family: 'Urbanist', sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: var(--primary-red);
    letter-spacing: 1px;
    line-height: 1.05;
    margin-bottom: 14px;
    transition: letter-spacing 0.3s var(--transition-smooth);
}

.proyecto-card:hover .proyecto-card-name {
    letter-spacing: 4px;
}

.proyecto-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.proyecto-card-type {
    font-family: 'Urbanist', sans-serif;
    font-size: 10px;
    font-weight: 400;
    color: #888;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.proyecto-card-domain {
    font-family: 'Urbanist', sans-serif;
    font-size: 10px;
    font-weight: 300;
    color: var(--primary-red);
    letter-spacing: 1px;
    opacity: 0.6;
    white-space: nowrap;
}

/* ========== NOSOTROS SECTION ========== */

.nosotros {
    position: relative;
    z-index: 10;
    width: 100%;
    background-color: var(--primary-red);
    background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 28px 28px;
    padding: 125px 88px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nosotros-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    background: var(--white);
    padding: 34px 56px;
    margin-bottom: 88px;
    margin-left: 35%;
    border-left: 6px solid var(--primary-red);
}

.nosotros-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}

.team-member {
    text-align: justify;
}

.member-name {
    font-family: 'Urbanist', sans-serif;
    font-size: 58px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--white);
    margin-bottom: 22px;
    line-height: 1;
    position: relative;
    padding-bottom: 18px;
}

.member-name::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.18);
}

.member-role {
    font-family: 'Urbanist', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 18px;
}

.team-member p {
    font-size: 15px;
    line-height: 1.85;
    font-weight: 300;
    color: var(--white-soft);
}

/* ========== CONTACTO SECTION ========== */

.contacto {
    position: relative;
    z-index: 10;
    width: 100%;
    background-color: var(--primary-red);
    background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 28px 28px;
    padding: 125px 88px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.contacto-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    background: var(--white);
    padding: 34px 56px;
    margin-bottom: 88px;
    margin-left: 35%;
    border-left: 6px solid var(--primary-red);
}

.contacto-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: start;
}

.contacto-subtitle {
    font-family: 'Urbanist', sans-serif;
    font-size: 45px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--white);
    margin-bottom: 32px;
}

.contacto-form {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contacto-form label {
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 1px;
    color: var(--white-soft);
    margin-top: 12px;
}

.contacto-form label:first-child {
    margin-top: 0;
}

.contacto-form input,
.contacto-form textarea {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 2px solid var(--white);
    background: transparent;
    font-family: 'Urbanist', sans-serif;
    font-size: 15px;
    color: var(--white);
    outline: none;
    transition: border-color 0.3s ease;
}

.contacto-form input::placeholder,
.contacto-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.contacto-form input:focus,
.contacto-form textarea:focus {
    border-bottom-color: rgba(255, 255, 255, 0.6);
}

.contacto-form textarea {
    resize: vertical;
    min-height: 120px;
    border: 2px solid var(--white);
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    margin-top: 4px;
}

.contacto-form textarea:focus {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.08);
}

.btn-enviar {
    font-family: 'Urbanist', sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 5px;
    color: var(--white);
    background: transparent;
    border: 2px solid var(--white);
    padding: 18px 45px;
    cursor: pointer;
    transition: all 0.35s var(--transition-smooth);
    margin-top: 30px;
    align-self: stretch;
    text-align: center;
    width: 100%;
}

.btn-enviar:hover {
    background: var(--white);
    color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
    letter-spacing: 7px;
}

.btn-enviar:active {
    transform: translateY(0);
}

.contacto-info {
    display: flex;
    flex-direction: column;
    gap: 22px;
    align-items: flex-end;
    text-align: right;
    padding-top: 60px;
}

.contacto-info a {
    color: var(--white);
    text-decoration: none;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 1px;
    transition: opacity 0.3s;
    position: relative;
}

.contacto-info a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 1px;
    background: var(--white);
    transition: width 0.35s var(--transition-smooth);
}

.contacto-info a:hover::after {
    width: 100%;
}

.contacto-info a:hover {
    opacity: 0.85;
}

.contacto-info p {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--white);
    line-height: 1.6;
    opacity: 0.85;
}

/* ========== FOOTER ========== */

.site-footer {
    position: relative;
    z-index: 10;
    background: var(--dark-red);
    padding: 50px 50px 35px;
    overflow: hidden;
}

.site-footer::before {
    content: 'AD';
    position: absolute;
    right: -20px;
    bottom: -30px;
    font-family: 'Urbanist', sans-serif;
    font-size: 200px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.04);
    letter-spacing: -10px;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    height: 42px;
    width: auto;
    border-radius: 4px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 1;
}

.footer-copy {
    font-size: 13px;
    letter-spacing: 2px;
    opacity: 0.4;
    font-weight: 300;
}

/* ========== TOAST ========== */

.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(0, 0, 0, 0.88);
    color: var(--white);
    padding: 14px 28px;
    border-radius: 50px;
    font-family: 'Urbanist', sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 1px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
    pointer-events: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 1200px) {
    .proyecto-card-name {
        font-size: 22px;
    }

    .servicio-card {
        padding: 45px 38px 50px;
    }
}

@media (max-width: 1024px) {
    .servicios-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .servicio-card:nth-child(3n) {
        border-right: 1px solid rgba(0, 0, 0, 0.07);
    }

    .servicio-card:nth-child(2n) {
        border-right: none;
    }

    .servicio-card:nth-child(4),
    .servicio-card:nth-child(5),
    .servicio-card:nth-child(6) {
        border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    }

    .servicio-card:nth-child(5),
    .servicio-card:nth-child(6) {
        border-bottom: none;
    }

    .nosotros-header,
    .contacto-header {
        margin-left: 10%;
    }

    .nosotros-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contacto-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .contacto-info {
        align-items: flex-start;
        text-align: left;
        padding-top: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 30px;
    }

    .contacto-info a::after {
        right: auto;
        left: 0;
    }

    .nosotros,
    .contacto {
        padding: 80px 50px;
    }

    .proyectos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 12px 20px;
    }

    .nav.scrolled {
        padding: 10px 20px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        height: 100dvh;
        background: rgba(148, 4, 18, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 35px;
        transition: right 0.45s var(--transition-smooth);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.2);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        font-size: 18px;
        letter-spacing: 3px;
    }

    .hero {
        padding: 0 20px;
    }

    .hero-content {
        padding: 100px 0 40px;
    }

    .logo-container {
        width: 170px;
        height: 170px;
    }

    .logo-img {
        width: 170px;
    }

    .brand-name {
        font-size: 52px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .tagline {
        font-size: 12px;
        text-align: center;
        letter-spacing: 3px;
    }

    .servicios-header-band {
        padding: 32px 25px;
        justify-content: center;
    }

    .servicios-grid {
        grid-template-columns: 1fr;
    }

    .servicio-card {
        padding: 40px 25px 45px;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    }

    .servicio-card:nth-child(3n),
    .servicio-card:nth-child(2n) {
        border-right: none;
    }

    .servicio-card:nth-child(5),
    .servicio-card:nth-child(6) {
        border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    }

    .servicio-card:last-child {
        border-bottom: none;
    }

    .proyectos-grid {
        grid-template-columns: 1fr;
        gap: 3px;
        padding: 3px;
    }

    .proyecto-card-name {
        font-size: 22px;
    }

    .nosotros-header,
    .contacto-header {
        margin-left: 0;
        justify-content: center;
    }

    .nosotros-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .nosotros,
    .contacto {
        padding: 60px 25px;
    }

    .section-title-bold,
    .section-title-dark-bold {
        font-size: 32px;
    }

    .section-title-dark {
        font-size: 38px;
    }

    .member-name {
        font-size: 30px;
    }

    .contacto-subtitle {
        font-size: 26px;
    }

    .team-member {
        text-align: left;
    }

    .member-name::after {
        width: 30px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .brand-name {
        font-size: 40px;
        flex-direction: column;
        gap: 2px;
    }

    .ampersand {
        font-size: 22px;
        margin: 3px 0;
        opacity: 0.5;
    }

    .hero-contact {
        width: 100%;
    }

    .contact-link {
        font-size: 12px;
        letter-spacing: 1px;
        padding: 12px;
        width: 100%;
        text-align: center;
        background: rgba(0, 0, 0, 0.08);
        border-radius: 8px;
        display: block;
        opacity: 0.8;
    }

    .logo-container {
        width: 140px;
        height: 140px;
    }

    .logo-img {
        width: 140px;
    }

    .section-cherry {
        width: 70px;
    }

    .nosotros-header,
    .contacto-header {
        padding: 20px 25px;
    }

    .servicio-name {
        font-size: 26px;
    }

    .proyecto-card-name {
        font-size: 18px;
    }
}

/* ========== ACCESSIBILITY ========== */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .tagline {
        opacity: 0.85;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

@media (hover: none) {
    .logo-container:hover {
        transform: none;
        filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.35));
    }

    .contact-link:hover {
        letter-spacing: 3px;
    }

    .btn-enviar:hover {
        transform: none;
        box-shadow: none;
    }

    .servicio-card:hover {
        background: transparent;
    }

    .servicio-card::before {
        display: none;
    }
}
