/* ============================================
   ESTILOS PERSONALIZADOS - Jordi López
   ============================================ */

:root {
    --primary-color: #e3e4e3;
    --secondary-color: #304254;
    --text-color: #000000;
    --white: #ffffff;
    --light-gray: #e3e4e3;
    --dark-gray: #304254;
    --accent-red: #e74c3c;
}

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

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
}

#root {
    width: 100%;
    height: 100%;
}

main {
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* ============================================
   SECCIONES GENERALES
   ============================================ */

section {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    scroll-snap-align: start;
}

.section-container {
    max-width: 1264px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.section-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.section-image {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.section-title {
    font-size: 48px;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--text-color);
    margin-bottom: 30px;
    line-height: 1.2;
}

/* ============================================
   SECCIÓN HERO
   ============================================ */

.hero-section {
    background-color: var(--white) !important;
    padding: 0 !important;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

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

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.hero-logo {
    margin-bottom: 30px;
}

.hero-logo img {
    max-width: 400px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.hero-text p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-color);
    font-weight: 500;
}

/* ============================================
   SECCIÓN ABOUT
   ============================================ */

.about-section {
    background-color: var(--white) !important;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
    text-align: justify;
}

/* ============================================
   SECCIÓN SERVICIOS
   ============================================ */

.services-section {
    background-color: var(--light-gray) !important;
}

.services-section .section-container {
    grid-template-columns: 1fr 1fr;
}

.services-section .section-image {
    order: -1;
}

.services-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.services-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
    text-align: justify;
}

/* ============================================
   SECCIÓN PROCESO
   ============================================ */

.process-section {
    background-color: var(--light-gray) !important;
}

.process-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.process-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.process-list li {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.process-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    font-weight: bold;
    font-size: 16px;
    flex-shrink: 0;
}

.process-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
    text-align: justify;
}

.process-text strong {
    font-weight: 700;
}

/* ============================================
   SECCIÓN TRABAJOS
   ============================================ */

.works-section {
    background-color: var(--light-gray) !important;
}

.works-section .section-container {
    grid-template-columns: 1fr;
}

.works-gallery {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.work-item {
    width: 100%;
    aspect-ratio: 1;
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================================
   SECCIÓN CONTACTO
   ============================================ */

.contact-section {
    background-color: var(--light-gray) !important;
}

.contact-container {
    grid-template-columns: 1fr;
    max-width: 800px;
    text-align: center;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.contact-item {
    padding: 20px;
}

.contact-link {
    font-size: 18px;
    font-weight: 500;
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.contact-link:hover {
    color: var(--accent-red);
    text-decoration: underline;
}

.closing-statement {
    background-color: rgba(48, 66, 84, 0.1);
    padding: 40px;
    border-radius: 8px;
    margin-top: 40px;
}

.closing-statement p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
    font-style: italic;
    text-align: center;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .section-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .services-section .section-image {
        order: 0;
    }

    .section-title {
        font-size: 36px;
    }

    section {
        min-height: auto;
        padding: 40px 20px;
    }
}

@media (max-width: 768px) {
    .section-container {
        gap: 30px;
    }

    .section-title {
        font-size: 28px;
    }

    .hero-content {
        padding: 20px;
    }

    .hero-logo img {
        max-width: 250px;
    }

    .hero-text p {
        font-size: 16px;
    }

    .about-content p,
    .services-content p,
    .process-text,
    .closing-statement p {
        font-size: 14px;
    }

    .process-list {
        gap: 20px;
    }

    .process-number {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

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

    .contact-link {
        font-size: 16px;
    }

    .works-gallery {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    section {
        padding: 20px 15px;
    }

    .section-title {
        font-size: 22px;
    }

    .hero-content {
        padding: 15px;
    }

    .hero-logo img {
        max-width: 180px;
    }

    .hero-text p {
        font-size: 14px;
    }

    .about-content p,
    .services-content p,
    .process-text,
    .closing-statement p {
        font-size: 13px;
    }

    .process-number {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .contact-link {
        font-size: 14px;
    }
}

/* ============================================
   ANIMACIONES Y TRANSICIONES
   ============================================ */

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

section {
    animation: fadeInUp 0.6s ease-out;
}

/* ============================================
   SCROLL SNAP
   ============================================ */

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

section {
    scroll-snap-align: start;
}

/* ============================================
   TIPOGRAFÍA
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    letter-spacing: 0.02em;
}

p {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ============================================
   UTILIDADES
   ============================================ */

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

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

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.gap-20 {
    gap: 20px;
}

.gap-30 {
    gap: 30px;
}
