/* ==========================================================================
   Tex Fashion Dotaciones IND - Estilos Principales Consolidados
   ========================================================================== */

:root {
    --azul-rey: #4169E1;
    --azul-oscuro: #1d3557;
    --dorado: #D4AF37;
    --verde-pistacho: #93C572;
    --fondo-suave: #f4f6fa;
    --blanco: #ffffff;
    --texto: #2d3748;
    --texto-secundario: #64748b;
    --border-color: #e2e8f0;
    --transicion-suave: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(180deg, #ebf2fa 0%, #f7f9fc 50%, #f6f5f2 100%);
    background-attachment: fixed;
    color: var(--texto);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header y Navegación tipo Cápsula */
header {
    background: var(--blanco);
    padding: 15px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    position: sticky;
    top: 0;
    z-index: 999;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-img {
    width: 65px;
    height: 65px;
    object-fit: contain;
    border-radius: 50%;
    background-color: var(--fondo-suave);
}

.logo-text h1 {
    font-size: 1.6rem;
    color: var(--azul-rey);
    font-weight: 800;
    line-height: 1.1;
}

.logo-text span {
    font-size: 0.75rem;
    color: var(--dorado);
    letter-spacing: 2px;
    font-weight: 700;
    text-transform: uppercase;
    display: block;
}

/* Botón Hamburguesa para Móvil */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--azul-oscuro);
    cursor: pointer;
    padding: 8px;
}

nav.nav-capsula {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 6px 10px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}

nav.nav-capsula ul {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

nav.nav-capsula a {
    text-decoration: none;
    color: var(--texto-secundario);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 30px;
    transition: var(--transicion-suave);
    display: flex;
    align-items: center;
    gap: 6px;
}

nav.nav-capsula a.active, 
nav.nav-capsula a:hover {
    background: var(--azul-rey);
    color: var(--blanco);
    box-shadow: 0 4px 10px rgba(65, 105, 225, 0.3);
}

/* Dropdown de Navegación */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-toggle i.fa-chevron-down {
    font-size: 0.7rem;
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-toggle i.fa-chevron-down,
.nav-dropdown.open .dropdown-toggle i.fa-chevron-down {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--blanco);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    padding: 8px 0;
    min-width: 230px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(6px);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    padding: 10px 18px !important;
    border-radius: 0 !important;
    color: var(--texto) !important;
    font-size: 0.88rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    box-shadow: none !important;
    width: 100%;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
    background: rgba(65, 105, 225, 0.08) !important;
    color: var(--azul-rey) !important;
}

/* Banner de Encabezado de Página Interna */
.page-header {
    background: linear-gradient(135deg, var(--azul-oscuro) 0%, var(--azul-rey) 100%);
    color: var(--blanco);
    padding: 50px 8%;
    text-align: center;
}

.page-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

.breadcrumb {
    margin-top: 15px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.75);
}

.breadcrumb a {
    color: var(--dorado);
    text-decoration: none;
    font-weight: 600;
}

/* ==========================================================================
   Grilla del Catálogo de 4 Recuadros (Páginas de Catálogo)
   ========================================================================== */

.catalog-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.catalog-item-card {
    background: var(--blanco);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    overflow: hidden;
    transition: var(--transicion-suave);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.catalog-item-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(65, 105, 225, 0.18);
    border-color: var(--azul-rey);
}

/* Recuadro de Imagen en Blanco (Placeholder) */
.image-placeholder-box {
    width: 100%;
    height: 240px;
    background: #edf2f7;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--texto-secundario);
    transition: var(--transicion-suave);
    position: relative;
}

.catalog-item-card:hover .image-placeholder-box {
    background: #e2e8f0;
    color: var(--azul-rey);
}

.image-placeholder-box i {
    font-size: 2.8rem;
    margin-bottom: 10px;
    opacity: 0.7;
}

.image-placeholder-box span {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.zoom-overlay-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(65, 105, 225, 0.85);
    color: var(--blanco);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.catalog-item-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.catalog-item-title {
    font-size: 1.2rem;
    color: var(--azul-oscuro);
    margin-bottom: 8px;
    font-weight: 700;
}

.catalog-item-desc {
    font-size: 0.92rem;
    color: var(--texto-secundario);
    line-height: 1.5;
}

/* Modal Lightbox (Visualización en Grande) */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(6px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    background: var(--blanco);
    border-radius: 24px;
    max-width: 650px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox-modal.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: var(--texto-secundario);
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    z-index: 10;
    transition: color 0.2s;
}

.lightbox-close:hover {
    color: var(--azul-rey);
}

.lightbox-box {
    width: 100%;
    height: 320px;
    background: #edf2f7;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--azul-rey);
}

.lightbox-box i {
    font-size: 4rem;
    margin-bottom: 12px;
}

.lightbox-box span {
    font-size: 1rem;
    font-weight: 700;
}

.lightbox-body {
    padding: 30px;
}

.lightbox-title {
    font-size: 1.5rem;
    color: var(--azul-oscuro);
    margin-bottom: 12px;
    font-weight: 800;
}

.lightbox-desc {
    font-size: 1rem;
    color: var(--texto-secundario);
    line-height: 1.6;
    margin-bottom: 20px;
}

.lightbox-action {
    display: flex;
    gap: 15px;
}

/* ==========================================================================
   Grilla de Contacto (Formulario + Información + Mapa)
   ========================================================================== */

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 50px;
}

.contact-info-card {
    background: var(--blanco);
    padding: 35px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: 0 6px 20px rgba(0,0,0,0.04);
}

.contact-info-card h2 {
    font-size: 1.6rem;
    color: var(--azul-oscuro);
    margin-bottom: 20px;
    font-weight: 800;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 22px;
}

.contact-item-icon {
    width: 45px;
    height: 45px;
    background: rgba(65, 105, 225, 0.1);
    color: var(--azul-rey);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-item-text h4 {
    font-size: 1rem;
    color: var(--azul-oscuro);
    margin-bottom: 4px;
    font-weight: 700;
}

.contact-item-text p, .contact-item-text a {
    font-size: 0.95rem;
    color: var(--texto-secundario);
    text-decoration: none;
}

.contact-item-text a:hover {
    color: var(--azul-rey);
}

/* Formulario de Mensajes */
.contact-form-card {
    background: var(--blanco);
    padding: 35px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: 0 6px 20px rgba(0,0,0,0.04);
}

.contact-form-card h2 {
    font-size: 1.6rem;
    color: var(--azul-oscuro);
    margin-bottom: 20px;
    font-weight: 800;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--azul-oscuro);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    font-size: 0.95rem;
    color: var(--texto);
    background: var(--fondo-suave);
    transition: var(--transicion-suave);
}

.form-control:focus {
    outline: none;
    border-color: var(--azul-rey);
    background: var(--blanco);
    box-shadow: 0 0 0 3px rgba(65, 105, 225, 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-status-alert {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: none;
}

.form-status-alert.success {
    display: block;
    background: rgba(147, 197, 114, 0.2);
    color: #2b5415;
    border: 1px solid #93C572;
}

/* Sección Mapa de Google Maps */
.map-container {
    background: var(--blanco);
    padding: 25px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: 0 6px 20px rgba(0,0,0,0.04);
}

.map-container h3 {
    font-size: 1.4rem;
    color: var(--azul-oscuro);
    margin-bottom: 15px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.map-frame {
    width: 100%;
    height: 380px;
    border: 0;
    border-radius: 16px;
}

/* ==========================================================================
   Hero / Sección Principal & Servicios
   ========================================================================== */

.hero {
    padding: 60px 8%;
    max-width: 1300px;
    margin: 0 auto;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(147, 197, 114, 0.2);
    color: #3b6e1e;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-left h1 {
    font-size: 2.8rem;
    color: var(--azul-oscuro);
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-left h1 span {
    color: var(--azul-rey);
    font-style: italic;
}

.hero-left p {
    color: var(--texto-secundario);
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transicion-suave);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--azul-rey);
    color: var(--blanco);
    box-shadow: 0 4px 15px rgba(65, 105, 225, 0.3);
}

.btn-primary:hover {
    background: #2b4cc0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(65, 105, 225, 0.4);
}

.btn-outline {
    border: 2px solid var(--azul-rey);
    color: var(--azul-rey);
    background: transparent;
}

.btn-outline:hover {
    background: rgba(65, 105, 225, 0.08);
    transform: translateY(-2px);
}

/* Tarjeta Flotante Azul Rey */
.hero-card {
    background: var(--azul-rey);
    color: var(--blanco);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(65, 105, 225, 0.25);
    transition: var(--transicion-suave);
}

.hero-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(65, 105, 225, 0.35);
}

.hero-card h3 {
    font-size: 1.6rem;
    color: var(--blanco);
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin-bottom: 25px;
    line-height: 1.6;
}

.card-link {
    color: var(--dorado);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transicion-suave);
}

.card-link:hover {
    gap: 12px;
    color: var(--blanco);
}

/* Secciones Adicionales */
.section {
    padding: 60px 8%;
    max-width: 1300px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--azul-oscuro);
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--azul-rey);
    border-radius: 2px;
    margin: 8px auto 0 auto;
}

