/* =========================================
   1. VARIABLES DE COLOR Y FUENTES
   ========================================= */
:root {
    --bg-light: #F2EADF;
    --accent-dark: #BF7F5A;
    --accent-light: #BF7960;
    --footer-bg: #D9C1B8;
    --text-dark: #2C2C2C;
    --queen-green: #7D8C7A;
    /* Verde salvia elegante */
    --queen-bg: #E8EBE6;
    /* Fondo verde agua */

    --font-ui: 'Montserrat', sans-serif;
    --font-elegant: 'Cormorant Garamond', serif;
}

/* =========================================
   2. CONFIGURACIÓN BASE Y OPTIMIZACIÓN
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
    font-family: var(--font-ui);
}

/* Forzar alta calidad de renderizado en imágenes para todos los dispositivos */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

/* =========================================
   3. ELEMENTOS UI (CURSOR PERSONALIZADO)
   ========================================= */
body.custom-cursor-active,
body.custom-cursor-active * {
    cursor: none !important;
}

.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--accent-dark);
    width: 0%;
    z-index: 999999;
}

.cursor {
    position: fixed;
    width: 6px;
    height: 6px;
    background-color: var(--accent-dark);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999999;
}

.cursor-follower {
    position: fixed;
    width: 26px;
    height: 26px;
    border: 1px solid var(--accent-dark);
    background-color: transparent;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background 0.3s, border-color 0.3s;
    z-index: 9999998;
}

.cursor-follower.active {
    width: 36px;
    height: 36px;
    background-color: rgba(191, 127, 90, 0.1);
    border-color: var(--accent-light);
}

/* =========================================
   4. NAVEGACIÓN Y MENÚ (ESCRITORIO)
   ========================================= */
