/* ===== RESET Y VARIABLES GLOBALES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0066cc;
    --secondary-color: #193051;
    --accent-color: #00d4ff;
    --dark-bg: #e0e8f5;
    --light-text: #ffffff;
    --muted-text: #a0a0a0;
    --border-color: #193051;
    --header-bg: #ffffff;
}

.main-content {
    padding: 10px 5px;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1a2f4d 100%);
    color: var(--light-text);
    line-height: 1.6;
}

/* ===== HEADER Y NAVEGACIÓN ===== */
.header {
    background: linear-gradient(135deg, #2379A7 0%, #195f82 100%);
    border-bottom: 2px solid var(--accent-color);
    padding: 1rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.1);
    width: 100%;
    min-height: 70px;
    display: flex;
    align-items: center;
}

.header-container {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}

.logo-innova {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-innova img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: 1rem;
    list-style: none;
    align-items: center;
}

.nav-link {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    padding: 0.5rem 0.6rem;
    border-bottom: 2px solid transparent;
    font-size: 0.85rem;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 0.3rem;
    padding: 0;
    width: 30px;
    height: 28px;
    justify-content: center;
    flex-shrink: 0;
    align-items: center;
    transition: all 0.3s ease;
}

.menu-toggle span {
    width: 24px;
    height: 2.5px;
    background: var(--accent-color);
    transition: all 0.3s ease;
    border-radius: 2px;
    display: block;
}

.menu-toggle:hover {
    transform: scale(1.1);
}

.menu-toggle:hover span {
    opacity: 0.8;
}

/* Animación del menú hamburguesa cuando está activo */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    height: 500px;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.7) 0%, rgba(0, 51, 102, 0.7) 100%), 
                url('IMAGENES/WhatsApp Image 2026-03-17 at 10.12.50.jpeg') center/contain no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--light-text);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--light-text);
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.cta-button {
    background: var(--accent-color);
    color: var(--secondary-color);
    padding: 0.875rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.cta-button:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.5);
}

.hero-arrow {
    position: absolute;
    bottom: 2%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-arrow i {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: white;
    display: block;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* Media queries para responsive */
@media (max-width: 768px) {
    .hero-arrow i {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero-arrow i {
        font-size: 1.5rem;
    }
}

/* ===== MAIN CONTENT ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.main-content {
    flex: 1;
}

/* ===== SECCIONES ===== */
.about-section,
.gallery-section,
.videos-section {
    padding: 5rem 0;
}

.about-section {
    background: linear-gradient(180deg, #1a2f4d 0%, #0f1620 100%);
}

.gallery-section {
    background: linear-gradient(180deg, #0f1620 0%, #1a2f4d 100%);
}

.videos-section {
    background: linear-gradient(180deg, #1a2f4d 0%, #0f1620 100%);
}

.servicios-section {
    background: linear-gradient(180deg, #0f1620 0%, #1a2f4d 100%);
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--light-text);
    font-weight: bold;
}

.section-subtitle {
    text-align: center;
    color: var(--muted-text);
    margin-bottom: 3rem;
    font-size: 1rem;
}

/* ===== GRID DE TARJETAS SOBRE NOSOTROS ===== */
.about-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.about-card {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.15) 0%, rgba(0, 212, 255, 0.1) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.about-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.2);
    transform: translateY(-5px);
}

.card-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.about-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--light-text);
}

.about-card p {
    color: var(--muted-text);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ===== TARJETAS MISIÓN Y VISIÓN ===== */
.mission-card,
.vision-card {
    grid-column: span 2;
    padding: 3rem;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mission-card {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.25) 0%, rgba(0, 212, 255, 0.15) 100%);
}

.vision-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(0, 102, 204, 0.25) 100%);
}

.mission-card h3,
.vision-card h3 {
    font-size: 1.8rem;
}

.mission-card p,
.vision-card p {
    font-size: 1.1rem;
}

/* ===== GRID DE SERVICIOS ===== */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.servicio-card {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.15) 0%, rgba(0, 212, 255, 0.1) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.servicio-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.2);
    transform: translateY(-5px);
}

.servicio-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--light-text);
}

.servicio-card p {
    color: var(--muted-text);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ===== GALERÍA DE FOTOS ===== */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    height: 300px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 212, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-overlay h3 {
    color: white;
    font-size: 1.5rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* ===== GALERÍA DE VIDEOS ===== */
.video-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.video-item {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.video-item iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-label {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: var(--light-text);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: bold;
}

/* ===== SECCIÓN MI EQUIPO ===== */
.team-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, #0f1620 0%, #1a2f4d 100%);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

.team-card {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1) 0%, rgba(0, 212, 255, 0.05) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-align: center;
}

.team-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.2);
    transform: translateY(-8px);
}

.team-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 400px;
}

