@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --accent-color: #00f0ff;
    --accent-glow: rgba(0, 240, 255, 0.4);
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.1);
    --luxury-gold: #d4af37;
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

body {
    background-color: var(--bg-color); /* Fondo sólido por defecto para evitar blanco si el JS falla */
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

html {
    scroll-behavior: smooth;
}

/* Sección Inicial (Hero) */
.hero-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: auto;
}

#hero-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 960px;
    padding: 2rem 3rem;
    pointer-events: none;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 75%);
    border-radius: 50%;
}

.hero-content h1 {
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--accent-color);
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8), 0 0 40px var(--accent-glow);
}

.hero-title {
    color: var(--accent-color);
    text-shadow: 0 0 20px var(--accent-glow);
    font-weight: 800;
    font-size: clamp(1.8rem, 3.5vw, 3.2rem);
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    color: #ccc;
    margin-bottom: 2.5rem;
    letter-spacing: 1px;
}



.scroll-down {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    pointer-events: auto;
    transition: color 0.3s ease;
}

.scroll-down:hover {
    color: var(--accent-color);
}

.scroll-down i {
    margin-top: 10px;
    font-size: 1.5rem;
}

.animate-fade-in {
    animation: fadeIn 2s ease-out forwards;
}

.animate-slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 1s cubic-bezier(0.165, 0.84, 0.44, 1) 0.5s forwards;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-bounce i {
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Bloque de degradado para la transición */
.gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0), rgba(5, 5, 5, 1));
    z-index: 2;
    pointer-events: none;
}

/* Sección de Proyectos */
.projects-section {
    padding: 8rem 2rem 5rem;
    background-color: transparent;
    position: relative;
    z-index: 10;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 3px;
    background: linear-gradient(90deg, #fff, var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.section-header .line {
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 0 auto;
    border-radius: 2px;
    box-shadow: 0 0 10px var(--accent-color);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Tarjetas de Proyectos */
.cube-card {
    text-decoration: none;
    color: var(--text-color);
    position: relative;
    aspect-ratio: 1;
    perspective: 1000px;
    display: block;
    outline: none;
}

.cube-content {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Removed backdrop-filter for massive perf boost */
    transition: var(--transition);
    transform-style: preserve-3d;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5), 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    will-change: transform;
}

.cube-card:hover .cube-content {
    transform: translateZ(20px) rotateX(5deg) rotateY(5deg);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5), 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 20px var(--accent-glow);
}

.cube-card.feature-card:hover .cube-content {
    border-color: var(--accent-color);
    box-shadow: inset 0 0 20px rgba(0, 240, 255, 0.1), 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 30px var(--accent-glow);
}

/* Elementos de Tarjeta */
.icon-container {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: #888;
    transition: var(--transition);
    transform: translateZ(30px);
}

.cube-card.feature-card .icon-container {
    color: var(--accent-color);
    background: rgba(0, 240, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.cube-card:hover .icon-container {
    transform: translateZ(50px) scale(1.1);
}

.cube-card.feature-card:hover .icon-container {
    color: #fff;
    background: var(--accent-color);
    box-shadow: 0 0 30px var(--accent-color);
}

.cube-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transform: translateZ(20px);
    transition: var(--transition);
}

.cube-card.feature-card h3 {
    color: var(--accent-color);
}

.cube-card.feature-card:hover h3 {
    color: #fff;
    text-shadow: 0 0 10px var(--accent-color);
}

.cube-content .desc {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 1.5rem;
    transform: translateZ(10px);
    transition: var(--transition);
}

.status {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transform: translateZ(15px);
}

.status.locked {
    background: rgba(255, 255, 255, 0.05);
    color: #666;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.status.pulse {
    background: rgba(0, 240, 255, 0.1);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    box-shadow: 0 0 10px var(--accent-glow);
    animation: shadowPulse 2s infinite;
}

@keyframes shadowPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 240, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 240, 255, 0);
    }
}

/* Deshabilitar efecto para proyectos futuros */
.cube-card.disabled {
    cursor: default;
}

.cube-card.disabled:hover .cube-content {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5), 0 20px 40px rgba(0, 0, 0, 0.8);
}

.cube-card.disabled:hover h3 {
    color: #fff;
}

.cube-card.disabled:hover .icon-container {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.hero-image-container {
    width: 100%;
    height: 140px;
    margin-bottom: 1rem;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    transform: translateZ(30px);
    transition: var(--transition);
}

.card-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: brightness(0.8) contrast(1.2);
}

.gps-scan-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: transparent;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 0.4s ease;
    pointer-events: none;
}

.gps-scan-overlay::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.gps-scan-overlay::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    border: 1px solid rgba(0, 240, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.cube-card.feature-card:hover .gps-scan-overlay {
    opacity: 1;
    width: 180px;
    height: 180px;
    animation: radarPulse 1.5s infinite;
}

@keyframes radarPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.5;
    }
}

.cube-card.feature-card:hover .hero-image-container {
    transform: translateZ(50px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 20px var(--accent-glow);
}

.cube-card.feature-card:hover .card-hero-image {
    transform: scale(1.15);
    filter: brightness(1.1) drop-shadow(0 0 10px var(--accent-color));
}

/* Efecto de Brillo de Tarjeta */
.card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 0;
}

.cube-card.feature-card:hover .card-glow {
    opacity: 1;
}

