* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lexend', sans-serif;
    line-height: 1.6;
    color: #000;
    background-color: #fff;
    overflow-x: hidden;
}

.mist-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 50% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 80%, rgba(200,200,200,0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
    animation: mistDrift 20s ease-in-out infinite;
}

@keyframes mistDrift {
    0%, 100% {
        opacity: 0.5;
        transform: translateY(0px);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-20px);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 26, 46, 0.4);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
    z-index: 1000;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(26, 26, 46, 0.5);
    backdrop-filter: blur(50px) saturate(200%);
    -webkit-backdrop-filter: blur(50px) saturate(200%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 40px rgba(31, 38, 135, 0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 3px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #4B0082, #FF9500);
    transition: width 0.3s ease;
    display: block;
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Home Section */
.home {
    height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.mist-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse 800px 600px at 20% 30%, rgba(255,255,255,0.15) 0%, transparent 50%),
        radial-gradient(ellipse 600px 800px at 80% 70%, rgba(76, 205, 196, 0.1) 0%, transparent 50%);
    animation: mistFlow 15s ease-in-out infinite;
}

/* Granulado sutil */
.mist-background::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: 
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="50" height="50"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" result="noise" /></filter><rect width="50" height="50" fill="rgba(0,0,0,0.08)" filter="url(%23noise)"/></svg>');
    background-size: 50px 50px;
    background-repeat: repeat;
    opacity: 0.15;
    pointer-events: none;
}

@keyframes mistFlow {
    0%, 100% {
        transform: translateX(0) translateY(0);
        opacity: 0.6;
    }
    50% {
        transform: translateX(30px) translateY(-30px);
        opacity: 0.4;
    }
}

.home-content {
    position: relative;
    z-index: 10;
}

.home-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    font-weight: 00;
    letter-spacing: 4px;
    text-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.home-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: #ccc;
    font-weight: 300;
    letter-spacing: 1px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 40px;
}

.social-links a {
    color: #fff;
    font-size: 1.8rem;
    transition: all 0.8s ease;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    text-decoration: none;
}

.social-links a::before,
.social-links a::after {
    display: none;
}

.social-links a:hover {
    background: rgba(75, 0, 130, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(75, 0, 130, 0.3);
}

.cta-btn {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 200"><defs><linearGradient id="cassetGrad" x1="0%" y1="0%" x2="0%" y2="100%"><stop offset="0%%" style="stop-color:%23333333;stop-opacity:1" /><stop offset="100%%" style="stop-color:%23000000;stop-opacity:1" /></linearGradient><linearGradient id="metalGrad" x1="0%" y1="0%" x2="0%" y2="100%"><stop offset="0%%" style="stop-color:%23f5e6d3;stop-opacity:1" /><stop offset="50%%" style="stop-color:%23e6d4b8;stop-opacity:1" /><stop offset="100%%" style="stop-color:%23c9a227;stop-opacity:1" /></linearGradient><radialGradient id="reelShine" cx="35%" cy="35%"><stop offset="0%%" style="stop-color:%23ffffff;stop-opacity:0.8" /><stop offset="50%%" style="stop-color:%23ffffff;stop-opacity:0.2" /><stop offset="100%%" style="stop-color:%23ffffff;stop-opacity:0" /></radialGradient></defs><rect width="400" height="200" rx="15" fill="url(%23cassetGrad)" stroke="%23222" stroke-width="3"/><circle cx="20" cy="20" r="6" fill="%23666"/><circle cx="380" cy="20" r="6" fill="%23666"/><circle cx="20" cy="180" r="6" fill="%23666"/><circle cx="380" cy="180" r="6" fill="%23666"/><rect x="30" y="20" width="340" height="50" rx="8" fill="%23f5f5f5" stroke="%23e74c3c" stroke-width="3"/><text x="200" y="55" font-family="Courier New, monospace" font-size="18" font-weight="bold" fill="%23333" text-anchor="middle" letter-spacing="1">INICIA TU PROYECTO</text><rect x="30" y="85" width="340" height="80" rx="8" fill="%23FF9500"/><rect x="45" y="100" width="80" height="50" rx="5" fill="%23222"/><circle cx="65" cy="125" r="20" fill="url(%23metalGrad)"/><circle cx="65" cy="125" r="18" fill="%23333" opacity="0.7"/><circle cx="65" cy="125" r="14" fill="url(%23metalGrad)"/><circle cx="65" cy="125" r="10" fill="%23111" /><circle cx="65" cy="125" r="5" fill="url(%23reelShine)"/><rect x="135" y="100" width="130" height="50" rx="5" fill="%23222" opacity="0.8"/><circle cx="275" cy="125" r="20" fill="url(%23metalGrad)"/><circle cx="275" cy="125" r="18" fill="%23333" opacity="0.7"/><circle cx="275" cy="125" r="14" fill="url(%23metalGrad)"/><circle cx="275" cy="125" r="10" fill="%23111" /><circle cx="275" cy="125" r="5" fill="url(%23reelShine)"/><rect x="310" y="100" width="60" height="50" rx="5" fill="%23222"/><circle cx="25" cy="120" r="4" fill="%23fff" opacity="0.6"/><circle cx="40" cy="120" r="3" fill="%23fff" opacity="0.5"/><circle cx="345" cy="120" r="4" fill="%23fff" opacity="0.6"/><circle cx="360" cy="120" r="3" fill="%23fff" opacity="0.5"/><circle cx="25" cy="140" r="4" fill="%23fff" opacity="0.6"/><circle cx="40" cy="140" r="3" fill="%23fff" opacity="0.5"/><circle cx="345" cy="140" r="4" fill="%23fff" opacity="0.6"/><circle cx="360" cy="140" r="3" fill="%23fff" opacity="0.5"/></svg>') no-repeat center;
    background-size: contain;
    background-color: #1a1a1a;
    color: transparent;
    border: none;
    padding: 0;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 700;
    letter-spacing: 1.5px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
    position: relative;
    text-transform: uppercase;
    font-family: 'Courier New', 'OCR A', monospace;
    width: 400px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.cta-btn::before {
    content: '';
    display: none;
}

.cta-btn::after {
    content: '';
    display: none;
}

.cta-btn:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4), 0 8px 20px rgba(0, 0, 0, 0.6);
}

