:root {
    --brand-orange: #f4af6a;
    --brand-orange-dark: #e99857;
    --brand-silver: #bfbfbf;
    --brand-grey: #808080;
    
    --bg-dark: #000000;
    --bg-darker: #111111;
    --bg-light: #fbfbfd;
    --bg-white: #ffffff;
    
    --text-primary-dark: #1d1d1f;
    --text-secondary-dark: #86868b;
    
    --text-primary-light: #f5f5f7;
    --text-secondary-light: #a1a1a6;

    --ease-apple: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: all 0.8s var(--ease-apple);
    --transition-med: all 0.4s var(--ease-apple);
    --transition-fast: all 0.2s ease-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-primary-dark);
    line-height: 1.5;
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.03em;
}

h1 {
    font-size: 5rem;
    line-height: 1.05;
    color: var(--text-primary-light);
    margin-bottom: 2rem;
}

.accent-text {
    color: var(--brand-orange);
}

h2.section-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

h2.section-title.left {
    text-align: left;
}

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

.section-subtitle {
    font-size: 1.4rem;
    color: var(--text-secondary-dark);
    max-width: 600px;
    margin: 0 auto 4rem;
    font-weight: 400;
}

.dark-section .section-title { color: var(--text-primary-light); }
.dark-section .section-subtitle { color: var(--text-secondary-light); }

/* Buttons */
.btn-primary, .btn-secondary, .btn-primary-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 980px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-fast);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--brand-orange);
    color: #000;
    padding: 1rem 2.2rem;
    font-size: 1.1rem;
}

.btn-primary:hover {
    background-color: var(--brand-orange-dark);
    transform: scale(1.03);
}

.btn-secondary {
    background-color: rgba(255,255,255,0.1);
    color: var(--text-primary-light);
    padding: 1rem 2.2rem;
    font-size: 1.1rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: rgba(255,255,255,0.2);
    transform: scale(1.03);
}

.btn-primary-small {
    background-color: var(--brand-orange);
    color: #000;
    padding: 0.6rem 1.4rem;
    font-size: 0.95rem;
}

.btn-primary-small:hover {
    background-color: var(--brand-orange-dark);
    transform: scale(1.05);
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 0;
    background: rgba(251, 251, 253, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    transition: var(--transition-med);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

header.scrolled {
    padding: 0.8rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 60px;
    width: auto;
    transition: var(--transition-med);
}

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

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2.5rem;
}

nav a {
    text-decoration: none;
    color: var(--text-primary-dark);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

nav a:not(.btn-primary-small):hover {
    color: var(--brand-orange-dark);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary-dark);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.7) 100%);
    z-index: -1;
}

.badge-elegant {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    color: var(--brand-silver);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero p {
    font-size: 1.4rem;
    color: #ffffff;
    font-weight: 700;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-secondary-light);
    font-size: 0.85rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

/* Stats */
.stats-section {
    background-color: var(--bg-white);
    padding: 4rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-num {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary-dark);
    letter-spacing: -0.05em;
}

.stat-desc {
    font-size: 1rem;
    color: var(--text-secondary-dark);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background-color: rgba(0,0,0,0.1);
}

/* About */
.about {
    padding: 10rem 0;
    background-color: var(--bg-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-content p {
    font-size: 1.25rem;
    color: var(--text-secondary-dark);
    margin-bottom: 3rem;
}

.about-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.about-features li {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background-color: var(--bg-light);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--brand-orange);
    flex-shrink: 0;
}

.about-features h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.about-features p {
    font-size: 1rem;
    margin-bottom: 0;
}

.about-image-wrapper {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    height: 600px;
    background-color: var(--bg-light);
}

.about-image-inner {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e5e5ea, #d1d1d6);
    transition: var(--transition-slow);
}

/* Video de calidad de fondo en sección Nosotros */
.about-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition-slow);
}

.about-image-wrapper:hover .about-bg-video {
    transform: scale(1.05);
}

.about-image-wrapper:hover .about-image-inner {
    transform: scale(1.05);
}

/* Imágenes reales en el portafolio */
img.portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: var(--transition-slow);
}

.portfolio-item:hover img.portfolio-image {
    transform: scale(1.08);
}

