/* ============================================
   KOMAT - ESTILOS MODERNOS CON GLASSMORPHISM
   ============================================ */

/* --- VARIABLES GLOBALES --- */
:root {
    --azul-corp: #0B688C;
    --naranja-acento: #F23005;
    --negro-suave: #0D0000;
    --blanco-fondo: #f8f9fa;
    --gris-borde: #ccc;
    --gris-claro: #ddd;
    --gris-oscuro: #999;
    --gris-texto: #666;
    --gris-muy-claro: #eee;
    --celeste-acento: #81d4fa;
    --naranja-claro: #ffccbc;
    --azul-claro: #1e88e5;
    --sombra-suave: 0 8px 32px rgba(31, 38, 135, 0.15);
    --sombra-media: 0 12px 40px rgba(31, 38, 135, 0.2);
}

/* ============================================
   ESTILOS BASE
   ============================================ */

* {
    box-sizing: border-box;
}

html {
    margin-top: 0px !important;
    scroll-behavior: smooth;
    height: 100%;
}

body {
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    overflow-x: hidden;
    top: 0 !important;
    position: static !important;
}

/* ============================================
   HEADER / NAVEGACIÓN
   ============================================ */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 3px solid var(--azul-corp);
    box-shadow: var(--sombra-suave);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

header:hover {
    box-shadow: var(--sombra-media);
}