/* --- NAVEGACIÓN (RESTAURADA) --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 5%;
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.navbar .logo span {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.8rem;
    color: #fff;
    cursor: pointer;
}

/* --- PIE DE PÁGINA (RESTAURADO) --- */
footer {
    padding: 5rem 2rem;
    text-align: center;
    background: rgba(5, 5, 5, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content .logo {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.footer-content p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.legal-links a {
    color: #888;
    text-decoration: none;
    transition: var(--transition);
}

.legal-links a:hover {
    color: var(--accent-color);
}

/* Sección Nosotros */
.about-section {
    padding: 8rem 2rem;
    background-color: transparent;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.about-content {
    display: flex;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.about-text p {
    color: #aaa;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.stats-container {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: default;
}

.stat-item:hover {
    transform: translateY(-8px) scale(1.05);
}

.stat-item:hover .stat-number {
    text-shadow: 0 0 25px rgba(0, 240, 255, 0.8);
    color: #fff;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color);
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
    transition: all 0.3s ease;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
}

.about-visual.multiple-images {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.ceo-card {
    position: relative;
    border-radius: 20px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    transition: transform 0.5s ease;
    cursor: default;
}

.ceo-card.portrait {
    width: 250px;
    height: 380px;
}

.ceo-card.landscape {
    width: 380px;
    height: 250px;
    align-self: flex-end; /* Offset it a bit to look dynamic */
}

.ceo-card:hover {
    transform: translateY(-15px) scale(1.02);
}

.glass-panel-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--card-bg);
    border: 1px solid var(--accent-color);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.1), inset 0 0 20px rgba(0, 240, 255, 0.05);
    border-radius: 20px;
    z-index: 0;
}

.ceo-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.85) saturate(1.1);
    transition: filter 0.5s ease;
}

.ceo-card:hover .ceo-img {
    filter: brightness(1) saturate(1.2);
}

.ceo-info {
    position: relative;
    z-index: 2;
    background: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.8) 60%, transparent 100%);
    width: 100%;
    padding: 3rem 1.5rem 1.5rem 1.5rem;
    text-align: center;
    bottom: -1rem; /* Adjust positioning */
    left: -1rem;
    width: calc(100% + 2rem);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.ceo-info h4 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 0.2rem;
    text-shadow: 0 0 15px rgba(0,240,255,0.7);
}

.ceo-title {
    font-size: 1rem;
    color: var(--accent-color);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

/* Sección de Contacto */
.contact-section {
    padding: 8rem 2rem;
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    position: relative;
}

.contact-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

.contact-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 3rem 2rem;
    flex: 1;
    min-width: 300px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    opacity: 0;
    transition: var(--transition);
    z-index: 3;
}

/* Brillo en Contacto */
.contact-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(400px circle at var(--mouse-x, -500px) var(--mouse-y, -500px), rgba(0, 240, 255, 0.15), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 0;
}

.contact-card>* {
    position: relative;
    z-index: 2;
}

.contact-card:hover {
    border-color: rgba(0, 240, 255, 0.3);
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.contact-card:hover::before,
.contact-card:hover::after {
    opacity: 1;
}

.icon-circle {
    width: 70px;
    height: 70px;
    background: rgba(0, 240, 255, 0.1);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.contact-card h3 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
    color: #fff;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-info a {
    color: #aaa;
    text-decoration: none;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: color 0.3s;
}

.contact-info a i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.contact-info a:hover {
    color: #fff;
}

/* Fondo de Cuadrícula Animado */
.bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 30px 30px;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    z-index: 1;
    pointer-events: none;
    opacity: 0.8;
}



/* Elementos Interactivos al Scroll */
.hidden-element {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hidden-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Pie de página */
footer {
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: transparent;
    margin-top: 5rem;
}

.footer-content .logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.footer-content .logo span {
    color: var(--accent-color);
}

.footer-content p {
    color: #666;
    font-size: 0.9rem;
}

/* Adaptabilidad (Responsive) */
@media (max-width: 900px) {
    .about-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .navbar .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        flex-direction: column;
        background: rgba(5, 5, 5, 0.98);
        padding-top: 6rem;
        padding-left: 2rem;
        transition: right 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        z-index: 99;
        border-left: 1px solid rgba(255, 255, 255, 0.05);
    }

    .navbar .nav-links.active {
        right: 0;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 101;
    }

    .cube-card {
        aspect-ratio: auto;
        min-height: 250px;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .summary {
        font-size: 0.9rem;
        padding: 1rem;
    }
}

/* --- SECCIÓN DE EQUIPO --- */
.team-section {
    padding: 8rem 2rem;
    background-color: transparent;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.team-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.team-member-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: transform 0.4s ease, filter 0.4s ease;
    cursor: default;
}

.team-member-card.visible {
    animation: slideUpFade 0.8s forwards;
}

@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.member-photo-container {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    position: relative;
    padding: 5px;
    background: linear-gradient(135deg, var(--accent-color), transparent, var(--accent-color));
    transition: var(--transition);
}

.member-photo-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50%;
    background: var(--bg-color);
    z-index: 1;
}

.member-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    filter: grayscale(20%) brightness(0.9);
    transition: var(--transition);
}

.team-member-card:hover .member-photo-container {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.4);
}

.team-member-card:hover .member-photo {
    filter: grayscale(0%) brightness(1.1);
}

.member-name {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.member-role {
    font-size: 0.9rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.member-desc {
    font-size: 0.95rem;
    color: #aaa;
    line-height: 1.5;
}

/* Reducción de columnas en dispositivos pequeños */
@media (max-width: 1024px) {
    .team-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .team-grid-container {
        grid-template-columns: 1fr;
    }
}


/* --- OPTIMIZACIONES IPHONE / MÓVIL --- */
@media (max-width: 768px) {
    body {
        padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    }

    .hero-content {
        padding: 1.5rem;
        width: 90%;
    }

    .hero-title {
        font-size: 2.2rem;
        letter-spacing: 1px;
    }

    .navbar {
        padding: 1rem 5%;
        backdrop-filter: blur(10px);
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
}