/* Barra de Cápsulas de Servicios */
.services-bar-container {
    background: var(--blanco);
    border: 1px solid var(--border-color);
    padding: 22px 28px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    margin: 0 auto 30px auto;
    max-width: 1050px;
    display: flex;
    justify-content: center;
}

.services-bar-list {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    flex-wrap: wrap;
    gap: 12px 18px;
    text-align: center;
}

.service-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--azul-oscuro);
    background: transparent;
    transition: var(--transicion-suave);
    border: 1px solid transparent;
}

.service-pill i {
    color: var(--azul-rey);
    font-size: 1rem;
    transition: color 0.3s ease;
}

.service-pill:hover {
    background: var(--azul-rey);
    color: var(--blanco);
    box-shadow: 0 4px 12px rgba(65, 105, 225, 0.25);
    border-color: var(--azul-rey);
}

.service-pill:hover i {
    color: var(--dorado);
}

/* Tarjetas de Misión y Visión estilo Azul Rey */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.info-card-blue {
    background: var(--azul-rey);
    color: var(--blanco);
    padding: 40px 35px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(65, 105, 225, 0.22);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card-blue:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(65, 105, 225, 0.32);
}

.info-card-blue h3 {
    color: var(--blanco);
    font-size: 1.5rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.info-card-blue h3 i {
    color: var(--dorado);
    font-size: 1.6rem;
}

.info-card-blue p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.98rem;
    line-height: 1.7;
}