.floating-badge {
    position: absolute;
    bottom: 30px;
    left: -30px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    padding: 1.5rem 2rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.floating-badge i {
    font-size: 2.5rem;
    color: var(--brand-orange);
}

.floating-badge span {
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.2;
}

/* Services */
.services {
    background-color: var(--bg-dark);
    padding: 10rem 0;
    color: var(--text-primary-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Grid de 6 columnas: las 3 primeras tarjetas ocupan 2 cols cada una (fila 1) */
/* Las 2 últimas ocupan 2 cols pero desplazadas al centro (fila 2) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
}

.services-grid .service-card-elegant:nth-child(1) { grid-column: 1 / span 2; }
.services-grid .service-card-elegant:nth-child(2) { grid-column: 3 / span 2; }
.services-grid .service-card-elegant:nth-child(3) { grid-column: 5 / span 2; }
.services-grid .service-card-elegant:nth-child(4) { grid-column: 2 / span 2; }
.services-grid .service-card-elegant:nth-child(5) { grid-column: 4 / span 2; }

.service-card-elegant {
    background: var(--bg-darker);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 24px;
    padding: 3.5rem 2.5rem;
    transition: var(--transition-med);
    cursor: default;
}

.service-card-elegant:hover {
    background: #1c1c1e;
    transform: translateY(-10px);
    border-color: rgba(244, 175, 106, 0.3);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--brand-orange);
    margin-bottom: 2rem;
}

.service-card-elegant h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.service-card-elegant p {
    color: var(--text-secondary-light);
    font-size: 1.1rem;
}

/* Projects */
.projects {
    padding: 10rem 0;
    background-color: var(--bg-light);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 4rem;
}

.portfolio-item {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    height: 500px;
    cursor: pointer;
}

.portfolio-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: var(--transition-slow);
}

.bg-p1 { background: linear-gradient(135deg, #d1d1d6, #aeaeb2); }
.bg-p2 { background: linear-gradient(135deg, #c7c7cc, #8e8e93); }

.portfolio-item:hover .portfolio-image {
    transform: scale(1.08);
}

.portfolio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 3rem 2rem 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--white);
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition-med);
}

.portfolio-item:hover .portfolio-info {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-info h4 {
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
}

.portfolio-info span {
    color: var(--brand-orange);
    font-weight: 500;
}

/* Contact Box Apple Style */
.contact {
    padding: 0 0 10rem;
    background-color: var(--bg-light);
}

.contact-box {
    background: var(--bg-dark);
    border-radius: 40px;
    padding: 6rem 4rem;
    text-align: center;
    color: var(--bg-white);
    position: relative;
    overflow: hidden;
}

.contact-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(244, 175, 106, 0.1) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.contact-box-content {
    position: relative;
    z-index: 1;
}

.contact-box h2 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.contact-box p {
    font-size: 1.4rem;
    color: var(--text-secondary-light);
    margin-bottom: 4rem;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.method-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 1.5rem 2.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-decoration: none;
    color: var(--bg-white);
    transition: var(--transition-med);
    text-align: left;
}

.method-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-5px);
}

.icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--brand-orange);
}

.method-card h5 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.method-card span {
    color: var(--text-secondary-light);
    font-size: 0.9rem;
}

/* Footer */
footer {
    background-color: var(--bg-white);
    padding: 6rem 0 2rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.logo-img-footer {
    height: 50px;
    margin-bottom: 1.5rem;
}

.footer-brand p {
    color: var(--text-secondary-dark);
    font-size: 1rem;
    max-width: 400px;
}

.footer-links h4, .footer-social h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary-dark);
}

.footer-links a, .footer-social a {
    display: block;
    text-decoration: none;
    color: var(--text-secondary-dark);
    margin-bottom: 0.8rem;
    transition: var(--transition-fast);
}

.footer-links a:hover, .footer-social a:hover {
    color: var(--brand-orange);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.1);
    text-align: center;
    color: var(--text-secondary-dark);
    font-size: 0.9rem;
}

/* Floating WA */
.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 99;
    transition: var(--transition-med);
    text-decoration: none;
}

.floating-wa:hover {
    transform: scale(1.1);
}

