html {
    width: 100dvw;
    overflow-x: hidden;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background: #fafafa;
}

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

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

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

.logo h1 {
    font-size: 2rem;
    font-weight: 300;
    color: #000;
    letter-spacing: -0.05em;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-link {
    text-decoration: none;
    color: #666;
    font-weight: 400;
    font-size: 1rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #000;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: #000;
    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: #000;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 !important;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: #000;
    letter-spacing: -0.02em;
    opacity: 0;
    transform: translateY(100px);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #666;
    font-weight: 300;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(50px);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    opacity: 0;
    transform: scale(0.8);
}

.btn-primary,
.btn-secondary {
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-size: 1rem;
    border: 2px solid transparent;
    display: inline-block;
    text-align: center;
    min-height: 44px;
    line-height: 1.2;
}

.btn-primary {
    background: #000;
    color: #fff;
}

.btn-primary:hover {
    background: #333;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #000;
    border-color: #000;
}

.btn-secondary:hover {
    background: #000;
    color: #fff;
}

.hero-image {
    display: flex;
    justify-content: center;
}

.image-placeholder {
    width: 400px;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 50px 100px rgba(0,0,0,0.1);
    opacity: 0;
    transform: scale(1.2) rotateY(-15deg);
}

/* .image-placeholder:hover {
    transform: scale(1.02);
} DISABLED per user request */

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

img {
    max-width: 100%;
    height: auto;
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    text-align: center;
    margin-bottom: 4rem;
    color: #000;
    letter-spacing: -0.02em;
    opacity: 0;
    transform: translateY(50px);
}

/* Sobre mí */
.sobre-mi-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.sobre-mi-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #444;
    opacity: 0;
    transform: translateY(30px);
}

.sobre-mi-text strong {
    color: #000;
    font-weight: 600;
}

.sobre-mi-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat {
    text-align: center;
    opacity: 0;
    transform: scale(0.8);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 300;
    color: #000;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.proyecto-card,
.obra-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    cursor: pointer;
    opacity: 0;
    transform: translateY(50px);
}

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

.proyecto-image,
.obra-image {
    height: 250px;
    overflow: hidden;
}

.proyecto-image img,
.obra-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.proyecto-card:hover .proyecto-image img,
.obra-card:hover .obra-image img {
    transform: scale(1.1);
}

.proyecto-content,
.obra-content {
    padding: 2rem;
}

.proyecto-content h3,
.obra-content h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.proyecto-content p,
.obra-content p {
    color: #666;
    margin-bottom: 1rem;
}

.role {
    display: inline-block;
    background: #f0f0f0;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* tab_ Section */
.tab {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.section-subtitle {
    text-align: center;
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 4rem;
    font-weight: 300;
    opacity: 0;
    transform: translateY(30px);
}

.tab-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.tab-services {
    display: grid;
    gap: 2rem;
}

.service {
    background: rgba(255,255,255,0.8);
    padding: 2.5rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-50px);
}

.service:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.service h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #000;
}

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

.tab-cta h3 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: #000;
    opacity: 0;
    transform: translateY(30px);
}

.btn-large {
    padding: 1.5rem 3rem !important;
    font-size: 1.1rem !important;
}

/* Galería */
.fotos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.foto-item {
    aspect-ratio: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    cursor: pointer;
    opacity: 0;
    transform: scale(0.9) translateY(40px);
}

.foto-item:hover {
    transform: scale(1.05);
    box-shadow: 0 40px 80px rgba(0,0,0,0.2);
}

.foto-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contacto */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-info p {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #666;
    opacity: 0;
    transform: translateX(-40px);
}

.contact-email {
    font-size: 1.5rem;
    font-weight: 500;
    color: #000;
    margin: 2rem 0;
    word-break: break-all;
    opacity: 0;
    transform: translateX(-40px);
}

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

.social-links a {
    color: #666;
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    padding: 0.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8) translateY(30px);
}

.social-links a:hover {
    color: #000;
    background: rgba(0,0,0,0.05);
    transform: translateY(-2px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1.25rem;
    border: 2px solid #f0f0f0;
    border-radius: 15px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: #fff;
    opacity: 0;
    transform: translateX(40px);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #000;
}

/* Footer */
.footer {
    text-align: center;
    padding: 3rem 0;
    color: #999;
    border-top: 1px solid #eee;
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .hero-content {
        gap: 4rem;
    }
    
    .proyectos-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 1.5rem;
    }
    
    .sobre-mi-content,
    .tab-content {
        grid-template-columns: 1.6fr 1fr;
        gap: 3rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .fotos-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

/* Desktop */
@media (min-width: 1025px) {
    .hero-content {
        gap: 8rem;
    }
    
    .sobre-mi-stats {
        flex-direction: column;
    }
}

/* Mobile Menu & Small screens */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem 20px;
        gap: 1.5rem;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
        padding: 0 20px;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
    }
    
    .sobre-mi-content,
    .tab-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .sobre-mi-stats {
        flex-direction: row;
        justify-content: space-around;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .stat {
        min-width: 80px;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .hamburger span {
        width: 22px;
        height: 3px;
    }
    
    .proyectos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service {
        padding: 2rem 1.5rem;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .section-title {
        margin-bottom: 2.5rem;
    }
    
    .hero {
        padding-top: 80px;
        min-height: calc(100vh - 80px);
        padding-bottom: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 1rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .social-links {
        flex-direction: row;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .fotos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .foto-item {
        border-radius: 12px;
    }
}