.navbar {
    position: absolute;
    top: 0;
    width: 100%;
    padding: 10px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #5a593a;
    /* Verde oliva corporativo */
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo img {
    height: 95px;
    width: auto;
    display: block;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo img:hover {
    transform: translateY(-4px) scale(1.02);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav-links a,
.dropbtn {
    text-decoration: none;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    display: inline-block;
}

.nav-links a:hover,
.dropbtn:hover {
    color: var(--accent-light);
    transform: translateY(-3px);
}

/* Submenú Desplegable (Escritorio) */
.dropdown {
    position: relative;
    padding-bottom: 20px;
    margin-bottom: -20px;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #FFFFFF;
    min-width: 260px;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.05);
    list-style: none;
    padding: 15px 0;
    border-top: 2px solid var(--accent-dark);
}

.dropdown-content li {
    padding: 12px 20px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dark);
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s;
}

.dropdown-content li:hover {
    background-color: var(--bg-light);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* =========================================
   5. PORTADA PRINCIPAL (HERO)
   ========================================= */
.hero-stack {
    width: 100%;
    margin-top: 110px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contenedor-portada {
    width: 80%;
    max-width: 1400px;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.imagen-portada {
    width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   6. SECCIONES GENERALES Y FOOTER
   ========================================= */
.philosophy-section {
    padding: 120px 20px;
}

.text-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.text-container p {
    font-family: var(--font-elegant);
    font-size: 2.2rem;
    line-height: 1.6;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 40px;
    font-style: italic;
}

.site-footer {
    background-color: var(--footer-bg);
    padding: 60px 50px 20px;
    color: var(--text-dark);
}

.footer-container {
    display: flex;
    justify-content: space-around;
    max-width: 1000px;
    margin: 0 auto;
    gap: 20px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-column h3 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--accent-dark);
}

.footer-column p,
.footer-column a,
.footer-bottom p {
    font-size: 13px;
    line-height: 1.8;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 400;
}

.footer-links,
.social-links {
    list-style: none;
}

.footer-links li,
.social-links li {
    margin-bottom: 8px;
}

.footer-links a,
.social-links a {
    display: inline-block;
    transition: all 0.3s ease;
}

.footer-links a:hover,
.social-links a:hover {
    color: var(--accent-light);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 12px;
}

/* =========================================
   7. PÁGINA: PROYECTOS & GALERÍAS
   ========================================= */
.projects-container,
.project-detail-container {
    width: 100%;
    margin-top: 180px;
    padding-bottom: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.project-item {
    width: 80%;
    max-width: 1400px;
    margin: 0 auto 120px auto;
    text-align: center;
}

.project-title {
    font-family: var(--font-ui);
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 5px;
    color: var(--text-dark);
    margin-bottom: 25px;
    text-transform: uppercase;
}

.project-desc {
    font-family: var(--font-elegant);
    font-size: 1.6rem;
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.project-main-img-wrapper {
    width: 100%;
    overflow: hidden;
    margin-bottom: 40px;
}

.project-main-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 1.5s ease;
}

.project-main-img-wrapper:hover .project-main-img {
    transform: scale(1.03);
}

.view-more-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    margin-top: 20px;
}

.btn-text {
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-dark);
    margin-bottom: 8px;
    transition: color 0.3s;
}

.btn-line {
    width: 0%;
    height: 1px;
    background-color: var(--accent-dark);
    transition: width 0.4s ease;
}

.view-more-btn:hover .btn-text {
    color: var(--accent-dark);
}

.view-more-btn:hover .btn-line {
    width: 100%;
}

.gallery-grid {
    width: 80%;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.gallery-item {
    overflow: hidden;
    width: 100%;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1.2s ease, filter 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.02);
    filter: brightness(1.05);
}

.gallery-item.landscape {
    grid-column: span 2;
}

.gallery-item.portrait {
    grid-column: span 1;
}

.gallery-item.landscape-half {
    grid-column: span 1;
}

.gallery-item.centered-landscape {
    grid-column: span 2;
    width: 65%;
    justify-self: center;
}

.gallery-item.centered-portrait {
    grid-column: span 2;
    width: 45%;
    justify-self: center;
}

.back-link-container {
    margin-top: 80px;
    text-align: center;
}

/* =========================================
   8. PÁGINA: E-DESIGN
   ========================================= */
.edesign-container {
    width: 100%;
    margin-top: 160px;
    padding-bottom: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.edesign-header,
.packages-header {
    text-align: center;
    margin-bottom: 60px;
}

.page-title,
.section-title {
    font-family: var(--font-elegant);
    font-size: 3rem;
    font-weight: 300;
    font-style: italic;
    color: var(--text-dark);
}

.title-line {
    width: 60px;
    height: 1px;
    background-color: var(--accent-dark);
    margin: 20px auto 0 auto;
}

.how-it-works {
    max-width: 800px;
    width: 90%;
    margin: 0 auto 100px auto;
    position: relative;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 70px;
    width: 1px;
    height: 90%;
    background-color: rgba(191, 127, 90, 0.2);
    z-index: -1;
}

.step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    position: relative;
    padding: 30px;
    border-radius: 15px;
    background-color: transparent;
    border: 1px solid transparent;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.step-item:hover {
    background-color: #FFFFFF;
    box-shadow: 0 15px 35px rgba(191, 127, 90, 0.05);
    border: 1px solid rgba(191, 127, 90, 0.1);
    transform: translateY(-5px);
}

.step-number {
    font-family: var(--font-elegant);
    font-size: 5rem;
    line-height: 0.8;
    color: rgba(191, 127, 90, 0.15);
    font-style: italic;
    margin-right: 35px;
    min-width: 80px;
    transition: all 0.5s ease;
}

.step-item:hover .step-number {
    color: rgba(191, 127, 90, 0.4);
    transform: translateX(10px) scale(1.05);
}

.step-content {
    transition: transform 0.5s ease;
}

.step-item:hover .step-content {
    transform: translateX(5px);
}

.step-content h3 {
    font-family: var(--font-ui);
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    color: var(--accent-dark);
}

.step-content p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-dark);
}

.edesign-note {
    font-family: var(--font-elegant);
    font-style: italic;
    font-size: 1.1rem;
    text-align: center;
    margin-top: 50px;
    color: var(--accent-light);
}

.packages-grid {
    width: 85%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.package-card {
    background-color: #FFFFFF;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.package-card.centered-card {
    grid-column: span 2;
    max-width: 580px;
    margin: 0 auto;
    width: 100%;
}

.package-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(191, 127, 90, 0.1);
}

.pkg-image-wrapper {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.pkg-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s ease;
}

.package-card:hover .pkg-image-wrapper img {
    transform: scale(1.05);
}

.pkg-content {
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.pkg-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.pkg-subtitle {
    font-family: var(--font-elegant);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--accent-dark);
    margin-bottom: 20px;
}

.pkg-desc,
.pkg-best {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.pkg-features {
    list-style: none;
    margin-bottom: 30px;
    flex-grow: 1;
}

.pkg-features li {
    position: relative;
    padding-left: 25px;
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 12px;
}

.pkg-features li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--accent-light);
    font-size: 12px;
}

.pkg-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 25px;
}

.pkg-price {
    font-family: var(--font-elegant);
    font-size: 2.5rem;
    color: var(--text-dark);
}