/* About Section */
.about {
    padding: 50px 50px 0;
    margin-top: 10px;
    background: #fff;
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse 1000px 400px at 50% 0%, rgba(76, 205, 196, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.about h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 50px;
    font-weight: 300;
    letter-spacing: 2px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.8;
    color: #333;
}

.about-stats {
    display: flex;
    justify-content: space-around;
    gap: 30px;
}

.stat {
    text-align: center;
    padding: 40px 30px;
    background: rgba(75, 0, 130, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(75, 0, 130, 0.2);
    transition: all 0.3s;
    flex: 1;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat:hover {
    background: rgba(75, 0, 130, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(75, 0, 130, 0.3);
}

.stat h3 {
    font-size: 3.2rem;
    background: linear-gradient(135deg, #4B0082, #FF9500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    font-weight: 700;
}

.stat p {
    color: #666;
    font-size: 1rem;
    font-weight: 500;
}

/* Services Section */
.services {
    padding: 50px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #fff 100%);
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(76, 205, 196, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.services h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 50px;
    font-weight: 300;
    letter-spacing: 2px;
}

.services-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.services-carousel-wrapper::before,
.services-carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.services-carousel-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #f5f7fa 0%, transparent 100%);
}

.services-carousel-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #f5f7fa 0%, transparent 100%);
}

.services-carousel {
    display: flex;
    gap: 40px;
    animation: scroll 60s linear infinite;
    width: max-content;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 15px;
    min-width: 280px;
    padding: 40px 25px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(76, 205, 196, 0.2);
    border-radius: 15px;
    transition: all 0.8s ease;
    position: relative;
    overflow: hidden;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 1.2s ease;
}

.service-item:hover::before {
    left: 100%;
}

.service-item:hover {
    transform: translateY(-15px);
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(75, 0, 130, 0.5);
    box-shadow: 0 20px 50px rgba(75, 0, 130, 0.2);
}

.service-item i {
    font-size: 3.5rem;
    background: linear-gradient(135deg, #4B0082, #FF9500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #000;
    margin-top: 10px;
}

.service-item p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin-top: 5px;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Projects Section */
.projects {
    padding: 50px 0;
    background: #fff;
    position: relative;
}

.projects::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 300px;
    background: radial-gradient(ellipse 1000px 300px at 50% 100%, rgba(76, 205, 196, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.projects h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 50px;
    font-weight: 300;
    letter-spacing: 2px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
}

.project-card {
    border: 2px solid rgba(0, 0, 0, 0.1);
    padding: 30px;
    transition: all 1.2s ease;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
                                rgba(75, 0, 130, 0.25) 0%, 
                                rgba(255, 149, 0, 0.15) 40%, 
                                transparent 70%);
    opacity: 0;
    transition: opacity 1.2s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: none;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    border-color: rgba(75, 0, 130, 0.5);
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2), 
                0 0 30px rgba(75, 0, 130, 0.3),
                0 0 20px rgba(255, 149, 0, 0.2);
    filter: blur(0px);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.project-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
}

.project-links {
    display: flex;
    gap: 10px;
}

.project-links a {
    color: inherit;
    font-size: 1.2rem;
    transition: all 0.8s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(75, 0, 130, 0.2);
}

.project-links a:hover {
    background: linear-gradient(135deg, #4B0082, #FF9500);
    color: #fff;
    transform: scale(1.1);
}

.project-card p {
    margin-bottom: 20px;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

.project-tech {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.project-tech span {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    color: #1a1a1a;
    padding: 6px 14px;
    font-size: 0.8rem;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.8s ease;
    border: 1px solid #d0d0d0;
    box-shadow: inset 0 0 15px rgba(255, 200, 0, 0.08);
}

.project-card:hover .project-tech span {
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    border: 1px solid rgba(255, 200, 0, 0.3);
    box-shadow: 0 0 20px rgba(255, 200, 0, 0.15), inset 0 0 15px rgba(255, 200, 0, 0.1);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.contact::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: 
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="50" height="50"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" result="noise" /></filter><rect width="50" height="50" fill="rgba(0,0,0,0.08)" filter="url(%23noise)"/></svg>');
    background-size: 50px 50px;
    background-repeat: repeat;
    opacity: 0.05;
    pointer-events: none;
    z-index: 1;
}

.contact::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse 800px 500px at 20% 50%, rgba(76, 205, 196, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 600px 400px at 80% 50%, rgba(255, 107, 107, 0.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.contact h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 50px;
    font-weight: 300;
    letter-spacing: 2px;
    position: relative;
    z-index: 2;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    position: relative;
    z-index: 2;
    align-items: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    font-size: 1.4rem;
    transition: all 0.3s;
}

.contact-item:hover {
    transform: translateX(10px);
}

.contact-item i {
    font-size: 2rem;
    background: linear-gradient(135deg, #4B0082, #FF9500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 1rem;
    font-family: 'Lexend', sans-serif;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    transition: all 0.8s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #4ecdc4;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(76, 205, 196, 0.3);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #aaa;
}

.contact-form button {
    background: linear-gradient(135deg, #4B0082 0%, #FF9500 100%);
    color: #fff;
    border: none;
    padding: 15px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.8s ease;
    font-weight: 600;
    border-radius: 10px;
    letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(75, 0, 130, 0.3);
    position: relative;
    overflow: hidden;
}

.contact-form button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0s;
    pointer-events: none;
}

.contact-form button.light-sweep::before {
    animation: lightSweep 0.8s ease forwards;
}

.contact-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(75, 0, 130, 0.5);
}

/* Footer */
.footer {
    background: #2a0147;
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: #ccc;
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    box-shadow: 0 -8px 32px rgba(37, 37, 37, 0.1);
}

.footer p {
    color: #ffffff;
    font-size: 0.95rem;
}

@keyframes lightSweep {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Animación de rotación del casete - solo las ruedas */
@keyframes casseteSpin {
    0% {
        filter: drop-shadow(0 0 0px rgba(0, 0, 0, 0));
    }
    100% {
        filter: drop-shadow(0 0 0px rgba(0, 0, 0, 0));
    }
}

.cta-btn:hover::before {
    animation: spinLeft 0.6s linear infinite;
}

.cta-btn:hover::after {
    animation: spinRight 0.6s linear infinite;
}

@keyframes spinLeft {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes spinRight {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(-360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.1);
        padding: 20px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .home-content h1 {
        font-size: 2.5rem;
    }
    
    .home-content p {
        font-size: 1rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Caja del equipo con focos laterales */
.team-section {
    position: relative;
    overflow: hidden;
    margin: 80px auto;
    padding: 70px 28px 52px;
    text-align: center;
    background: #111;
    color: #f5f5f5;
    border-radius: 20px;
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.35),
        0 30px 80px rgba(0, 0, 0, 0.25);
}

/* Focos */
.team-section::before,
.team-section::after {
    content: '';
    position: absolute;
    top: -20%;
    width: 50%;
    height: 140%;
    pointer-events: none;
    background: radial-gradient(ellipse at 10% 30%,
        rgba(255, 255, 255, 0.20) 0%,
        rgba(255, 255, 255, 0.06) 22%,
        rgba(255, 255, 255, 0.00) 60%);
    filter: blur(16px);
    opacity: 0.9;
}

/* Foco izquierdo */
.team-section::before {
    left: -25%;
    transform: rotate(-8deg);
}

/* Foco derecho */
.team-section::after {
    right: -25%;
    transform: rotate(8deg);
    background: radial-gradient(ellipse at 90% 30%,
        rgba(255, 255, 255, 0.20) 0%,
        rgba(255, 255, 255, 0.06) 22%,
        rgba(255, 255, 255, 0.00) 60%);
}

/* Título y texto */
.team-section h3 {
    font-size: 1.9rem;
    letter-spacing: 0.6px;
    font-weight: 700;
    margin-bottom: 14px;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

.team-section > p {
    max-width: 720px;
    margin: 0 auto 44px;
    color: #d9d9d9;
    font-size: 1.02rem;
    line-height: 1.65;
}

/* Oculta el <p> si está vacío */
.team-section > p:empty {
    display: none;
}

/* Tarjetas del equipo */
.team {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 60px;
}

.member {
    width: 280px;
    padding: 0 12px 12px;
    background: transparent;
    border: none;
    color: inherit;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.member:hover {
    transform: translateY(-6px) scale(1.01);
    opacity: 0.98;
}

.member img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 18px;
    display: block;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
}

.member h4 {
    font-size: 1.35rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.member p {
    font-size: 0.98rem;
    line-height: 1.55;
    color: #d0d0d0;
}

/* Responsive */
@media (max-width: 768px) {
    .team {
        gap: 40px;
    }
    .member {
        width: 240px;
    }
    .member img {
        width: 150px;
        height: 150px;
    }
    .team-section h3 {
        font-size: 1.7rem;
    }
}