/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    background-attachment: fixed;
    color: #2d3748;
    line-height: 1.6;
    min-height: 100vh;
}

/* Navegación moderna */
nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease;
}

.logo-area:hover {
    transform: scale(1.05);
}

.logo {
    height: 60px;
    width: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.brand {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.nav-links li {
    list-style: none;
}

.nav-links a {
    color: #4a5568 !important;
    text-decoration: none !important;
    font-size: 1rem;
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: block;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    transition: left 0.3s ease;
    z-index: -1;
}

.nav-links a:hover::before,
.nav-links a.active::before {
    left: 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
    text-decoration: none;
}

/* Contenido principal */
main {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    margin: 2rem auto;
    max-width: 1200px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    min-height: calc(100vh - 200px);
}

/* Hero section */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.05) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 1.5rem;
    color: #4a5568;
    position: relative;
    z-index: 1;
}

/* Sección de plataformas */
.plataformas {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
}

.plataformas h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2d3748;
}

.plataformas p {
    font-size: 1.1rem;
    color: #718096;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.plataformas > div {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.plataformas > div > div {
    max-width: 280px;
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(79, 70, 229, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.plataformas > div > div:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.2);
}

.plataformas img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
    object-fit: cover;
}

.plataformas > div > div:hover img {
    transform: scale(1.05);
}

.plataformas > div > div p {
    font-weight: 600;
    color: #2d3748;
    margin: 0;
    font-size: 1.1rem;
    text-align: center;
    line-height: 1.4;
}

/* Services Grid - New Professional Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.service-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.2);
}

.service-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 2rem;
}

.service-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-content p {
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* Sección sobre mí */
.sobre-mi {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
    padding: 4rem 2rem;
    text-align: center;
}

.sobre-mi-content {
    max-width: 800px;
    margin: 0 auto;
}

.sobre-mi h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sobre-mi p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 1.5rem;
    text-align: left;
}

.sobre-mi p:last-child {
    margin-bottom: 0;
    font-weight: 500;
    color: #2d3748;
}

/* Proyectos/Portafolio */
.proyectos {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    padding: 2rem;
}

.card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(79, 70, 229, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.2);
}

.card img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 15px;
    margin: 0 auto 1rem;
    transition: transform 0.3s ease;
    display: block;
}

.card:hover img {
    transform: scale(1.05);
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-button {
    margin-top: auto;
    padding-top: 1.5rem;
}

/* Botones modernos */
.btn-modern {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
    color: white;
    text-decoration: none;
}

/* Footer moderno */
footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: #2d3748;
    padding: 3rem 1rem 2rem;
    margin-top: 3rem;
    position: relative;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #4f46e5 50%, transparent 100%);
}

footer > div {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
    z-index: 2;
    gap: 2rem;
}