.Logo img {
    height: 40px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.Logo img:hover {
    transform: scale(1.1) rotate(2deg);
}

.Banderas {
    display: flex;
    align-items: center;
    gap: 8px;
}

.Banderas img {
    width: 28px;
    height: 20px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.Banderas img:hover {
    transform: scale(1.25) translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: linear-gradient(135deg, var(--azul-corp) 0%, #0a5a7a 100%);
    color: white;
    font-size: 0.85rem;
    border-top: 5px solid var(--negro-suave);
    box-shadow: var(--sombra-media);
    transition: all 0.3s ease;
}

footer:hover {
    box-shadow: 0 15px 45px rgba(11, 104, 140, 0.3);
}

.Footer-Logo img {
    width: 90px;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.Footer-Logo img:hover {
    transform: scale(1.05);
}

.Copyright {
    text-align: center;
    flex: 1;
}

.Copyright p {
    margin-bottom: 8px;
    font-weight: 500;
}

.Copyright a {
    color: var(--celeste-acento);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 4px;
}

.Copyright a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.Footer-Contacto {
    display: flex;
    gap: 40px;
}

.Footer-Contacto nav p {
    margin: 0;
    line-height: 1.8;
}

.Footer-Contacto nav p strong {
    color: var(--celeste-acento);
    font-weight: 600;
}

/* ============================================
   PÁGINA DE INICIO
   ============================================ */

.contenedor-boton {
    display: flex;
    gap: 15px;
    align-items: center;
}

.Entrar {
    background: linear-gradient(135deg, var(--naranja-acento) 0%, #ff4d26 100%);
    color: white;
    padding: 12px 35px;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    box-shadow: 0 6px 20px rgba(242, 48, 5, 0.35);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.Entrar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
}

.Entrar:hover::before {
    left: 100%;
}

.Entrar:hover {
    background: linear-gradient(135deg, var(--negro-suave), #2a2a2a);
    transform: scale(1.08) translateY(-3px);
    border-radius: 25px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.Entrar:active {
    transform: scale(0.95);
}

/* Botón flotante sobre la imagen */
.boton-entrada-flotante {
    position: absolute;
    z-index: 10;
    text-decoration: none;
}

/* ============================================
   PÁGINA EMPRESA
   ============================================ */

.Información {
    padding: 60px 5% 20px;
}

.Contenedor-Superior {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
    align-items: center;
}

.Información p {
    text-align: left;
    line-height: 1.8;
    font-size: 1.05rem;
    width: 100%;
    max-width: 1200px;
    color: #444;
}

.Imagenes_Link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;         
}

.Imagenes_Link img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--sombra-suave);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.Imagenes_Link a {
    position: relative; 
    display: inline-block; 
    border-radius: 12px;
    width: 40%;
    max-width: 250px;
}

.Imagenes_Link a::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    opacity: 0;
    transition: all 0.3s ease;
    text-align: center;
    padding: 15px; 
    background-color: rgba(0, 0, 0, 0.5); 
    z-index: 2; 
}

.Imagenes_Link a:hover img {
    transform: scale(1.06) translateY(-5px);
    box-shadow: var(--sombra-media);
}

.Imagenes_Link a:hover::after {
    opacity: 1;
}

.Seccion-Servicios {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.Contenedor-Lista-Mapa {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.Lista-Servicios {
    line-height: 1.9;
    font-size: 1rem;
    color: #444;
}

.Contenedor-Mapa {
    width: 100%;
    max-width: 500px;
}

.mapa-interactivo {
    width: 100%;
    max-width: 500px;
    height: auto;
    cursor: pointer;
    border-radius: 12px;
    box-shadow: var(--sombra-suave);
    border: 2px solid rgba(11, 104, 140, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mapa-interactivo:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: var(--sombra-media);
    border-color: var(--azul-corp);
}

.mapa-interactivo.expandido {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw;
    max-width: 1100px;
    z-index: 1000;
    border-radius: 20px;
}

.mapa-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: fadeInOverlay 0.3s ease;
}

.mapa-overlay.activo {
    display: block;
}

@keyframes fadeInOverlay {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ============================================
   SECCIÓN DE TABS
   ============================================ */

.seccion-tabs-inferior {
    margin: 40px 5% 60px;
    border: 2px solid rgba(11, 104, 140, 0.1);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    max-width: 1200px;
    align-self: center;
    width: 90%;
    border-radius: 15px;
    box-shadow: var(--sombra-suave);
    overflow: hidden;
    transition: all 0.3s ease;
}

.seccion-tabs-inferior:hover {
    box-shadow: var(--sombra-media);
}

.tabs-header {
    display: flex;
    border-bottom: 2px solid rgba(11, 104, 140, 0.1);
    background: linear-gradient(90deg, rgba(11, 104, 140, 0.05) 0%, rgba(242, 48, 5, 0.05) 100%);
}

.tab-btn {
    flex: 1;
    padding: 16px;
    text-align: center;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--gris-oscuro);
    cursor: pointer;
    border: none;
    background: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    position: relative;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--naranja-acento), var(--azul-corp));
    transition: width 0.3s ease;
}

.tab-btn:hover {
    color: var(--azul-corp);
    background: rgba(11, 104, 140, 0.05);
}

.tab-btn:hover::after {
    width: 100%;
}

.tab-btn.active {
    background: linear-gradient(90deg, rgba(11, 104, 140, 0.1), rgba(242, 48, 5, 0.05));
    color: var(--azul-corp);
}

.tab-btn.active::after {
    width: 100%;
}

.tab-content {
    display: none;
    padding: 40px;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

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

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

.introduccion-contacto {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 40px;
}

.icono-naranja {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--naranja-acento), #ff4d26);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(242, 48, 5, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(242, 48, 5, 0.3);
    }
    50% {
        box-shadow: 0 8px 30px rgba(242, 48, 5, 0.5);
    }
}

.fila-info-contacto {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 40px;
}

.imagen-contacto-decorativa img {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--sombra-suave);
    transition: all 0.4s ease;
}

.imagen-contacto-decorativa img:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: var(--sombra-media);
}

.datos-contacto-lista {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dato-item {
    padding: 15px;
    background: rgba(11, 104, 140, 0.05);
    border-left: 4px solid var(--naranja-acento);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.dato-item:hover {
    background: rgba(11, 104, 140, 0.1);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(11, 104, 140, 0.15);
}

.dato-item h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--azul-corp);
}

.dato-item p {
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    color: #333;
}

.seccion-qr-contacto {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    border-top: 2px solid rgba(11, 104, 140, 0.1);
    padding-top: 30px;
}

.qr-img {
    width: 150px;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--sombra-suave);
    transition: all 0.3s ease;
}

/* QR Estático al pasar el ratón */
.qr-img:hover {
    transform: none;
    box-shadow: var(--sombra-suave);
}

/* ============================================
   BOTONES PERSONALIZADOS
   ============================================ */

.btn-personalizado {
    background: linear-gradient(135deg, var(--naranja-acento) 0%, #ff4d26 100%);
    color: white;
    padding: 12px 32px;
    border-radius: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    box-shadow: 0 6px 20px rgba(242, 48, 5, 0.35);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    margin: 10px;
    display: inline-block;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-personalizado::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
}

.btn-personalizado:hover::before {
    left: 100%;
}

.btn-personalizado:hover {
    background: linear-gradient(135deg, var(--negro-suave), #2a2a2a);
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    color: white;
}

.btn-personalizado:active {
    transform: scale(0.95);
}

/* ============================================
   CONTENEDOR IFRAME
   ============================================ */

.contenedor-iframe {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: 56.25%;
    border-radius: 12px;
    box-shadow: var(--sombra-suave);
    transition: all 0.3s ease;
}

.contenedor-iframe:hover {
    box-shadow: var(--sombra-media);
}

.contenedor-iframe iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 12px;
}

/* ============================================
   OVERLAY DE ZOOM
   ============================================ */

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1001;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    animation: fadeInOverlay 0.3s ease;
}

