:root {
    --primary-orange: #FF8C00;
    --primary-red: #D32F2F;
    --bg-gradient: linear-gradient(135deg, rgba(255,140,0,0.9) 0%, rgba(211,47,47,0.9) 100%);
    --gradient-linear: linear-gradient(135deg, #FF8C00 0%, #D32F2F 100%);
    --gradient: linear-gradient(135deg, #FF8C00 0%, #D32F2F 100%);
    --dark-accent: #1A1A1A;
    --sidebar-width: 260px;
    --nav-height: 75px;
    --dark-gray: #1a1a1a;


}
/* Desplazamiento suave para toda la página */
html {
    scroll-behavior: smooth;
}

/* Offset para que el navbar sticky no tape el inicio de las secciones */
section {
    scroll-margin-top: 70px; /* Ajusta según la altura de tu navbar */
}
body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    background-color: #fff;
}

/* RESET SQUARE CORNERS */
.card, .btn, .form-control, .modal-content, .dropdown-menu, .nav-link, .sidebar, img {
    border-radius: 0 !important;
}

/* NAVBAR CUSTOM */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 3px solid var(--primary-orange);
}

/* SECCIÓN INICIO - FADE SLIDER */
#inicio {
    height: 100vh;
    position: relative;
    overflow: hidden;
}
.hero-slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    z-index: -1;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
    background: rgba(0,0,0,0.4);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}
/* HEADER / HERO */


/* La capa naranja/roja con opacidad */
.page-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Degradado con transparencia (0.85 para que se vea la imagen) */
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.85) 0%, rgba(211, 47, 47, 0.85) 100%);
    z-index: 1;
}
/* TARJETAS DE EQUIPO */
        .team-card {
            border: none;
            background: transparent;
            transition: transform 0.3s ease;
            cursor: pointer;
        }
        .team-card:hover {
            transform: translateY(-10px);
        }
        .team-img-circle {
            width: 200px;
            height: 200px;
            object-fit: cover;
            border-radius: 50% !important; /* Excepción solicitada: Redonda */
            border: 4px solid var(--primary-orange);
            margin: 0 auto 20px;
            display: block;
            transition: border-color 0.3s;
        }
        .team-card:hover .team-img-circle {
            border-color: var(--primary-red);
        }

/* Asegurar que el texto esté por encima de la capa de color */
.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    text-shadow: 2px 2px 10px rgba(0,0,0,0.2); /* Sombra suave para resaltar el texto */
    letter-spacing: -1px;
}
        .text-orange { color: var(--primary-orange); }
        .text-red { color: var(--primary-red); }
/* EFECTOS DE CARGA (FADE IN ON SCROLL) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ACERCA DE - TEAM CARDS */
/* SECCIÓN QUIÉNES SOMOS */
.about-text {
    border-left: 4px solid var(--primary-orange);
    padding-left: 25px;
    line-height: 1.8;
}
.team-img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50% !important; /* Excepción solicitada: Imagen redonda */
    border: 5px solid var(--primary-orange);
    margin-bottom: 15px;
}

/* SERVICIOS - GRADIENTES */
.service-card {
    border: none;
    border-left: 5px solid var(--primary-red);
    transition: 0.3s;
    background: #f8f8f8;
}
.service-card:hover {
    background: var(--bg-gradient);
    color: white;
}