/* Footer */
footer {
    background: var(--blanco);
    padding: 35px 8%;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
}

.footer-details {
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--texto-secundario);
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-details p {
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-details i {
    color: var(--azul-rey);
}

.copyright {
    margin: 0;
    font-size: 0.85rem;
    color: #a0aec0;
}

/* Botones Flotantes de Redes Sociales */
.floating-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}

.floating-container a {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.3rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-container a:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

.whatsapp { background-color: #25D366; }
.instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.facebook { background-color: #1877F2; }
.tiktok { background-color: #000000; }

/* Responsive Queries */
@media (max-width: 900px) {
    .menu-toggle {
        display: block;
    }

    nav.nav-capsula {
        display: none;
        width: 100%;
        border-radius: 20px;
        margin-top: 15px;
        padding: 15px;
    }

    nav.nav-capsula.open {
        display: block;
    }

    nav.nav-capsula ul {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    nav.nav-capsula a {
        justify-content: center;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        background: rgba(65, 105, 225, 0.04);
        border-radius: 12px;
        padding: 5px 0;
        min-width: auto;
        opacity: 1;
        visibility: visible;
        display: none;
    }

    .nav-dropdown.open .dropdown-menu {
        display: flex;
        transform: none;
    }

    header {
        flex-wrap: wrap;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-left h1 {
        font-size: 2.2rem;
    }

    .catalog-page-grid {
        grid-template-columns: 1fr;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    header {
        padding: 12px 5%;
    }
    
    .logo-img {
        width: 50px;
        height: 50px;
    }

    .logo-text h1 {
        font-size: 1.3rem;
    }

    .logo-text span {
        font-size: 0.65rem;
    }

    .hero {
        padding: 35px 5%;
    }

    .hero-left h1 {
        font-size: 1.8rem;
    }

    .hero-card {
        padding: 25px;
    }

    .section {
        padding: 40px 5%;
    }

    .floating-container {
        bottom: 15px;
        right: 15px;
    }

    .floating-container a {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }

    .map-frame {
        height: 280px;
    }
}