.buy-btn {
    background-color: var(--accent-dark);
    color: #FFFFFF;
    text-decoration: none;
    padding: 12px 25px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.buy-btn:hover {
    background-color: var(--text-dark);
    color: #FFFFFF;
}

.outline-btn {
    background-color: transparent;
    color: var(--accent-dark);
    border: 1px solid var(--accent-dark);
}

.outline-btn:hover {
    background-color: var(--accent-dark);
    color: #FFFFFF;
}

/* =========================================
   9. PÁGINA: ABOUT US
   ========================================= */
.about-hero {
    width: 100%;
    height: 70vh;
    margin-top: 110px;
    overflow: hidden;
    position: relative;
}

.about-hero img {
    width: 100%;
    height: 120%;
    object-fit: cover;
    display: block;
    transform: translateY(-10%);
}

.about-intro {
    padding: 100px 20px 120px 20px;
    background-color: var(--bg-light);
}

.about-intro .text-container p {
    font-size: 2rem;
    line-height: 1.7;
    margin-bottom: 30px;
    font-style: italic;
}

.founder-section {
    width: 100%;
    background-color: var(--queen-bg);
    padding: 120px 20px;
    position: relative;
}

.founder-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
}

.founder-images {
    flex: 1;
    position: relative;
    height: 750px;
    width: 100%;
}

.img-box {
    position: absolute;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1.5s ease;
}

.img-box:hover img {
    transform: scale(1.03);
}

.img-back {
    width: 65%;
    height: 80%;
    top: 0;
    left: 0;
    z-index: 1;
}

.img-front {
    width: 60%;
    height: 75%;
    bottom: 0;
    right: 0;
    z-index: 2;
    border: 15px solid var(--queen-bg);
}

.founder-text {
    flex: 1;
    padding-left: 20px;
}

.founder-title {
    font-family: var(--font-elegant);
    font-size: 4rem;
    font-weight: 300;
    color: var(--queen-green);
    font-style: italic;
    line-height: 1;
    margin-bottom: 10px;
}

.founder-subtitle {
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-dark);
    margin-bottom: 30px;
}

.founder-line {
    width: 80px;
    height: 1px;
    background-color: var(--queen-green);
    margin-bottom: 40px;
}

.founder-text p {
    font-family: var(--font-elegant);
    font-size: 1.8rem;
    line-height: 1.8;
    color: var(--text-dark);
    font-style: italic;
}

/* =========================================
   10. PÁGINA: CONTACT US
   ========================================= */
.contact-page-container {
    width: 100%;
    margin-top: 150px;
    padding-bottom: 120px;
    display: flex;
    justify-content: center;
}

.contact-layout {
    width: 90%;
    max-width: 1200px;
    display: flex;
    gap: 80px;
    align-items: flex-start;
}

.contact-info-block {
    flex: 1;
    padding-right: 40px;
}

.contact-title {
    font-family: var(--font-elegant);
    font-size: 3.5rem;
    font-style: italic;
    font-weight: 300;
    color: var(--text-dark);
    line-height: 1.1;
    margin-bottom: 25px;
}

.contact-intro {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 50px;
}

.info-item {
    margin-bottom: 30px;
}

.info-item h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-dark);
    margin-bottom: 10px;
}

.info-item p,
.info-item a {
    font-family: var(--font-elegant);
    font-size: 1.4rem;
    color: var(--text-dark);
    text-decoration: none;
    font-style: italic;
    transition: color 0.3s;
}

.info-item a:hover {
    color: var(--accent-light);
}

.contact-form-wrapper {
    flex: 1.2;
    background-color: #FFFFFF;
    padding: 50px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.03);
    border-top: 3px solid var(--accent-dark);
}

.luxury-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-row {
    display: flex;
    gap: 30px;
}

.form-row .input-group {
    flex: 1;
}

.input-group {
    position: relative;
    width: 100%;
}

.input-group input,
.input-group textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid #ccc;
    background: transparent;
    padding: 15px 0 5px 0;
    font-family: var(--font-ui);
    font-size: 14px;
    color: var(--text-dark);
    outline: none;
    transition: border-color 0.3s;
    resize: none;
}

