/*
 * ============================================================================
 * OPTIMIZACIONES EXCLUSIVAS PARA TABLETS - CREAR Arquitectura & Desarrollos
 * ============================================================================
 * 
 * Este archivo contiene ajustes CSS exclusivos para dispositivos tablet.
 * NO modifica la versión desktop (≥1024px) ni mobile (≤768px).
 * 
 * RANGO DE APLICACIÓN: 769px - 1023px
 * 
 * OBJETIVO: Proporcionar una experiencia visual intermedia profesional,
 * manteniendo la identidad del diseño original sin convertirlo en mobile
 * ni forzar proporciones de desktop.
 * 
 * IMPORTANTE: Todos los cambios están encapsulados en media queries específicas.
 * Las versiones mobile y desktop permanecen intactas.
 * ============================================================================
 */


/* ============================================================================
   TABLET LANDSCAPE Y PORTRAIT (769px - 1023px)
   ============================================================================ */

@media (min-width: 769px) and (max-width: 1023px) {

    /* ========================================
       HERO SECTION - Proporciones tablet
       ======================================== */
    
    .hero {
        min-height: 100vh;
    }
    
    .hero__inner {
        padding: 0 4rem 3rem;
        padding-top: 120px;
    }
    
    .hero__subtitle {
        font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    }
    
    .hero__title {
        font-size: clamp(2.2rem, 5vw, 3.2rem);
        margin-top: 0.8rem;
    }
    
    .hero__footer {
        padding: 0;
    }
    
    
    /* ========================================
       NAVEGACIÓN - Espaciado tablet
       ======================================== */
    
    .nav {
        padding: 1.5rem 3rem;
    }
    
    .nav__bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .nav__logo {
        height: 50px;
        width: auto;
    }
    
    .nav__actions {
        display: flex;
        align-items: center;
        gap: 1rem;
    }
    
    .nav__social {
        display: flex;
        gap: 0.5rem;
    }
    
    .nav__social a {
        width: 42px;
        height: 42px;
        font-size: 1.3rem;
    }
    
    .nav__burger {
        width: 2.8rem;
        height: 2rem;
        gap: 0.35rem;
    }
    
    .nav__burger span {
        height: 3px;
    }
    
    .nav__divider {
        height: 3px;
        margin-top: 0.6rem;
    }
    
    
    /* ========================================
       SCROLL INDICATOR - Ajustes tablet
       ======================================== */
    
    .scroll-indicator {
        gap: 0.6rem;
    }
    
    .scroll-indicator__icon {
        width: 44px;
        height: 44px;
    }
    
    .scroll-indicator__text {
        font-size: 0.8rem;
        letter-spacing: 0.15rem;
    }
    
    
    /* ========================================
       QUIENES SOMOS - Layout tablet de 2 columnas
       ======================================== */
    
    .quienes {
        padding: 5rem 3rem;
    }
    
    .quienes__container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        align-items: start;
    }
    
    .quienes__text-wrapper {
        padding: 1rem 0;
    }
    
    .quienes__title {
        font-size: clamp(2.5rem, 5vw, 3.5rem);
        margin-bottom: 1.5rem;
    }
    
    .quienes__paragraph {
        font-size: clamp(1.1rem, 2vw, 1.4rem);
        line-height: 1.8;
        max-width: 100%;
    }
    
    /* Grid de imágenes visible en tablet */
    .quienes__grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 1rem;
        height: auto;
        min-height: 400px;
    }
    
    .quienes__grid-item {
        position: relative;
        overflow: hidden;
        border-radius: 2px;
    }
    
    .quienes__grid-item--large {
        grid-column: 1 / 2;
        grid-row: 1 / 3;
    }
    
    .quienes__grid-item--small {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
    }
    
    .quienes__grid-item--medium {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
    }
    
    /* Ocultar el cuarto item en tablet para mejor proporción */
    .quienes__grid-item--tall {
        display: none;
    }
    
    .quienes__image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute;
        top: 0;
        left: 0;
    }
    
    
    /* ========================================
       HERO IMAGE SECTION - Proporciones tablet
       ======================================== */
    
    .hero-image-section {
        margin-top: 0;
    }
    
    .hero-image-container {
        height: 60vh;
        min-height: 400px;
        max-height: 600px;
    }
    
    .hero-image-video {
        height: 120%;
        object-fit: cover;
    }
    
    
    /* ========================================
       PROYECTOS - Grid tablet optimizado
       ======================================== */
    
    .proyectos {
        padding: 5rem 0;
    }
    
    .proyectos__wrapper {
        padding: 0 3rem;
    }
    
    .proyectos__title-container {
        margin-bottom: 2.5rem;
    }
    
    .proyectos__title-container .quienes__title {
        font-size: clamp(2.5rem, 5vw, 3.5rem);
    }
    
    .proyectos__title-container .quienes__paragraph {
        font-size: clamp(1.1rem, 2vw, 1.4rem);
        line-height: 1.8;
        margin-top: 1.5rem;
    }
    
    /* Grid de cards a 2 columnas */
    .proyectos__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        margin-top: 2.5rem;
    }
    
    /* Cards de proyectos */
    .proyecto-card {
        aspect-ratio: 3 / 4;
    }
    
    .proyecto-card__content {
        padding: 2rem 1.5rem 1.5rem 1.5rem;
        gap: 0.5rem;
    }
    
    .proyecto-card__name {
        font-size: 1.8rem;
    }
    
    .proyecto-card__status {
        font-size: 0.7rem;
        letter-spacing: 0.18em;
    }
    
    /* Mostrar también los proyectos disabled en tablet */
    .proyecto-card--disabled {
        display: block;
    }
    
    
    /* ========================================
       PROVEEDORES / WORK WITH US - Layout tablet
       ======================================== */
    
    .proveedores {
        padding: 5rem 3rem;
    }
    
    .proveedores__content {
        display: grid;
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .proveedores__text-wrapper {
        width: 100%;
    }
    
    .proveedores__text-wrapper .quienes__title {
        font-size: clamp(2.5rem, 5vw, 3rem);
    }
    
    .proveedores__subtitle {
        font-size: 1.3rem;
        margin-bottom: 1.2rem;
    }
    
    .proveedores__description {
        font-size: 1.15rem;
        line-height: 1.7;
    }
    
    .proveedores__form-wrapper {
        width: 100%;
        max-width: 700px;
        margin: 0 auto;
        padding: 2.5rem;
    }
    
    .proveedores__form-title {
        font-size: 1.8rem;
    }
    
    /* Grid del formulario: 2 columnas en tablet */
    .proveedores__form-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem 1.5rem;
    }
    
    .proveedores__form-group--full {
        grid-column: 1 / -1;
    }
    
    .proveedores__form-group input,
    .proveedores__form-group textarea {
        font-size: 1rem;
        padding: 0.6rem 0;
    }
    
    .proveedores__form-group textarea {
        min-height: 100px;
    }
    
    .proveedores__form-submit {
        font-size: 0.85rem;
        padding: 0.9rem 2rem;
        margin-top: 1.5rem;
    }
    
    
    /* ========================================
       FOOTER - Layout tablet equilibrado
       ======================================== */
    
    .site-footer {
        padding: 3rem;
    }
    
    .site-footer__inner {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 2rem;
    }
    
    .site-footer__column--left {
        display: flex;
        align-items: center;
    }
    
    .site-footer__column--right {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 0.6rem;
    }
    
    .site-footer__logo,
    img.site-footer__logo {
        height: 55px;
        width: auto;
    }
    
    .site-footer__contact,
    .site-footer__copyright {
        font-size: 0.9rem;
        text-align: right;
    }
    
    .site-footer__social {
        justify-content: flex-end;
        gap: 0.6rem;
    }
    
    .site-footer__social a {
        width: 38px;
        height: 38px;
    }
    
    
    /* ========================================
       BOTONES FLOTANTES - Posición tablet
       ======================================== */
    
    .whatsapp-button {
        width: 58px;
        height: 58px;
        bottom: 2rem;
        right: 2rem;
        font-size: 1.5rem;
    }
    
    .scroll-to-top-button {
        width: 58px;
        height: 58px;
        bottom: 2rem;
        right: calc(2rem + 70px);
        font-size: 1.3rem;
    }
    
    
    /* ========================================
       MENÚ OVERLAY - Versión tablet híbrida
       ======================================== */
    
    .menu-overlay__wrapper {
        padding: 2rem 3rem;
    }
    
    .menu-overlay__header {
        padding-bottom: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .menu-overlay__logo {
        width: 170px;
    }
    
    .menu-overlay__close {
        top: 2rem;
        right: 3rem;
        font-size: 2.5rem;
        width: 2.5rem;
        height: 2.5rem;
    }
    
    /* Grid del menú: mostrar dos columnas en tablet landscape */
    .menu-overlay__grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .menu-overlay__left {
        padding-top: 1rem;
    }
    
    .menu-overlay__nav {
        gap: 0.6rem;
    }
    
    .menu-overlay__link {
        font-size: clamp(1.6rem, 4vw, 2.2rem);
        line-height: 1.3;
        margin-bottom: 0.2rem;
    }
    
    .menu-overlay__social {
        font-size: 0.9rem;
        gap: 0.5rem;
        margin-top: auto;
        padding-top: 2rem;
    }
    
    .menu-overlay__social a {
        min-height: 40px;
        gap: 0.3rem;
    }
    
    /* Columna derecha: video visible en tablet landscape */
    .menu-overlay__right {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: flex-start;
        gap: 1.5rem;
        padding-top: 1.5rem;
    }
    
    .menu-overlay__video-wrapper {
        display: block;
        width: 100%;
        max-width: 100%;
        aspect-ratio: 16 / 10;
        border-radius: 0;
        overflow: hidden;
    }
    
    .menu-overlay__video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .menu-overlay__hero-text {
        display: block;
        font-size: 1.8rem;
        text-align: right;
        line-height: 1.3;
        max-width: 100%;
    }

}


