/* ==========================================================================
   TRIANA FAITH - HOJA DE ESTILOS CORPORATIVA (MEDICINA & TEXTIL)
   ========================================================================== */

:root {
    --medical-turquoise: #33b1bd; /* Cian/Turquesa del logo TRIANA Faith */
    --medical-dark: #6e6e6e;      /* Gris Oscuro de fondo del logo corporativo */
    --medical-light: #ffffff;     /* Blanco puro de bioseguridad */
    --text-dark: #333333;
    --text-muted: #666666;
    --bg-light: #f4f7f6;          /* Fondo grisáceo claro hospitalario */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: var(--medical-light);
}

body {
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    background-color: rgba(110, 110, 110, 0.95);
    backdrop-filter: blur(8px);
    color: var(--medical-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.brand {
    display: flex;
    align-items: center;
    background-color: var(--medical-light);
    padding: 6px 12px;
    border-radius: 4px;
}

.brand-text-dark {
    color: var(--medical-dark);
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: 2px;
}

.brand-text-color {
    color: var(--medical-turquoise);
    font-weight: 300;
    font-size: 0.8rem;
    padding-left: 4px;
    align-self: flex-end;
    margin-bottom: 3px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a:hover {
    color: var(--medical-turquoise);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* HERO SECTION */
.hero {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
    background: linear-gradient(135deg, var(--medical-dark) 0%, #4a4a4a 100%);
    color: var(--medical-light);
    display: flex;
    align-items: center;
    padding: 0 10%;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-badge {
    display: inline-block;
    background-color: rgba(51, 177, 189, 0.2);
    color: var(--medical-turquoise);
    border: 1px solid rgba(51, 177, 189, 0.4);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero h1 span {
    color: var(--medical-turquoise);
    display: block;
}

.hero-slogan {
    font-size: 1.25rem;
    font-style: italic;
    border-left: 4px solid var(--medical-turquoise);
    padding-left: 1rem;
    margin-bottom: 1.5rem;
    color: #e0e0e0;
}

.hero-description {
    color: #cccccc;
    margin-bottom: 2rem;
}

.btn-primary {
    background-color: var(--medical-turquoise);
    color: var(--medical-light);
    font-weight: bold;
    padding: 12px 28px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(51, 177, 189, 0.3);
}

.btn-primary:hover {
    background-color: #2796a1;
    transform: translateY(-2px);
}

.hero-card {
    width: 100%;
    max-width: 400px;
    height: 400px;
    background-color: #555555;
    border-radius: 12px;
    border: 1px solid #777777;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.hero-card i {
    font-size: 5rem;
    color: #888888;
}

/* SECCIONES ESTRUCTURA */
.section {
    padding: 100px 10%;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--medical-dark);
}

.section-title .divider {
    height: 4px;
    width: 60px;
    background-color: var(--medical-turquoise);
    margin: 15px auto 20px auto;
    border-radius: 2px;
}

.section-title p {
    color: var(--text-muted);
}

/* NOSOTROS */
.nosotros-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.card-mision {
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.card-vision {
    background-color: var(--medical-dark);
    color: var(--medical-light);
    padding: 40px;
    border-radius: 12px;
}

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.card-mision .icon-box {
    background-color: rgba(51, 177, 189, 0.1);
    color: var(--medical-turquoise);
}

.card-vision .icon-box {
    background-color: rgba(255,255,255,0.1);
    color: var(--medical-turquoise);
}

/* SERVICIOS Y TEXTILES */
.bg-alt {
    background-color: var(--bg-light);
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.servicio-card {
    background-color: var(--medical-light);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.servicio-card:hover {
    border-color: var(--medical-turquoise);
}

.servicio-card .icon {
    font-size: 2rem;
    color: var(--medical-turquoise);
    margin-bottom: 1rem;
}

.materiales-panel {
    background-color: var(--medical-dark);
    color: var(--medical-light);
    padding: 40px;
    border-radius: 12px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.telas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.tela-item {
    background-color: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
}

.tela-item span {
    color: var(--medical-turquoise);
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

/* MULTIMEDIA */
.multimedia-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.media-card {
    background-color: var(--medical-dark);
    border-radius: 12px;
    overflow: hidden;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background-color: #000;
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-info {
    padding: 20px;
    color: var(--medical-light);
}

/* CLIENTES */
.clientes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.cliente-box {
    background-color: var(--medical-light);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    text-align: center;
    font-weight: bold;
    color: var(--medical-dark);
}

/* CONTACTO */
.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item .icon {
    width: 45px;
    height: 45px;
    background-color: rgba(51, 177, 189, 0.1);
    color: var(--medical-turquoise);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contacto-form {
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #cccccc;
    border-radius: 6px;
}

.btn-submit {
    width: 100%;
    background-color: var(--medical-dark);
    color: var(--medical-light);
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

/* FOOTER */
.footer {
    background-color: var(--medical-dark);
    color: #dddddd;
    padding: 40px 10%;
    text-align: center;
}

/* WHATSAPP FLOAT */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: var(--medical-light);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 2000;
}

/* MOBILE MENU */
.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--medical-dark);
    padding: 20px;
    z-index: 999;
    list-style: none;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu a {
    color: var(--medical-light);
    display: block;
    padding: 10px 0;
}

@media (max-w: 968px) {
    .nav-links { display: none; }
    .menu-toggle { display: block; }
    .hero-container, .nosotros-grid, .materiales-panel, .contacto-grid, .telas-grid { grid-template-columns: 1fr; }
}


/* ==========================================================================
   ESTILOS PARA VENTANA EMERGENTE (VIDEO MODAL)
   ========================================================================== */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000; /* Asegura estar por encima del menú y flotantes */
}

.modal-content {
    background-color: var(--medical-dark);
    border: 2px solid var(--medical-turquoise);
    border-radius: 12px;
    width: 75%;            /* Reducido del 90% al 75% para pantallas medianas */
    max-width: 320px;      /* Reducido de 450px a 320px para hacerlo más discreto */
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}
.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: rgba(110, 110, 110, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--medical-light);
    font-size: 1.8rem;
    cursor: pointer;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3010;
    transition: all 0.2s;
}

.modal-close:hover {
    background-color: var(--medical-turquoise);
    color: var(--medical-light);
}

.video-container-modal {
    width: 100%;
    aspect-ratio: 9/16; /* Formato vertical del video */
    background-color: #000;
}

.video-container-modal video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-controls {
    padding: 15px;
    text-align: center;
    background-color: #525252;
}

.btn-unmute {
    background-color: var(--medical-turquoise);
    color: var(--medical-light);
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(51, 177, 189, 0.3);
    transition: background-color 0.2s;
}

.btn-unmute:hover {
    background-color: #2796a1;
}