.input-group label {
    position: absolute;
    top: 15px;
    left: 0;
    font-size: 13px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.input-group input:focus,
.input-group textarea:focus {
    border-bottom-color: var(--accent-dark);
}

.input-group input:focus~label,
.input-group input:not(:placeholder-shown)~label,
.input-group textarea:focus~label,
.input-group textarea:not(:placeholder-shown)~label {
    top: -10px;
    font-size: 10px;
    color: var(--accent-dark);
}

.form-question p {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 15px;
}

.chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.chip input {
    display: none;
}

.chip span {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid #ccc;
    border-radius: 30px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    cursor: none;
    transition: all 0.3s;
}

.chip input:checked+span {
    background-color: var(--accent-dark);
    color: #FFFFFF;
    border-color: var(--accent-dark);
}

.chip:hover span {
    border-color: var(--accent-dark);
    color: var(--accent-dark);
}

.submit-btn {
    align-self: flex-start;
    background-color: var(--text-dark);
    color: #FFFFFF;
    border: none;
    padding: 15px 40px;
    font-family: var(--font-ui);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: var(--accent-dark);
}


/* =========================================
   11. SISTEMA DE ANIMACIONES (EFECTOS JS)
   ========================================= */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.efecto-revelar {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.efecto-revelar.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes revelarPortada {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animacion-portada {
    animation: revelarPortada 1.2s ease-out both;
    position: relative;
    z-index: 5;
}


/* =========================================
   12. RESPONSIVE Y MÓVILES (MEDIA QUERIES)
   ========================================= */
.menu-toggle {
    display: none;
    flex-direction: column;
}

.menu-toggle .bar {
    width: 25px;
    height: 2px;
    background-color: var(--text-dark);
    margin: 4px 0;
}

/* --- TABLETS Y PANTALLAS MEDIANAS (1024px) --- */
@media (max-width: 1024px) {

    .project-main-img-wrapper,
    .gallery-item,
    .pkg-image-wrapper {
        height: auto !important;
        aspect-ratio: auto !important;
    }

    .project-main-img,
    .gallery-item img,
    .pkg-image-wrapper img {
        height: auto !important;
        object-fit: cover !important;
    }

    .founder-images {
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 20px;
    }

    .img-back,
    .img-front {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        border: none !important;
    }
}

/* --- CELULARES Y TABLETS PEQUEÑAS (900px) --- */
@media (max-width: 900px) {

    /* 1. NAVEGACIÓN Y MENÚ MÓVIL BLINDADO */
    .menu-toggle {
        display: flex;
    }

    .menu-toggle .bar {
        background-color: #FFFFFF !important;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #5a593a !important;
        /* Verde oliva */
        flex-direction: column;
        padding: 20px 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a,
    .dropbtn {
        color: #FFFFFF !important;
    }

    /* Submenú Móvil Blindado */
    .dropdown-content {
        background-color: #4a492a !important;
    }

    .dropdown-content li {
        background-color: transparent !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    .dropdown-content li,
    .dropdown-content a {
        color: #FFFFFF !important;
        display: block !important;
    }

    .dropdown-content li:hover,
    .dropdown-content li:active,
    .dropdown-content a:hover,
    .dropdown-content a:active {
        background-color: #5a593a !important;
    }

    /* 2. GENERAL Y FOOTER */
    body {
        cursor: auto;
    }

    .cursor,
    .cursor-follower {
        display: none;
    }

    .footer-container {
        flex-direction: column;
        gap: 40px;
    }

    /* 3. PÁGINA E-DESIGN */
    .packages-grid {
        grid-template-columns: 1fr;
        width: 90%;
    }

    .package-card.centered-card {
        grid-column: span 1;
        max-width: 100%;
    }

    .how-it-works::before {
        display: none;
    }

    .step-item {
        flex-direction: column;
        padding: 20px 10px;
    }

    .step-number {
        margin-bottom: 15px;
    }

    .step-item:hover .step-number {
        transform: translateY(-5px);
    }

    /* 4. PÁGINA CONTACTO */
    .contact-layout {
        flex-direction: column;
        gap: 40px;
    }

    .contact-info-block {
        padding-right: 0;
        text-align: center;
    }

    .contact-form-wrapper {
        width: 100%;
        padding: 30px 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 30px;
    }
}

/* --- CELULARES INTERMEDIOS (800px) --- */
@media (max-width: 800px) {

    .project-item,
    .gallery-grid {
        width: 90%;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item.landscape,
    .gallery-item.portrait,
    .gallery-item.landscape-half,
    .gallery-item.centered-landscape,
    .gallery-item.centered-portrait {
        grid-column: span 1;
        width: 100%;
    }
}

/* --- CELULARES PEQUEÑOS (600px) --- */
@media (max-width: 1000px) {

    /* Ajustes específicos para "About Us" */
    .founder-container {
        flex-direction: column;
        text-align: center;
        gap: 50px;
    }

    .founder-images {
        flex: none;
        width: 100%;
        height: 550px;
        max-width: 450px;
        margin: 0 auto;
        display: block;
    }

    .founder-text {
        padding-left: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .founder-line {
        margin: 0 auto 40px auto;
    }
}

@media (max-width: 600px) {
    .founder-images {
        height: 420px;
        max-width: 90vw;
    }

    .img-back {
        width: 75%;
        height: 75%;
        top: 0;
        left: 0;
    }

    .img-front {
        width: 75%;
        height: 75%;
        bottom: 0;
        right: 0;
        border-width: 5px;
    }
}