/* ============================================================================
   TABLET PORTRAIT ESPECÍFICO (769px - 900px)
   Ajustes para tablets en orientación vertical
   ============================================================================ */

@media (min-width: 769px) and (max-width: 900px) {
    
    /* Quienes Somos: layout de columna única más legible en portrait */
    .quienes__container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .quienes__grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        min-height: 300px;
        max-height: 400px;
    }
    
    .quienes__grid-item--large {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
    }
    
    .quienes__grid-item--small {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
    }
    
    .quienes__grid-item--medium {
        display: none;
    }
    
    /* Proveedores: formulario a una columna en portrait */
    .proveedores__form-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .proveedores__form-group--full {
        grid-column: 1;
    }
    
    /* Menú: ocultar video en portrait para mejor navegación */
    .menu-overlay__grid {
        grid-template-columns: 1fr;
    }
    
    .menu-overlay__right {
        display: none;
    }
    
    .menu-overlay__link {
        font-size: clamp(1.8rem, 5vw, 2.4rem);
    }

}


/* ============================================================================
   TABLET LANDSCAPE ESPECÍFICO (901px - 1023px)
   Ajustes finos para tablets en orientación horizontal
   ============================================================================ */

@media (min-width: 901px) and (max-width: 1023px) {
    
    /* Hero: más espacio lateral en landscape */
    .hero__inner {
        padding: 0 5rem 3.5rem;
        padding-top: 130px;
    }
    
    /* Quienes Somos: grid más espacioso */
    .quienes {
        padding: 6rem 4rem;
    }
    
    .quienes__container {
        gap: 4rem;
    }
    
    .quienes__grid {
        min-height: 450px;
    }
    
    /* Proyectos: cards más grandes */
    .proyectos__wrapper {
        padding: 0 4rem;
    }
    
    .proyectos__grid {
        gap: 2.5rem;
    }
    
    .proyecto-card__name {
        font-size: 2rem;
    }
    
    /* Proveedores: layout de dos columnas */
    .proveedores {
        padding: 6rem 4rem;
    }
    
    .proveedores__content {
        grid-template-columns: 1fr 1.2fr;
        gap: 4rem;
        align-items: start;
    }
    
    .proveedores__form-wrapper {
        max-width: none;
        margin: 0;
    }
    
    /* Footer más espacioso */
    .site-footer {
        padding: 3.5rem 4rem;
    }
    
    /* Menú overlay con video */
    .menu-overlay__wrapper {
        padding: 2.5rem 4rem;
    }
    
    .menu-overlay__grid {
        gap: 3rem;
    }
    
    .menu-overlay__hero-text {
        font-size: 2rem;
    }

}


