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

html {
    scroll-behavior: smooth;
}

/* Estilos adicionales */
.hero-with-logo {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1rem;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.8;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-logo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--brand-secondary);
    margin: 0 auto 2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.stat-item {
    text-align: center;
    padding: 1rem;
    min-width: 120px;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand-secondary);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--brand-text);
    opacity: 0.8;
    margin-top: 0.5rem;
}

.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--brand-secondary);
    color: var(--brand-background);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    margin: 1.5rem 0;
}

/* -------video---------- */
.portfolio-videos {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.portfolio-videos h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 15px;
    text-align: center;
}

.portfolio-videos h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: #3498db;
    border-radius: 2px;
}

.hero-visual {
    margin-top: 2rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

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

.hero-visual iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    border-radius: 8px;
}
/* ------------video----------- */
.portfolio-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.status-active {
    background-color: rgba(16, 185, 129, 0.2);
    color: #10B981;
}

.status-inactive {
    background-color: rgba(239, 68, 68, 0.2);
    color: #EF4444;
}


.whatsapp-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #25D366;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    margin-top: 1rem;
    transition: transform 0.3s ease;
}

.whatsapp-button:hover {
    transform: translateY(-3px);
    color: white;
    text-decoration: none;
}

.contact-info {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--brand-text);
}

.contact-icon {
    width: 40px;
    height: 40px;
    background-color: var(--brand-secondary);
    color: var(--brand-background);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.link-redess {
    display: flex;
    align-items: center;
    justify-content: center;
}

.link-redess img {
    width: 25px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.social-links img {
    width: 60px;
}

.social-link {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background-color: var(--brand-secondary);
    color: var(--brand-background);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    background-color: var(--brand-text);
    color: var(--brand-background);
}

.custom-footer {
    background-color: var(--brand-secondary);
    color: var(--brand-background);
    padding: 3rem 1rem;
    text-align: center;
    margin-top: 4rem;
}

.custom-footer a {
    color: var(--brand-background);
}

.custom-footer a:hover {
    color: var(--brand-text);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--brand-text, #333333);
    background-color: var(--brand-background, #ffffff);
    overflow-x: hidden;
}

/* Tipografía */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--brand-secondary, #333333);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--brand-secondary);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    color: var(--brand-secondary);
}

h3 {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    color: var(--brand-background);
}

p {
    margin-bottom: 1.5rem;
    font-size: clamp(1rem, 2vw, 1.125rem);
}

/* Enlaces */
a {
    color: var(--brand-secondary, #333333);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--brand-text, #333333);
}

/* Layout principal */
.main-content {
    min-height: calc(100vh - 80px);
    /* Resta la altura del footer */
    width: 100%;
}

/* Header/Navegación */
.portfolio-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--brand-background, #ffffff);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--brand-secondary, #333333);
}

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

.nav-link {
    outline: none;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    color:var(--brand-secondary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--brand-secondary, #333333);
    transition: width 0.3s ease;
}

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

/* Hero Section */
.hero {
    padding: 4rem 1rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    color: var(--brand-secondary, #666666);
    margin-bottom: 2rem;
}

/* Grid de proyectos */
.projects-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--brand-secondary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.project-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--brand-background);
}

.project-description {
    color: var(--brand-text, #666666);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    background-color: var(--brand-secondary, #f0f0f0);
    color: var(--brand-text, #333333);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* About Section */
.about-section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 1rem;
}

/* Contact Section */
.contact-section {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 1rem;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-label {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-input,
.form-textarea {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--brand-secondary, #333333);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: var(--brand-secondary, #333333);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
    background-color: var(--brand-text, #555555);
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

/* Footer */
.piefooter {
    background-color: var(--brand-secondary, #333333);
    color: white;
    padding: 2rem 1rem;
    text-align: center;
}

.piefooter a {
    color: white;
}

.piefooter a:hover {
    color: var(--brand-background, #ffffff);
}

/* Utilidades */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .hero {
        padding: 3rem 1rem;
    }

    .portfolio-videos {
        padding: 1.5rem 1rem;
    }

    .portfolio-videos h2 {
        font-size: 1.5rem;
    }

    .hero-visual iframe {
        height: 180px;
    }

    .no-videos h3 {
        font-size: 1rem;
    }

    .no-videos p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 2rem 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        color-scheme: dark;
    }

    .project-card {
        background: #1a1a1a;
        color: #ffffff;
    }

    .form-input,
    .form-textarea {
        background: #2d2d2d;
        border-color: #404040;
        color: #ffffff;
    }
}