/* BLOG SLIDER */
.swiper { width: 100%; padding-bottom: 50px; }
.blog-card { background: white; border: 1px solid #ddd; }
.notification-dot {
    width: 8px; height: 8px; background: var(--primary-red);
    border-radius: 50% !important; display: inline-block;
    position: absolute; top: 12px; right: 8px;
}
        /* HEADER DEL BLOG */
        .blog-header {
            background: var(--dark-gray);
            color: white;
            padding: 80px 0;
            border-bottom: 5px solid var(--primary-orange);
            position: relative;
            overflow: hidden;
        }

        /* FILTROS */
        .filter-btn {
            background: white;
            border: 1px solid #ddd;
            color: #444;
            padding: 10px 25px;
            font-weight: 700;
            text-transform: uppercase;
            font-size: 0.8rem;
            margin: 5px;
            transition: 0.3s;
        }

        .filter-btn:hover, .filter-btn.active {
            background: var(--primary-red);
            border-color: var(--primary-red);
            color: white;
        }

        /* TARJETAS DE ENTRADA */
        .blog-card {
            border: none;
            background: white;
            box-shadow: 10px 10px 0px #eee;
            transition: 0.4s;
            height: 100%;
        }

        .blog-card:hover {
            transform: translateY(-10px);
            box-shadow: 15px 15px 0px var(--primary-orange);
        }

        .card-img-container {
            height: 220px;
            overflow: hidden;
            position: relative;
        }

        .card-img-top {
            object-fit: cover;
            height: 100%;
            transition: 0.5s;
        }

        .blog-card:hover .card-img-top {
            transform: scale(1.1);
        }

        .category-badge {
            position: absolute;
            top: 0;
            left: 0;
            background: var(--primary-red);
            color: white;
            padding: 5px 15px;
            font-size: 0.75rem;
            font-weight: bold;
            text-transform: uppercase;
        }

        .card-title {
            font-weight: 800;
            font-size: 1.25rem;
            line-height: 1.3;
            margin-bottom: 15px;
        }

        .card-text {
            color: #666;
            font-size: 0.95rem;
            line-height: 1.6;
        }

        .btn-read {
            color: var(--primary-red);
            text-decoration: none;
            font-weight: 800;
            text-transform: uppercase;
            font-size: 0.85rem;
            letter-spacing: 1px;
            display: inline-block;
            margin-top: 15px;
            border-bottom: 2px solid var(--primary-orange);
            padding-bottom: 2px;
            transition: 0.3s;
        }

        .btn-read:hover {
            color: var(--primary-orange);
            border-bottom-color: var(--primary-red);
        }

        /* PAGINACIÓN */
        .page-link {
            border: 2px solid #eee;
            color: var(--dark-gray);
            font-weight: bold;
            margin: 0 5px;
        }

        .page-link:hover, .page-item.active .page-link {
            background: var(--primary-orange);
            border-color: var(--primary-orange);
            color: white;
        }

        /* CABECERA DEL POST */
        .post-hero {
            background: #f8f9fa;
            padding: 60px 0;
            border-bottom: 1px solid #eee;
            margin-bottom: 50px;
        }

        .category-tag {
            background: var(--primary-orange);
            color: white;
            padding: 5px 15px;
            font-weight: 800;
            text-transform: uppercase;
            font-size: 0.75rem;
            display: inline-block;
            margin-bottom: 15px;
        }

        /* CONTENIDO DEL ARTÍCULO */
        .article-content { font-size: 1.1rem; line-height: 1.8; color: #333; }
        .article-content h2, .article-content h3 { 
            font-weight: 800; 
            margin-top: 40px; 
            margin-bottom: 20px;
            border-left: 5px solid var(--primary-red);
            padding-left: 15px;
        }

        blockquote {
            background: #fdf2f2;
            border-left: 5px solid var(--primary-red);
            padding: 30px;
            margin: 40px 0;
            font-style: italic;
            font-weight: 500;
        }

        /* SIDEBAR */
        .sidebar-box {
            border: 2px solid #000;
            padding: 30px;
            background: white;
            position: sticky;
            top: 100px;
        }

        .cta-button {
            background: var(--dark-gray);
            color: white;
            padding: 15px;
            display: block;
            text-align: center;
            text-decoration: none;
            font-weight: 700;
            text-transform: uppercase;
            transition: 0.3s;
        }

        .cta-button:hover {
            background: var(--primary-red);
            color: white;
            box-shadow: 8px 8px 0px var(--primary-orange);
        }

        /* RESPONSIVE */
        @media (max-width: 991.98px) {
            .navbar-main { height: auto !important; padding: 10px 1rem !important; }
            .navbar-collapse { max-height: calc(100vh - 70px); overflow-y: auto; background: white; padding: 20px; }
            .post-hero { padding: 40px 0; }
        }
                
.navbar-main {
    height: var(--nav-height);
    background: white;
    border-bottom: 2px solid var(--primary-orange);
    z-index: 1050;
    padding: 0 2rem;
}

.nav-link {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #444 !important;
    padding: 7px 7px !important;
    transition: 0.3s;
}

.nav-link:hover { color: var(--primary-red) !important; }

/* SIDEBAR (Ajustada para estar debajo del Nav) */
.sidebar {
    width: var(--sidebar-width);
    height: calc(100vh - var(--nav-height));
    background: #1a1a1a;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    padding-top: 20px;
    z-index: 1000;
    transition: 0.3s;
}

.sidebar-link {
    color: rgba(255,255,255,0.6);
    padding: 12px 25px;
    display: block;
    text-decoration: none;
    font-size: 0.85rem;
    border-left: 4px solid transparent;
}

.sidebar-link:hover, .sidebar-link.active {
    background: rgba(255,140,0,0.1);
    color: white;
    border-left-color: var(--primary-orange);
}

/* CONTENIDO PRINCIPAL */
.main-wrapper {
    margin-left: var(--sidebar-width);
    padding: 40px;
    margin-top: 10px;
}

/* ELEMENTOS VISUALES */
.notification-dot {
    width: 8px; height: 8px; background: var(--primary-red);
    border-radius: 50% !important; display: inline-block;
    position: absolute; top: 12px; right: 8px;
}
/* TABLA DE ARCHIVOS */
.pdf-table { background: white; border: none; }
.pdf-table thead { background: var(--primary-red); color: white; }
.btn-download { color: var(--primary-red); transition: 0.3s; }
.btn-download:hover { color: var(--primary-orange); }

.login-card {
    border: none;
    border-top: 5px solid var(--primary-orange);
    width: 100%;
    /*max-width: 400px;*/
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    background: white;
    padding: 40px;
}
.btn, .form-control { border-radius: 0 !important; }

.btn-login {
    background: var(--gradient);
    color: white;
    border: none;
    font-weight: bold;
    padding: 12px;
    transition: 0.3s;
}
.btn-login:hover { opacity: 0.9; color: white; transform: translateY(-2px); }
.login-logo { font-weight: 800; color: var(--primary-red); text-align: center; margin-bottom: 30px; }


/* CONTACTO */
#mapa { height: 400px; width: 100%; background: #eee; }
    /* Ajustes específicos para que no se rompa en móvil */
    @media (max-width: 991.98px) {
        .navbar-main {
            height: auto !important; /* Permite que el menú crezca al abrirse */
            padding: 1px 1rem !important;
        }
        
        .navbar-collapse {
            background: white;
            padding: 20px;
            border-top: 1px solid #eee;
            margin-top: 10px;
        }

        .nav-link {
            padding: 15px 0 !important;
            border-bottom: 1px solid #f8f9fa;
        }

        /* Ajuste para que el Sidebar no choque con el Nav abierto */
        .sidebar {
            top: 65px; /* Altura del navbar cerrado */
        }

        /* Limitamos la altura del menú colapsable */
        .navbar-collapse {
            /* Calculamos el alto: 100% de la pantalla menos la altura del navbar */
            max-height: calc(100vh - 70px); 
            overflow-y: auto; /* Permite el scroll interno si el contenido crece */
            padding-bottom: 20px;
            background-color: white;
            
            /* Opcional: una sombra interna para indicar que hay más contenido */
            box-shadow: inset 0 -10px 10px -10px rgba(0,0,0,0.1);
        }

        /* Suavizamos el scroll en iOS */
        .navbar-collapse {
            -webkit-overflow-scrolling: touch;
        }

        /* Estilizamos la barra de scroll para que no se vea tosca */
        .navbar-collapse::-webkit-scrollbar {
            width: 4px;
        }
        .navbar-collapse::-webkit-scrollbar-thumb {
            background: var(--primary-orange);
        }

    }

        /* HEADER SECCIÓN */
        .contact-header {
            background: var(--dark-gray);
            color: white;
            padding: 60px 0;
            border-bottom: 8px solid var(--primary-orange);
        }

        /* FORMULARIO */
        .form-control {
            border: 2px solid #eee;
            padding: 15px;
            transition: 0.3s;
        }

        .form-control:focus {
            border-color: var(--primary-orange);
            box-shadow: none;
            background-color: #fdfdfd;
        }

        .btn-send {
            background: var(--dark-gray);
            color: white;
            border: none;
            padding: 15px 40px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 2px;
            transition: 0.4s;
            width: 100%;
        }

        .btn-send:hover {
            background: var(--primary-red);
            box-shadow: 10px 10px 0px var(--primary-orange);
            transform: translate(-5px, -5px);
        }

        /* INFO BOXES */
        .info-box {
            border-left: 5px solid var(--primary-red);
            padding: 25px;
            background: #f8f9fa;
            margin-bottom: 25px;
            transition: 0.3s;
        }

        .info-box:hover {
            background: white;
            box-shadow: 10px 10px 0px #eee;
        }

        .icon-circle {
            width: 50px;
            height: 50px;
            background: var(--dark-gray);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 15px;
        }

        /* MAPA */
        .map-container {
            filter: grayscale(100%);
            border: 2px solid #000;
            height: 350px;
            width: 100%;
        }

        @media (max-width: 991.98px) {
            .navbar-main { height: auto !important; padding: 10px 1rem !important; }
            .navbar-collapse { max-height: calc(100vh - 70px); overflow-y: auto; background: white; padding: 20px; }
        }
.font-12 {
  font-size: 12px;
}
/**
 *  Not allowed area alert css
 */

/* Contenedor con bordes estrictamente cuadrados */
.restricted-card {
    //*max-width: 500px;*/
    width: 90%;
    background: #fff;
    border: 0px solid #333;
    padding: 5px 4px;
    position: relative;
    /*box-shadow: 20px 20px 0px rgba(211, 47, 47, 0.2);*/
}

/* Detalle naranja en la esquina superior */
.restricted-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    /*background: linear-gradient(90deg, var(--primary-orange), var(--primary-red));*/
}

.icon-box {
    font-size: 4rem;
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.btn-apex {
    background: transparent;
    color: var(--primary-orange);
    border: 2px solid var(--primary-orange);
    border-radius: 0 !important;
    padding: 12px 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-apex:hover {
    background: var(--primary-orange);
    color: white;
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.4);
}

.back-link {
    display: block;
    margin-top: 20px;
    color: #555;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--primary-red);
}

/* Animación suave de entrada */
.reveal {
    animation: fadeIn 0.8s ease-out forwards;
}

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

/**
 * 
 */ 
.form-control, .dataTable-input {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
      border: 1px solid #ced4da;
    -webkit-appearance: none;
        -moz-appearance: none;
              appearance: none;
    border-radius: 0rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.form-control:focus, .dataTable-input:focus {
    color: #212529;
    background-color: #fff;
    border-color: #00B9E8/*86b7fe*/;
    outline: 0;
    box-shadow: 0 0 0 0rem rgba(13, 110, 253, 0.25);
}.
form-control:hover {
  border-color: #00B9E8/*86b7fe*/;
}

.form-control-sm {
  min-height: calc(1.5em + 0.5rem + 2px);
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  border-radius: 0rem;
}
.form-control-sm::-webkit-file-upload-button {
  padding: 0.25rem 0.5rem;
  margin: -0.25rem -0.5rem;
  -webkit-margin-end: 0.5rem;
          margin-inline-end: 0.5rem;
}
.form-control-sm::file-selector-button {
  padding: 0.25rem 0.5rem;
  margin: -0.25rem -0.5rem;
  -webkit-margin-end: 0.5rem;
          margin-inline-end: 0.5rem;
}
.form-control-sm::-webkit-file-upload-button {
  padding: 0.25rem 0.5rem;
  margin: -0.25rem -0.5rem;
  -webkit-margin-end: 0.5rem;
          margin-inline-end: 0.5rem;
}

.form-select, .dataTable-selector {
  display: block;
  width: 100%;
  padding: 0.375rem 2.25rem 0.375rem 0.75rem;
  -moz-padding-start: calc(0.75rem - 3px);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  border: 1px solid #ced4da;
  border-radius: 0rem;
  transition: border-color 0s ease-in-out, box-shadow 0s ease-in-out;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}
@media (prefers-reduced-motion: reduce) {
  .form-select, .dataTable-selector {
    transition: none;
  }
}
.form-select:focus, .dataTable-selector:focus {
  border-color: #00B9E8;
  outline: 0;
  box-shadow: 0 0 0 0rem rgba(13, 110, 253, 0.25);
}
.custom-form-control {
    border: 2px solid #ff5733; /* color del borde */
    border-radius: 0; /* quitar bordes redondeados */
    background-color: #f0f0f0; /* color de fondo */
    border: 1px solid;
    border-top: 0px;
    border-left: 0px;
    border-right: 0px;
    border-bottom: 1px solid #ff5733;
    padding: 10px; /* ajuste de padding si quieres */
    transition: border-color 0.3s; /* transición suave */
}

/* Cambiar color del borde al enfocar */
.custom-form-control:focus {
  border-color: #ff5733;
  box-shadow: none; /* quitar sombra si quieres */
}