/* ============================================================================
   MEJORAS DE ACCESIBILIDAD TÁCTIL PARA TABLET
   ============================================================================ */

@media (min-width: 769px) and (max-width: 1023px) {
    
    /* Área táctil mínima para elementos interactivos */
    .nav__burger,
    .menu-overlay__close,
    .proyectos__btn,
    .proveedores__form-submit {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Links del menú con área táctil suficiente */
    .menu-overlay__link {
        padding: 0.4rem 0;
    }
    
    /* Botones de formulario más grandes */
    .proveedores__form-submit {
        padding: 1rem 2.2rem;
    }

}


/* ============================================================================
   FIN DE OPTIMIZACIONES TABLET
   ============================================================================ */


/* ============================================================================
   PÁGINAS SECUNDARIAS - TABLET (769px - 1023px)
   ============================================================================ */

@media (min-width: 769px) and (max-width: 1023px) {
    
    /* ========================================
       WORK WITH US / CONTACTO - Ajustes tablet
       ======================================== */
    
    .work-with-us-page .proveedores,
    .contacto-page .proveedores {
        padding: 4rem 3rem;
    }
    
    .work-with-us-page .proveedores__content,
    .contacto-page .proveedores__content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .work-with-us-page .proveedores__text-wrapper .quienes__title,
    .contacto-page .proveedores__text-wrapper .quienes__title {
        font-size: clamp(2.2rem, 5vw, 3rem);
    }
    
    .work-with-us-page .proveedores__form-wrapper,
    .contacto-page .proveedores__form-wrapper {
        max-width: 650px;
        margin: 0 auto;
        padding: 2.2rem;
    }
    
    .work-with-us-page .proveedores__form-grid,
    .contacto-page .proveedores__form-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.8rem 1.5rem;
    }
    
    /* Botón volver en tablet */
    .back-to-home--top {
        padding: 1.8rem 3rem;
    }
    
    .back-to-home--top a {
        font-size: 1.1rem;
    }
    
    /* Flecha mobile oculta en tablet */
    .back-arrow-mobile {
        display: none !important;
    }

}