.team-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    background: rgba(0, 30, 60, 0.5);
}

.team-card:hover .team-image-wrapper img {
    transform: scale(1.08);
}

.team-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 51, 102, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-team {
    display: flex;
    gap: 1rem;
}

.social-team a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(0, 212, 255, 0.2);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    color: var(--accent-color);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.social-team a:hover {
    background: var(--accent-color);
    color: var(--secondary-color);
    transform: scale(1.1);
}

.team-card:hover .team-overlay {
    opacity: 1;
}

.team-name {
    font-size: 1.3rem;
    color: var(--light-text);
    margin: 1.5rem 0 0.5rem;
    padding: 0 1rem;
}

.team-position {
    color: var(--accent-color);
    font-size: 0.95rem;
    margin: 0 1rem 1.5rem;
    font-weight: 500;
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, rgba(0, 30, 60, 0.95) 0%, rgba(0, 51, 102, 0.95) 100%);
    border-top: 2px solid var(--accent-color);
    padding: 3rem 0 1rem;
    color: var(--light-text);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-text {
    color: var(--muted-text);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(0, 212, 255, 0.15);
    border: 1px solid var(--accent-color);
    border-radius: 50%;
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--accent-color);
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    color: var(--muted-text);
    font-size: 0.9rem;
}

/* ===== ANIMACIONES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE DESIGN ===== */