/* Apple-style Animations */
.fade-up-stagger, .fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s var(--ease-apple), transform 1s var(--ease-apple);
}

.fade-in {
    opacity: 0;
    transition: opacity 1.5s var(--ease-apple);
}

.scale-up {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 1s var(--ease-apple), transform 1.2s var(--ease-apple);
}

.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.8s; }

/* Responsive */
/* =============================================
   RESPONSIVE — Tablet (max 992px)
   ============================================= */
@media (max-width: 992px) {
    h1 { font-size: 3rem; }
    h2.section-title { font-size: 2.2rem; }

    /* About */
    .about-grid { grid-template-columns: 1fr; }
    .about-image-wrapper { height: 400px; }
    .floating-badge { left: 20px; bottom: 20px; }

    /* Portfolio */
    .portfolio-grid { grid-template-columns: 1fr; }
    .portfolio-item { height: 350px; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

    /* Stats */
    .stats-grid { flex-direction: column; gap: 2rem; }
    .stat-divider { width: 60px; height: 1px; }

    /* Contact */
    .contact-box h2 { font-size: 2.5rem; }
    .contact-methods { flex-direction: column; align-items: stretch; }

    /* Services: 2 columnas en tablet */
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid .service-card-elegant:nth-child(1) { grid-column: auto; }
    .services-grid .service-card-elegant:nth-child(2) { grid-column: auto; }
    .services-grid .service-card-elegant:nth-child(3) { grid-column: auto; }
    .services-grid .service-card-elegant:nth-child(4) { grid-column: auto; }
    .services-grid .service-card-elegant:nth-child(5) { grid-column: 1 / span 2; max-width: 50%; margin: 0 auto; }
}

/* =============================================
   RESPONSIVE — Mobile (max 768px)
   ============================================= */
@media (max-width: 768px) {
    h1 { font-size: 2.4rem; letter-spacing: -0.02em; }
    h2.section-title { font-size: 2rem; }
    .section-subtitle { font-size: 1.1rem; }

    /* Header nav colapsable */
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(251, 251, 253, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        gap: 1rem;
        padding: 2rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }
    nav ul.active { display: flex; }
    .mobile-menu-btn { display: block; }

    /* Hero */
    .hero { min-height: 100svh; padding: 6rem 1rem 4rem; }
    .hero-content { padding: 0 0.5rem; }
    .hero-actions { flex-direction: column; align-items: center; gap: 1rem; }
    .btn-primary, .btn-secondary { width: 100%; max-width: 320px; justify-content: center; }
    .scroll-indicator { display: none; }

    /* Stats */
    .stats-section { padding: 3rem 0; }
    .stat-num { font-size: 2.5rem; }

    /* About */
    .about { padding: 5rem 0; }
    .about-grid { grid-template-columns: 1fr; gap: 3rem; }
    .about-image-wrapper { height: 300px; }
    .floating-badge { left: 50%; transform: translateX(-50%); bottom: -25px; white-space: nowrap; }
    .about-features { gap: 1.5rem; }

    /* Services */
    .services { padding: 5rem 0; }
    .services-grid { grid-template-columns: 1fr; }
    .services-grid .service-card-elegant:nth-child(n) { grid-column: auto; max-width: 100%; margin: 0; }
    .service-card-elegant { padding: 2.5rem 1.5rem; }

    /* Projects */
    .projects { padding: 5rem 0; }
    .portfolio-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .portfolio-item { height: 280px; }

    /* Contact */
    .contact { padding: 0 0 5rem; }
    .contact-box { padding: 3rem 1.5rem; border-radius: 24px; }
    .contact-box h2 { font-size: 2rem; }
    .contact-box p { font-size: 1.1rem; margin-bottom: 2rem; }
    .contact-methods { flex-direction: column; gap: 1rem; }
    .method-card { padding: 1.2rem 1.5rem; }

    /* Footer */
    footer { padding: 4rem 0 2rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .footer-links, .footer-social { display: flex; flex-direction: column; }
    .logo-img-footer { height: 40px; }

    /* Floating WA */
    .floating-wa { bottom: 20px; right: 20px; width: 50px; height: 50px; font-size: 1.5rem; }
}