/* Tablet Portrait para Work With Us */
@media (min-width: 769px) and (max-width: 900px) {
    
    .work-with-us-page .proveedores__form-grid,
    .contacto-page .proveedores__form-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .work-with-us-page .proveedores__form-wrapper,
    .contacto-page .proveedores__form-wrapper {
        max-width: 100%;
    }

}


/* ============================================================================
   SENDEROS HOUSING - TABLET (769px - 1023px)
   ============================================================================ */

@media (min-width: 769px) and (max-width: 1023px) {
    
    /* Header del hero */
    .hero-header-inner {
        padding: 0 3rem !important;
    }
    
    .hero-logo {
        max-width: 280px !important;
    }
    
    /* Botón volver a proyectos */
    .fixed-back-button {
        display: inline-flex;
        right: 3rem;
        font-size: 1rem;
    }
    
    .btn-volver-proyectos-unified {
        right: 3rem !important;
        bottom: 2.5rem !important;
    }
    
    /* Botones fijos */
    .fixed-buttons {
        right: 1.5rem;
        bottom: 1.5rem;
    }
    
    .scroll-to-top-button,
    .whatsapp-button {
        width: 52px;
        height: 52px;
        font-size: 1.3rem;
    }
    
    /* Secciones de contenido */
    .hero-text-below-content {
        padding: 0 3rem;
    }
    
    /* Tours virtuales */
    .tours-virtuales__btn {
        font-size: 0.95rem;
        padding: 0.45rem 1.2rem;
    }

}


/* ============================================================================
   GALERÍA - TABLET (769px - 1023px)
   ============================================================================ */

@media (min-width: 769px) and (max-width: 1023px) {
    
    /* Header de galería */
    .gallery-header .header-content {
        padding-left: 3rem;
        padding-right: 3rem;
    }
    
    /* Grid de galería a 2 columnas */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 0 3rem;
    }
    
    /* Items de galería */
    .gallery-item {
        aspect-ratio: 4 / 3;
    }
    
    .gallery-item--featured {
        grid-column: span 2;
        aspect-ratio: 16 / 9;
    }

}