.overlay.active {
    display: flex;
}

.overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ============================================
   PÁGINA FORMACIÓN
   ============================================ */

.boton-atras {
    display: inline-block;
    margin-bottom: 25px;
    padding: 10px 22px;
    background-color: white;
    color: var(--azul-corp);
    border: 2px solid var(--azul-corp);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    letter-spacing: 0.5px;
}

.boton-atras:hover {
    background: linear-gradient(135deg, var(--azul-corp), #0a5a7a);
    color: white;
    transform: translateX(-5px);
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(11, 104, 140, 0.3);
    border-color: transparent;
}

.boton-atras:active {
    transform: translateX(-3px) scale(0.98);
}

main {
    flex: 1;
    padding: 40px 50px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.formacion-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px;
    border: 2px solid rgba(11, 104, 140, 0.1);
    border-radius: 15px;
    box-shadow: var(--sombra-suave);
    transition: all 0.3s ease;
}

.formacion-container:hover {
    box-shadow: var(--sombra-media);
}

.formacion-text {
    flex: 2;
    min-width: 300px;
    line-height: 1.8;
    color: #444;
}

/* ============================================
   EFECTOS DE IMAGEN CON HOVER (PIE DE FOTO)
   ============================================ */

.image-hover-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.image-hover-wrapper img {
    display: block;
    width: 100%;
    height: auto;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.image-hover-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(11, 104, 140, 0) 0%, rgba(11, 104, 140, 0.95) 100%);
    color: white;
    padding: 30px 20px 20px 20px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    border-radius: 12px;
}

.image-hover-wrapper:hover .image-hover-caption {
    transform: translateY(0);
}

.formacion-images {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
}

.formacion-images img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--sombra-suave);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.formacion-images img:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: var(--sombra-media);
}

h2 {
    color: var(--azul-corp);
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: -0.5px;
}

.custom-list {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.custom-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(11, 104, 140, 0.1);
    display: flex;
    align-items: center;
}

.custom-list li::before {
    content: "▸";
    color: var(--naranja-acento);
    font-weight: bold;
    margin-right: 12px;
    font-size: 1.3rem;
}

.destacado {
    background: linear-gradient(135deg, rgba(11, 104, 140, 0.1), rgba(242, 48, 5, 0.05));
    padding: 20px;
    border-left: 4px solid var(--naranja-acento);
    margin-top: 25px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.destacado:hover {
    background: linear-gradient(135deg, rgba(11, 104, 140, 0.15), rgba(242, 48, 5, 0.1));
    transform: translateX(5px);
}

/* ============================================
   BLOQUEO DE GOOGLE TRANSLATE
   ============================================ */

iframe.goog-te-banner-frame,
.goog-te-banner-frame,
.goog-te-banner,
.skiptranslate,
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-tooltip {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.goog-text-highlight {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* ============================================
   MEDIA QUERIES - RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    header,
    footer {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }

    .Footer-Contacto {
        flex-direction: column;
        gap: 15px;
        margin-top: 20px;
    }

    .Banderas {
        margin-top: 15px;
        gap: 5px;
    }

    .Banderas img {
        width: 24px;
        height: 18px;
    }

    footer {
        padding: 20px;
    }

    .tab-content {
        padding: 20px;
    }

    main {
        padding: 20px;
    }

    .seccion-tabs-inferior {
        margin: 20px 5%;
        border-radius: 10px;
    }
}

@media (min-width: 992px) {
    .Contenedor-Superior,
    .Contenedor-Lista-Mapa,
    .fila-info-contacto,
    .seccion-qr-contacto {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }

    .Información p,
    .Lista-Servicios,
    .datos-contacto-lista,
    .texto-qr {
        flex: 2;
    }

    .Imagenes_Link,
    .Contenedor-Mapa,
    .imagen-contacto-decorativa,
    .qr-container {
        flex: 1;
    }

    .Contenedor-Superior,
    .Contenedor-Lista-Mapa,
    .fila-info-contacto {
        gap: 60px;
    }

    footer {
        display: flex;
        justify-content: space-between;
    }
}

@media (max-width: 600px) {
    .tab-content {
        padding: 20px;
    }

    .formacion-container {
        flex-direction: column;
        padding: 20px;
        border-radius: 10px;
    }

    .formacion-text,
    .formacion-images {
        flex: 1;
        min-width: 100%;
    }

    main {
        padding: 20px;
    }

    header {
        padding: 12px 20px;
        border-radius: 0;
    }

    footer {
        padding: 20px;
        flex-direction: column;
        gap: 20px;
        border-radius: 0;
    }

    h2 {
        font-size: 1.3rem;
    }
}