/* Estilos específicos para portfolio.html */

/* Variables */
:root {
    --primary-color: #12822F;
    --accent-color: #FF9E44;
    --dark-color: #333333;
    --gray-color: #666666;
    --light-color: #F9F9F9;
    --white-color: #FFFFFF;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Portfolio Hero Section */
.portfolio-hero {
    position: relative;
    height: 60vh;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    text-align: center;
    background: url('Image/Imagenes/Hoja\ verde\,\ fondo\ naranja.jpg') center center/cover no-repeat;
}

.portfolio-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.portfolio-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.portfolio-hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.portfolio-hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Portfolio Filter */
.portfolio-filter {
    padding: 3rem 0 2rem;
    background-color: var(--white-color);
}

.filter-controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    border: none;
    background-color: var(--light-color);
    color: var(--dark-color);
    font-weight: 500;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: var(--accent-color);
    color: var(--white-color);
    transform: translateY(-3px);
}

.filter-btn.active {
    background-color: var(--accent-color);
    color: var(--white-color);
    box-shadow: 0 4px 10px rgba(255, 158, 68, 0.3);
}

/* Portfolio Gallery */
.portfolio-gallery {
    padding: 2rem 0 5rem;
    background-color: var(--white-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.portfolio-item.hidden {
    display: none;
}

.portfolio-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    background-color: var(--white-color);
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

/* Website Preview */
.website-preview {
    position: relative;
    height: 250px;
    background-color: #f5f5f5;
    overflow: hidden;
}

.preview-header {
    display: flex;
    align-items: center;
    background-color: #eaeaea;
    height: 30px;
    padding: 0 10px;
}

.preview-actions {
    display: flex;
    gap: 5px;
}

.preview-actions span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: block;
}

.preview-actions span:nth-child(1) {
    background-color: #ff5f57;
}

.preview-actions span:nth-child(2) {
    background-color: #ffbd2e;
}

.preview-actions span:nth-child(3) {
    background-color: #28ca41;
}

.preview-url {
    margin-left: 15px;
    font-size: 0.7rem;
    color: #777;
    background-color: #f5f5f5;
    padding: 2px 10px;
    border-radius: 10px;
}

.preview-container {
    position: relative;
    height: calc(100% - 30px);
    background-position: top center;
    background-size: cover;
}

.preview-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    transform: scale(0.9);
    transform-origin: top center;
    background-color: white;
    opacity: 0;
    position: absolute;
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-card:hover .preview-overlay {
    opacity: 1;
}

.preview-btn {
    padding: 0.6rem 1.5rem;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.preview-btn:hover {
    background-color: #e48936;
    transform: scale(1.05);
}

/* Portfolio Content */
.portfolio-content {
    padding: 1.5rem;
}

.portfolio-category {
    display: inline-block;
    background: rgba(255, 158, 68, 0.1);
    color: var(--accent-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.portfolio-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--dark-color);
}

.portfolio-content p {
    color: var(--gray-color);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    background-color: var(--light-color);
    color: var(--gray-color);
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    font-size: 0.75rem;
}

/* Preview Modal */
.preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-content {
    width: 90%;
    max-width: 1200px;
    height: 90%;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: var(--primary-color);
    color: white;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-body {
    flex: 1;
    overflow: hidden;
}

/* Device Selector */
.device-selector {
    display: flex;
    gap: 1rem;
}

.device-btn {
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.device-btn.active {
    background: rgba(255, 255, 255, 0.4);
}

/* Device Wrappers */
.device-wrapper {
    display: none;
    width: 100%;
    height: 100%;
}

.device-wrapper.active {
    display: block;
}

.desktop-view {
    width: 100%;
    height: 100%;
}

.mobile-view {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px 0;
    height: 100%;
}

.mobile-frame {
    width: 375px;
    height: 85%;
    border: 12px solid #333;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

#preview-frame-mobile, 
#preview-frame-desktop {
    width: 100%;
    height: 100%;
    border: none;
}

/* Development Process */
.dev-process {
    padding: 6rem 0;
    background-color: var(--light-color);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--gray-color);
    font-size: 1.1rem;
}

.process-steps {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 35px;
    width: 2px;
    background-color: var(--primary-color);
    opacity: 0.3;
}

.process-step {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}

.process-step:last-child {
    margin-bottom: 0;
}

.step-number {
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    z-index: 1;
    box-shadow: var(--shadow-md);
}

.step-content {
    flex: 1;
    padding-left: 2rem;
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.step-content p {
    color: var(--gray-color);
    line-height: 1.7;
}

/* Technologies */
.technologies {
    padding: 6rem 0;
    background-color: var(--white-color);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.tech-item {
    text-align: center;
    transition: transform 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-10px);
}

.tech-icon {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.tech-icon i {
    font-size: 3.5rem;
    color: var(--primary-color);
}

.tech-item h3 {
    font-size: 1.1rem;
    color: var(--dark-color);
}

/* Contact CTA */
.contact-cta {
    padding: 5rem 0;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--white-color);
    color: var(--dark-color);
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Footer */
/* Footer Styles */
.footer {
    background-color: var(--dark-color);
    color: var(--white-color);
}

.footer-top {
    padding: 4rem 0 3rem;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo img {
    height: 60px;
    width: auto;
}

.mission-statement {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--white-color);
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.footer-links a:hover {
    opacity: 1;
    transform: translateX(5px);
}

.footer-contact-info p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.footer-contact-info i {
    margin-right: 10px;
    color: var(--accent-color);
}

.footer-contact-info a {
    color: var(--white-color);
    opacity: 0.8;
    transition: opacity 0.3s ease;
    text-decoration: none;
}

.footer-contact-info a:hover {
    opacity: 1;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.7;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    font-size: 0.9rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}
/* Responsive */
@media (max-width: 1024px) {
    .portfolio-hero-content h1 {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .portfolio-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .portfolio-hero-content p {
        font-size: 1rem;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .nav {
        display: none;
    }
    
    .desktop-only {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
}

@media (max-width: 576px) {
    .portfolio-hero-content h1 {
        font-size: 2rem;
    }
    
    .filter-controls {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .step-content {
        padding-left: 1.5rem;
    }
    
    .process-steps::before {
        left: 25px;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .mobile-frame {
        width: 280px;
    }
}