footer .logo-area {
    flex: 1;
    min-width: 250px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

footer .brand {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

footer .description {
    font-size: 0.9rem;
    color: #4a5568;
    margin: 0;
}

footer .social-section {
    flex: 1;
    min-width: 250px;
    text-align: right;
}

footer .social-container {
    display: inline-block;
    text-align: center;
}

footer .social-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: #2d3748;
    margin-bottom: 0.8rem;
}

footer .social-links {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

footer .social-links a {
    display: inline-block;
    transition: all 0.3s ease;
    border-radius: 12px;
    padding: 10px;
    background: rgba(79, 70, 229, 0.05);
    border: 1px solid rgba(79, 70, 229, 0.1);
}

footer .social-links a:hover {
    transform: translateY(-3px) scale(1.1);
    background: rgba(79, 70, 229, 0.15);
    border-color: rgba(79, 70, 229, 0.3);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.2);
}

footer .social-links img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

footer .copyright {
    border-top: 1px solid rgba(79, 70, 229, 0.1);
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: #718096;
}

/* Estilos específicos para navegación */
nav .nav-links a {
    color: #4a5568 !important;
    text-decoration: none !important;
}

nav .nav-links a:hover,
nav .nav-links a.active {
    color: white !important;
    text-decoration: none !important;
}

/* Responsive design */
@media (max-width: 768px) {
    .navbar-container {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 0.25rem;
        justify-content: center;
    }
    
    .nav-links a {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .hero {
        padding: 2rem 1rem;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .plataformas {
        padding: 2rem 1rem;
    }
    
    .plataformas h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .plataformas > div {
        gap: 2rem;
        flex-direction: column;
        align-items: center;
    }
    
    .plataformas > div > div {
        max-width: 280px;
        padding: 1.5rem;
        text-align: center;
    }
    
    .plataformas img {
        max-width: 80px;
        margin-bottom: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .service-image {
        height: 180px;
    }
    
    .service-content {
        padding: 1.5rem;
    }
    
    .service-content h3 {
        font-size: 1.2rem;
    }
    
    .sobre-mi {
        padding: 3rem 1rem;
    }
    
    .sobre-mi h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .sobre-mi p {
        font-size: 1rem;
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .proyectos {
        grid-template-columns: 1fr;
        padding: 2rem 1rem;
        gap: 2rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .card img {
        max-width: 180px;
        height: auto;
        margin: 0 auto 1rem;
        display: block;
    }
    
    .card h3 {
        font-size: 1.3rem;
    }
    
    .card p {
        font-size: 0.95rem;
    }
    
    footer {
        padding: 2rem 1rem;
    }
    
    footer > div {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    footer .social-section {
        text-align: center;
    }
    
    footer .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .navbar-container {
        padding: 0.8rem;
    }
    
    .logo-area {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .brand {
        font-size: 1.2rem;
    }
    
    .nav-links {
        gap: 0.1rem;
    }
    
    .nav-links a {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .hero {
        padding: 1.5rem 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 0.95rem;
    }
    
    .plataformas {
        padding: 1.5rem 1rem;
    }
    
    .plataformas h2 {
        font-size: 1.8rem;
    }
    
    .plataformas > div > div {
        max-width: 260px;
        padding: 1.2rem;
    }
    
    .plataformas img {
        max-width: 70px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .service-card {
        max-width: 100%;
    }
    
    .service-image {
        height: 160px;
    }
    
    .service-content {
        padding: 1.2rem;
    }
    
    .service-content h3 {
        font-size: 1.1rem;
    }
    
    .service-content p {
        font-size: 0.9rem;
    }
    
    .proyectos {
        grid-template-columns: 1fr;
        padding: 1.5rem 1rem;
        gap: 1.5rem;
    }
    
    .card {
        padding: 1.2rem;
    }
    
    .card img {
        max-width: 150px;
        height: auto;
        margin: 0 auto 1rem;
        display: block;
    }
    
    .card h3 {
        font-size: 1.2rem;
    }
    
    .card p {
        font-size: 0.9rem;
    }
    
    .sobre-mi {
        padding: 2rem 1rem;
    }
    
    .sobre-mi h2 {
        font-size: 1.8rem;
    }
    
    .sobre-mi p {
        font-size: 0.95rem;
    }
    
    footer {
        padding: 1.5rem 1rem;
    }
    
    footer .brand {
        font-size: 1.2rem;
    }
    
    footer .description {
        font-size: 0.85rem;
    }
    
    footer .social-links a {
        padding: 0.4rem;
    }
    
    footer .social-links img {
        width: 28px;
        height: 28px;
    }
}

/* Estilos para páginas de proyectos */
.project-main {
    padding: 2rem 1rem;
    min-height: 80vh;
}

.project-container {
    max-width: 1000px;
    margin: 0 auto;
}

.back-link {
    text-align: right;
    margin-bottom: 2rem;
}

.btn-back {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.btn-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

.project-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    align-items: flex-start;
}

.project-image-section {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.project-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.app-image-container {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    border: 1px solid rgba(79, 70, 229, 0.1);
}

.app-image {
    width: 100%;
    max-width: 350px;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.app-image:hover {
    transform: scale(1.05);
}

.playstore-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

.playstore-link:hover {
    transform: scale(1.1);
}

.playstore-badge {
    width: 160px;
    height: auto;
}

.project-description {
    flex: 2;
    min-width: 300px;
    margin-top: 2rem;
}

.description-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.description-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
}

.description-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #2d3748;
    margin: 0;
}

/* Galería de proyectos */
.project-gallery {
    max-width: 1000px;
    margin: 4rem auto 2rem;
    padding: 0 1rem;
}

.gallery-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #2d3748;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(79, 70, 229, 0.1);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.gallery-image {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

/* Responsive para páginas de proyectos */
@media (max-width: 768px) {
    .project-main {
        padding: 1.5rem 1rem;
    }
    
    .back-link {
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .btn-back {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .project-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .project-description {
        margin-top: 0;
    }
    
    .project-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .app-image-container {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .app-image {
        max-width: 300px;
    }
    
    .playstore-badge {
        width: 140px;
    }
    
    .description-card {
        padding: 2rem;
    }
    
    .description-text {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .project-gallery {
        margin: 3rem auto 2rem;
        padding: 0 1rem;
    }
    
    .gallery-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .project-main {
        padding: 1rem 0.8rem;
    }
    
    .project-container {
        padding: 0 0.5rem;
    }
    
    .btn-back {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .project-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .app-image-container {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .app-image {
        max-width: 250px;
    }
    
    .playstore-badge {
        width: 120px;
    }
    
    .description-card {
        padding: 1.5rem;
    }
    
    .description-text {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .project-gallery {
        margin: 2rem auto 1.5rem;
        padding: 0 0.5rem;
    }
    
    .gallery-title {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
    
    .gallery-grid {
        gap: 0.8rem;
    }
    
    .gallery-item {
        border-radius: 10px;
    }
}