/* TABLET - 1024px */
@media (max-width: 1024px) {
    .header {
        min-height: 68px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .about-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .photo-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }

    .gallery-item {
        height: 250px;
    }

    .video-gallery {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.8rem;
    }

    .footer-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

/* TABLET PEQUEÑO - 768px */
@media (max-width: 768px) {
    .header {
        padding: 1rem 1rem;
        min-height: 65px;
    }

    .header-container {
        padding: 0;
    }

    .logo {
        font-size: 1rem;
        gap: 0.4rem;
    }

    .logo i {
        font-size: 1.4rem;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, rgba(0, 51, 102, 0.98) 0%, rgba(0, 30, 60, 0.98) 100%);
        flex-direction: column;
        gap: 0;
        padding: 0;
        border-top: 2px solid var(--accent-color);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    }

    .nav-menu.active {
        max-height: 500px;
        padding: 1rem 1.5rem;
    }

    .nav-link {
        padding: 0.9rem 0;
        color: var(--light-text);
        font-size: 1rem;
        width: 100%;
        border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .nav-link:hover {
        background: rgba(0, 212, 255, 0.1);
        padding-left: 0.5rem;
    }

    .menu-toggle {
        display: flex;
    }

    .logo span {
        display: none;
    }

    .hero-section {
        height: 400px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }

    .about-card {
        padding: 1.5rem;
    }

    .photo-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .gallery-item {
        height: 200px;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .team-image-wrapper {
        height: 350px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-section h3 {
        margin-bottom: 1rem;
    }
}

/* MÓVIL - 425px */
@media (max-width: 425px) {
    .header {
        padding: 0.75rem 1rem;
        min-height: 60px;
    }

    .header-container {
        padding: 0;
        gap: 0.5rem;
    }

    .logo {
        font-size: 0.95rem;
        gap: 0.3rem;
    }

    .logo i {
        font-size: 1.3rem;
    }

    .nav-menu {
        top: 100%;
        padding: 0;
        gap: 0;
        background: linear-gradient(135deg, rgba(0, 51, 102, 0.98) 0%, rgba(0, 30, 60, 0.98) 100%);
        border-top: 2px solid var(--accent-color);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    }

    .nav-menu.active {
        max-height: 450px;
        padding: 1rem;
    }

    .nav-link {
        padding: 0.8rem 0;
        font-size: 0.95rem;
        border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .nav-link:hover {
        background: rgba(0, 212, 255, 0.1);
        padding-left: 0.5rem;
    }

    .menu-toggle {
        padding: 0;
        width: 26px;
        height: 20px;
    }

    .menu-toggle span {
        width: 22px;
        height: 2px;
    }

    .hero-section {
        height: 300px;
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .cta-button {
        padding: 0.75rem 2rem;
        font-size: 0.9rem;
    }

    .container {
        padding: 0 1rem;
    }

    .about-section,
    .gallery-section,
    .videos-section {
        padding: 2.5rem 0;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .about-card {
        padding: 1.2rem;
    }

    .card-icon {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }

    .about-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .about-card p {
        font-size: 0.85rem;
    }

    .photo-gallery {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .gallery-item {
        height: 200px;
    }

    .video-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .team-image-wrapper {
        height: 250px;
    }

    .team-name {
        font-size: 1.1rem;
        margin: 1rem 0 0.4rem;
    }

    .team-position {
        font-size: 0.85rem;
        margin: 0 0.75rem 1rem;
    }

    .footer {
        padding: 2rem 0 0.75rem;
    }

    .footer-container {
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .footer-section h3 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .footer-text {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }

    .social-icon {
        width: 35px;
        height: 35px;
    }

    .footer-bottom {
        padding-top: 1rem;
        font-size: 0.8rem;
    }
}

/* MÓVIL PEQUEÑO - 375px */
@media (max-width: 375px) {
    .logo {
        font-size: 1rem;
    }

    .hero-title {
        font-size: 1.6rem;
        margin-bottom: 0.75rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .gallery-item {
        height: 180px;
    }

    .about-card h3 {
        font-size: 1rem;
    }

    .team-image-wrapper {
        height: 300px;
    }

    .team-name {
        font-size: 1rem;
    }

    .team-position {
        font-size: 0.8rem;
    }
}

/* MÓVIL MUY PEQUEÑO - 320px */
@media (max-width: 320px) {
    .header {
        padding: 0.6rem 0.75rem;
        min-height: 55px;
    }

    .header-container {
        gap: 0;
    }

    .logo {
        font-size: 0.9rem;
        gap: 0.25rem;
    }

    .logo i {
        font-size: 1.2rem;
    }

    .nav-menu {
        top: 100%;
        padding: 0;
        gap: 0;
        background: linear-gradient(135deg, rgba(0, 51, 102, 0.98) 0%, rgba(0, 30, 60, 0.98) 100%);
        border-top: 2px solid var(--accent-color);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    }

    .nav-menu.active {
        max-height: 400px;
        padding: 0.75rem;
    }

    .nav-link {
        padding: 0.7rem 0;
        font-size: 0.9rem;
        border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .nav-link:hover {
        background: rgba(0, 212, 255, 0.1);
        padding-left: 0.5rem;
    }

    .menu-toggle {
        width: 24px;
        height: 18px;
    }

    .menu-toggle span {
        width: 20px;
        height: 2px;
    }

    .hero-section {
        height: 250px;
        padding: 0 0.75rem;
    }

    .hero-title {
        font-size: 1.4rem;
    }

    .hero-subtitle {
        font-size: 0.75rem;
        margin-bottom: 1rem;
    }

    .cta-button {
        padding: 0.6rem 1.5rem;
        font-size: 0.85rem;
    }

    .container {
        padding: 0 0.75rem;
    }

    .section-title {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }

    .section-subtitle {
        font-size: 0.8rem;
    }

    .photo-gallery {
        gap: 0.5rem;
    }

    .gallery-item {
        height: 150px;
    }

    .team-image-wrapper {
        height: 180px;
    }

    .team-name {
        font-size: 0.9rem;
        margin: 0.75rem 0 0.3rem;
    }

    .team-position {
        font-size: 0.7rem;
        margin: 0 0.5rem 0.75rem;
    }

    .footer-container {
        gap: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .footer-section h3 {
        font-size: 0.9rem;
    }

    .footer-text {
        font-size: 0.75rem;
    }

    .social-icon {
        width: 30px;
        height: 30px;
    }
}

.tab-btn {
    padding: 10px 22px;
    border: 2px solid var(--border-color);
    background: transparent;
    color: var(--text-light);
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tab-btn:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.tab-btn.active {
    background: var(--accent-cyan);
    color: var(--primary-dark);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

/* ===== HEADER RIGHT ===== */
.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
    flex: 0 0 auto;
}

.profile-image-container {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-cyan);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
    flex-shrink: 0;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-decoration: none;
}

.social-btn.whatsapp {
    color: #25D366;
    border-color: #25D366;
    background: rgba(37, 211, 102, 0.1);
}

.social-btn.whatsapp:hover {
    background: #25D366;
    color: white;
    transform: scale(1.15);
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.5);
}

.social-btn.instagram {
    color: #E4405F;
    border-color: #E4405F;
    background: rgba(228, 64, 95, 0.1);
}

.social-btn.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
    transform: scale(1.15);
    box-shadow: 0 0 20px rgba(228, 64, 95, 0.5);
}

.social-btn.facebook {
    color: #1877F2;
    border-color: #1877F2;
    background: rgba(24, 119, 242, 0.1);
}

.social-btn.facebook:hover {
    background: #1877F2;
    color: white;
    transform: scale(1.15);
    box-shadow: 0 0 20px rgba(24, 119, 242, 0.5);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
    width: 100%;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    font-size: 2rem;
    color: var(--accent-cyan);
    margin-bottom: 20px;
    font-weight: 700;
}

.content-box {
    background: linear-gradient(135deg, var(--secondary-dark) 0%, #2a3f52 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.1);
    line-height: 1.8;
}

.content-box p {
    color: var(--text-light);
    margin-bottom: 15px;
}

/* ===== LOGROS GRID ===== */
.logros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.logro-card {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--accent-cyan);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.logro-card:hover {
    background: rgba(0, 212, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.logro-card h3 {
    color: var(--accent-cyan);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.logro-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ===== CERTIFICADOS ===== */
.certificados-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.certificado-item {
    background: rgba(0, 212, 255, 0.08);
    border-left: 4px solid var(--accent-cyan);
    padding: 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.certificado-item:hover {
    background: rgba(0, 212, 255, 0.15);
    transform: translateX(10px);
}

.certificado-item h3 {
    color: var(--accent-cyan);
    margin-bottom: 5px;
    font-size: 1.05rem;
}

.certificado-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== HERRAMIENTAS ===== */
.herramientas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.tool-badge {
    background: rgba(0, 212, 255, 0.15);
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: default;
}

.tool-badge:hover {
    background: rgba(0, 212, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
    transform: scale(1.05);
}

/* ===== PROYECTOS GRID ===== */
.proyectos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.proyecto-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 212, 255, 0.05) 100%);
    border: 2px solid var(--accent-cyan);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.proyecto-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.3);
    border-color: #00ffff;
}

.proyecto-imagen {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--secondary-dark) 0%, #2a3f52 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    overflow: hidden;
    position: relative;
}

.proyecto-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.proyecto-imagen i {
    color: var(--accent-cyan);
    opacity: 0.5;
}

.proyecto-info {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.proyecto-titulo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-cyan);
    margin-bottom: 10px;
}

.proyecto-descripcion {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    flex: 1;
}

.proyecto-tech {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.tech-badge {
    background: rgba(0, 212, 255, 0.2);
    color: var(--accent-cyan);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.proyecto-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.proyecto-link:hover {
    gap: 12px;
    color: #00ffff;
}

.proyecto-link i {
    font-size: 1.2rem;
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #0f1620 100%);
    border-top: 1px solid var(--border-color);
    padding: 25px 20px;
    margin-top: 40px;
    text-align: center;
}

.footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1024px) {
    .header-content {
        flex-direction: column;
        gap: 25px;
        align-items: center;
        text-align: center;
    }

    .header-left {
        min-width: auto;
    }

    .name {
        font-size: 2rem;
    }

    .tabs-container-header {
        width: 100%;
    }

    .header-right {
        flex-direction: row;
        width: 100%;
        justify-content: center;
    }

    .profile-image-container {
        width: 120px;
        height: 120px;
    }

    .social-links {
        flex-direction: row;
    }

    .proyectos-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .header {
        padding: 25px;
        margin: 12px;
    }

    .header-content {
        flex-direction: column;
        gap: 20px;
    }

    .name {
        font-size: 1.8rem;
    }

    .tabs-container-header {
        gap: 8px;
    }

    .tab-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .profile-image-container {
        width: 110px;
        height: 110px;
    }

    .social-btn {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .proyectos-grid {
        grid-template-columns: 1fr;
    }

    .footer {
        padding: 20px 15px;
    }
}

@media (max-width: 425px) {
    .header {
        padding: 20px;
        margin: 10px;
    }

    .name {
        font-size: 1.5rem;
    }

    .tabs-container-header {
        width: 100%;
        gap: 6px;
    }

    .tab-btn {
        padding: 7px 12px;
        font-size: 0.7rem;
        flex: 1;
    }

    .profile-image-container {
        width: 100px;
        height: 100px;
    }

    .social-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .content-box {
        padding: 15px;
    }

    .proyecto-imagen {
        height: 180px;
        font-size: 2.5rem;
    }

    .proyecto-info {
        padding: 15px;
    }

    .proyecto-titulo {
        font-size: 1.3rem;
    }
}

@media (max-width: 375px) {
    .header {
        padding: 18px;
        margin: 8px;
    }

    .name {
        font-size: 1.3rem;
    }

    .tab-btn {
        padding: 6px 10px;
        font-size: 0.65rem;
    }

    .profile-image-container {
        width: 90px;
        height: 90px;
    }

    .tab-btn {
        font-size: 0.6rem;
    }

    .proyecto-imagen {
        height: 160px;
        font-size: 2rem;
    }

    .proyecto-titulo {
        font-size: 1.1rem;
    }
}

@media (max-width: 320px) {
    .header {
        padding: 15px;
        margin: 5px;
    }

    .tabs-container-header {
        gap: 4px;
        flex-direction: column;
    }

    .tab-btn {
        padding: 6px 8px;
        font-size: 0.6rem;
        width: 100%;
    }

    .section-title {
        font-size: 1rem;
    }

    .proyecto-imagen {
        height: 140px;
        font-size: 1.5rem;
    }

    .proyecto-info {
        padding: 12px;
    }

    .proyecto-titulo {
        font-size: 1rem;
    }
}