/* Reset y estilos base */
:root {
    --primary-color: #2ecc71;
    --primary-dark: #27ae60;
    --primary-light: #58d68d;
    --primary-extra-light: #a3e4c1;
    --primary-bg: #e8f8f0;
}

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

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background-color: #f8fafc;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.background-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.9;
    background-color: #0a1a0a;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(101, 107, 101, 0.95) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo img {
    width: 100px;
    height: 50px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #3f3d3d;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-dark);
}

.nav-link::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-bg);
    transition: width 0.3s ease;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    color: white;
    overflow: hidden;
    background-color: #0a1a0a;
}

.hero-container {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

.cta-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.4s both;
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(46, 204, 113, 0.3);
}

/* About Section */
.about {
    padding: 100px 0;
    background: #f8fafc;
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    margin-top: 1.5rem;
    color: #7d8a6c;
    position: relative;
}

.section-title::after {
    content: "";
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.about-text {
    text-align: center;
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #2d3748;
}

/* Projects Section */
.projects {
    padding: 100px 0;
    background: white;
    position: relative;
    z-index: 1;
}

.filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background: #e2e8f0;
    color: #4a5568;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}


.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}


.project-image {
position: relative;
width: 100%;
height: 200px;
background-color: white;
clip-path: polygon(0% 0%, 0% 0%, 100% 0%, 0% 100%);
transition: clip-path 0.4s ease-in-out;
overflow: hidden;
}

.project-image:hover {
clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* ICONO */
.project-image i {
position: absolute;
left: 10%;         
top: 45%;          
transform: translate(50%, -50%);
font-size: 3rem;
color: #87f71e;
opacity: 1;
transition: opacity 0.3s ease;
z-index: 2;
}

/* IMAGEN */
.project-preview {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
z-index: 1; 
transition: opacity 0.3s ease;
opacity: 1;
}

.project-image:hover .project-preview {
opacity: 1;
}

.project-image:hover i {
opacity: 0;
}

.project-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.project-content p {
    flex-grow: 1; 
    margin-bottom: 1.5rem;
    color: #4a5568;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-tag {
    background: #e2e8f0;
    color: #4a5568;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.tech-tag.html {
    background: #e44d26;
    color: white;
}
.tech-tag.css {
    background: #264de4;
    color: white;
}
.tech-tag.js {
    background: #f0db4f;
    color: #323330;
}
.tech-tag.python {
    background: #3776ab;
    color: white;
}
.tech-tag.java {
    background: #007396;
    color: white;
}
.tech-tag.react {
    background: #0e2229;
    color: white;
}
.tech-tag.tailwind {
    background: #007396;
    color: white;
}
.tech-tag.vite {
    background: #013342;
    color: white;
}
.tech-tag.django {
    background: #4e737e;
    color: white;
}
.tech-tag.kotlin {
    background: #00c3ff;
    color: white;
}
.tech-tag.remix {
    background: #4bc3e7;
    color: white;
}
.tech-tag.mysql {
    background: #42e9b1;
    color: white;
}
.tech-tag.mongodb {
    background: #06eca0;
    color: white;
}
.tech-tag.bootstrap {
    background: #9d20f0;
    color: white;
}
.tech-tag.json {
    background: #f8cb02;
    color: white;
}
.tech-tag.api {
    background: #857221;
    color: white;
}
.tech-tag.postgres {
    background: #857221;
    color: white;
}

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

.btn-demo,
.btn-manual,
.btn-code {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-demo {
    background: var(--primary-color);
    color: white;
}

.btn-demo:hover {
    background: var(--primary-dark);
}

.btn-code {
    background: #f1f5f9;
    color: #475569;
    border: 2px solid #e2e8f0;
}

.btn-code:hover {
    background: #e2e8f0;
}

/* Statistics Section */
.stats {
    position: relative;
    padding: 100px 0;
    color: white;
    overflow: hidden;
    background-color: #0a1a0a;
}

.stats .container {
    position: relative;
    z-index: 2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: rgba(46, 204, 113, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(46, 204, 113, 0.2);
    position: relative; 
    transition: all 0.3s ease;
    cursor: pointer; 
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}


.stat-details {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    background: rgba(8, 68, 11, 0.95); 
    backdrop-filter: blur(5px);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
    margin-bottom: 15px;
    border: 1px solid rgba(27, 209, 103, 0.3);
}

.stat-details:after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px;
    border-style: solid;
    border-color: rgba(13, 233, 160, 0.95) transparent transparent transparent;
}

.stat-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.stat-details li {
    padding: 8px 0;
    border-bottom: 1px solid rgb(0, 255, 0);
    font-size: 0.9rem;
    color: #f5f7f6;
}

.stat-details li:last-child {
    border-bottom: none;
}

/* Efecto hover */
.stat-card:hover .stat-details {
    opacity: 1;
    visibility: visible;
    margin-bottom: 20px;
}

/* Ajustes para móviles */
@media (max-width: 768px) {
    .stat-details {
        width: calc(100% - 20px);
        font-size: 0.8rem;
    }
    
    .stat-details li {
        font-size: 0.8rem;
        padding: 6px 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-details {
        width: 90%;
    }
}

/* Team Section */
.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #4a5568;
}

.contact-item i {
    font-size: 1.2rem;
    margin-right: 1rem;
    color: var(--primary-color);
    width: 20px;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.equipo-img {
    display: block;
    margin: 0 auto;
    max-width: 90%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}


.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-btn {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: var(--primary-dark);
}

/* Footer */
.footer {
    background: #1a202c;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--primary-light);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

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

.social-links a {
    color: #a0aec0;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #2d3748;
    color: #a0aec0;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    text-align: center;
}


.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: #4a5568;
}

.close:hover {
    color: #2d3748;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-primary,
.btn-secondary {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 2px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #e2e8f0;
}

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

@keyframes pulse {
    0%,
    100% {
        opacity: 0.4;
    }
    50% {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }
    @media (max-width: 768px) {
        .equipo-img {
            max-width: 90%;
        }
    }
    
    @media (max-width: 480px) {
        .equipo-img {
            max-width: 95%;
        }
    }

    .nav-menu.active {
        left: 0;
    }

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

    .contact-content,
    .projects-grid,
    .features
    {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-container {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 1rem;
    }

    .filter-btn {
        white-space: nowrap;
    }

    .background-canvas {
        opacity: 0.7;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

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

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

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

    .modal-content {
        margin: 20% auto;
        width: 95%;
    }

    .modal-actions {
        flex-direction: column;
    }
}

html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
.project-img {
    width: 100%;
    height: 100%;
}

/* Team Photo Container */
.team-photo-container {
    position: relative;
    display: inline-block;
    max-width: 90%;
    margin: 0 auto;
}

/* Team Names Overlay */
.team-names-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.name-tag {
    position: absolute;
    background-color: rgba(46, 204, 113, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.team-photo-container:hover .name-tag {
    opacity: 1;
    transform: translateY(0);
}


.name-tag:nth-child(1) { transition-delay: 0.1s; }
.name-tag:nth-child(2) { transition-delay: 0.2s; }
.name-tag:nth-child(3) { transition-delay: 0.3s; }

