/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    box-sizing: border-box;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    font-family: 'Arial', sans-serif;
    color: #333;
    overflow-x: hidden;
    scroll-behavior: smooth;
    background: #ededed;
}

/* Particles Background */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    background: rgba(255, 107, 53, 0.3);
    border-radius: 50%;
    animation: float-particle 6s infinite ease-in-out;
}

@keyframes float-particle {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Header - SOLUCIONADO EL ESPACIO EN BLANCO */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 0;
    margin: 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 107, 53, 0.3);
    height: 70px;
    min-height: 70px;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 40px rgba(255, 107, 53, 0.2);
}

header nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    min-height: 70px;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.logo img {
    height: 45px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::before {
    width: 100%;
}

/* Dropdown del área de clientes */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    padding: 1.5rem;
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid #eee;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.login-form h3 {
    color: #ff6b35;
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    text-align: center;
    font-weight: 600;
}

.login-form .form-group {
    margin-bottom: 1rem;
}

.login-form input {
    width: 100%;
    padding: 0.75rem;
    border: 1.5px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.95rem;
    background: #fff;
    color: #222;
    transition: border 0.2s;
    box-sizing: border-box;
}

.login-form input:focus {
    border: 1.5px solid #ff6b35;
    outline: none;
}

.login-btn {
    width: 100%;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0.8rem;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.forgot-password {
    display: block;
    text-align: center;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.forgot-password:hover {
    color: #ff6b35;
}

/* Quitar línea inferior, subrayado y efecto especial en hover para el enlace de "¿Olvidé mi contraseña?" */
.forgot-password,
.forgot-password:hover,
.forgot-password:focus,
.forgot-password:active {
    color: #666 !important;
    text-decoration: none !important;
    background: none !important;
    cursor: default !important;
    opacity: 1 !important;
    transition: none !important;
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    outline: none !important;
    position: relative;
    margin-top: 0.7rem; /* Espacio entre el botón y el enlace */
}

/* Evitar que el ::before de .nav-links a afecte a .forgot-password */
.forgot-password::before {
    display: none !important;
    content: none !important;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

/* Section Title */
.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    color: #333;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Imagen de portada - SOLUCIONADO EL ESPACIO */
.image-section {
    position: relative;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0;
    font-size: 0;
}
.image-section img {
    width: 100%;
    display: block;
    object-fit: cover;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: top;
    line-height: 0;
    font-size: 0;
}
.image-section .hero-text {
    position: absolute;
    top: 32%;
    left: -40px;
    z-index: 2;
    background: linear-gradient(135deg, #666 0%, #444 100%);
    color: white;
    padding: 20px 30px 20px 50px;
    font-size: 1.35rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: skew(-15deg);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    border-radius: 0 20px 20px 0;
    width: 600px;
    min-width: 380px;
    max-width: 800px;
    display: flex;
    align-items: center;
}
.image-section .hero-text-inner {
    transform: skew(15deg);
    margin-left: 10px;
    white-space: pre-line;
}

/* Sección ¿Qué es X-Wall? */
.about-xwall {
    padding: 5rem 0 3rem 0;
    background: #eeeeee;
}

.about-xwall .container {
    max-width: 98vw;
    width: 98vw;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5vw;
    justify-content: center;
}

.about-xwall .scroll-fade {
    flex: 1 1 600px;
    min-width: 380px;
    max-width: 900px;
}

.about-xwall h2 {
    font-size: 3rem;
    font-weight: bold;
    color: #444;
    margin-bottom: 0.5em;
    line-height: 1.1;
}

.about-xwall h3 {
    font-size: 2rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 1.2em;
}

.about-xwall p {
    font-size: 1.15rem;
    color: #888;
    line-height: 1.5;
}

.about-xwall img {
    width: 100%;
    max-width: 650px;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.10);
}

/* Sección de tecnologías */
.technology {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  color: #fff;
  padding: 2rem 0;
  margin: 0;
}

.technology .container {
  padding: 0;
  height: auto;
  min-height: unset;
}

.tech-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4vw;
  margin: 0;
  height: auto;
  min-height: unset;
}

.tech-item {
  min-width: 120px;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: auto;
  min-height: unset;
  padding: 0;
  margin: 0;
}

.tech-icon {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-item h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.tech-item p {
  margin-top: 0;
  margin-bottom: 0;
}

.tech-item > * + * {
  margin-top: 1rem;
}

/* Sección de Control de Tráfico */
.traffic-section {
    background: #f8f9fa;
    padding: 4rem 0 3rem 0;
}

.traffic-section .container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 5% !important;
    box-sizing: border-box !important;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.traffic-section .scroll-fade:first-child {
    flex: 0 0 45%;
    max-width: 45%;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 !important;
}

.traffic-section h2 {
    font-size: 2.5rem !important;
    font-weight: normal;
    color: #ff6b35;
    margin-bottom: 0.5rem;
}

.traffic-section p {
    font-size: 1.1rem !important;
    color: #444;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.feature-minimal {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    background: #fff;
    border-radius: 10px;
    padding: 1rem;
    border: 1px solid #eee;
    box-shadow: none;
}

.feature-minimal > div:first-child {
    font-size: 1.3rem;
    color: #ff6b35;
}

.feature-minimal > div:last-child > div:first-child {
    font-weight: 600;
    font-size: 1rem;
    color: #222;
}

.feature-minimal > div:last-child > div:last-child {
    color: #666;
    font-size: 0.97rem;
}

.traffic-section .scroll-fade:last-child {
    flex: 0 0 50%;
    max-width: 50%;
    min-width: 320px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 !important;
    margin: 0;
}

.traffic-section img {
    width: 100%;
    height: auto;
    max-width: calc(100vw - 6rem);
    border-radius: 0;
    box-shadow: none;
    display: block;
    margin: 0;
    padding: 0;
}

/* Gestión de Usuarios */
.user-management {
    background: #fff;
    padding: 4rem 0 2rem 0;
}

.user-management .container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 5% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    display: flex;
    flex-direction: row;
    gap: 3rem;
    box-sizing: border-box !important;
    align-items: stretch;
}

.user-management .container > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 3rem;
}

.user-management .scroll-fade:first-child {
    flex: 0 0 45%;
    max-width: 45%;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 !important;
}

.user-management h2 {
    font-size: 2.5rem !important;
    font-weight: normal;
    color: #ff6b35;
    margin-bottom: 0.5rem;
}

.user-management p {
    font-size: 1.1rem !important;
    color: #444;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.user-form {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 800px;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

.user-form > div:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.user-form > div:first-child > div:first-child {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #444;
}

.user-form > div:first-child > div:first-child > span {
    color: #ff6b35;
}

.user-form > div:first-child > div:last-child {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-form > div:first-child > div:last-child > span {
    font-size: 1rem;
    color: #444;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2rem;
}

.user-form label {
    display: block;
    font-size: 0.98rem;
    color: #444;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.user-form input, .user-form select {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: 1.5px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    background: #fff;
    color: #222;
    margin-bottom: 0.2rem;
    transition: border 0.2s;
    height: 44px !important;
    min-height: 44px !important;
    box-sizing: border-box;
}

.user-form input:focus, .user-form select:focus {
    border: 1.5px solid #ff6b35;
    outline: none;
}

.user-form .form-group {
    margin-bottom: 1.1rem;
}

.user-form .form-group:last-child {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
}

.user-form .form-group:last-child > div:first-child {
    flex: 1;
}

.user-form .form-group:last-child input {
    background: #f7f7f7;
}

.btn-main {
    background: #ff6b35;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-grey {
    background: #444;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-reset {
    background: #ff6b35;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 0.55rem 0.9rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 0.2rem;
    height: 40px;
    display: flex;
    align-items: center;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 22px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider.round {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 22px;
}

.slider.round:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.switch input:checked + .slider.round {
    background-color: #ff6b35;
}

.switch input:checked + .slider.round:before {
    transform: translateX(16px);
}

/* Control de Contenido */
.content-control-section {
    background: #f8f9fa;
    padding: 4rem 0 3rem 0;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.content-control-section .container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 5% !important;
    box-sizing: border-box !important;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.content-control-section h2 {
    font-size: 2.5rem !important;
    font-weight: normal;
    color: #ff6b35;
    margin-bottom: 0.5rem;
}

.content-control-section p {
    font-size: 1.1rem !important;
    color: #444;
    line-height: 1.5;
    margin-bottom: 1rem;
    width: calc(100% - 6rem) !important;
    max-width: calc(100% - 6rem) !important;
    box-sizing: border-box;
    padding: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.content-toggle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem 2.5rem;
    margin-bottom: 2.5rem;
    padding-left: 4vw;
}

.switch-label {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1.08rem;
    color: #444;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
}

.switch-input {
    display: none;
}

.switch-slider {
    width: 38px;
    height: 22px;
    background: #ccc;
    border-radius: 22px;
    position: relative;
    transition: background 0.3s;
    margin-right: 0.5rem;
    flex-shrink: 0;
    display: inline-block;
    /* Evitar que el switch se mueva del lugar */
    transform: translateZ(0);
    will-change: background;
}

.switch-slider::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 3px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s;
}

.switch-input:checked + .switch-slider {
    background: #ff6b35;
}

.switch-input:checked + .switch-slider::before {
    transform: translateX(16px);
}

.content-control-buttons {
    display: flex;
    gap: 1rem;
    padding-left: 0;
}

/* Nuevo layout de dos columnas para control de contenido */
.content-control-layout {
    display: flex;
    gap: 3rem;
    align-items: center;
    width: 100%;
    padding: 0 !important;
}

.content-control-text {
    padding: 0 !important;
    width: calc(100% - 6rem) !important;
    max-width: calc(100% - 6rem) !important;
    box-sizing: border-box;
    margin: 0 !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow: hidden;
}

.content-control-text p {
    font-size: 1.08rem;
    color: #444;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: left;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    padding: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow: hidden;
}

.content-control-switches {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 !important;
    margin-top: 0;
}

.content-control-switches .content-toggle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    padding-left: 0;
}

.content-control-switches .content-control-buttons {
    padding-left: 0;
    margin-top: 1rem;
}

/* Responsive para el nuevo layout */
@media (max-width: 1200px) {
    .content-control-layout {
        flex-direction: column;
        gap: 2rem;
    }
    
    .content-control-left,
    .content-control-switches {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0 !important;
    }
    
    .content-control-switches .content-toggle-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .content-control-switches .content-toggle-grid {
        grid-template-columns: 1fr;
    }
    
    .content-control-text p {
        font-size: 1rem;
    }
}

/* Reportes */
.reports-section {
    background: #f8f9fa;
    padding: 4rem 0 3rem 0;
}

/* Safe Search Enforce */
.safe-search-section {
    background: #fff;
    padding: 4rem 0 3rem 0;
}

.safe-search-section .container {
    max-width: 100vw;
    padding: 0;
}

.safe-search-section .container > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100vw;
    gap: 2vw;
}

.safe-search-section .scroll-fade:first-child {
    flex: 0 0 40vw;
    max-width: 40vw;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-left: 4vw;
}

.safe-search-section h2 {
    font-size: 2.7rem;
    font-weight: normal;
    color: #ff6b35;
    margin-bottom: 0.5rem;
    max-width: 90%;
}

.safe-search-section p {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.5;
    margin-bottom: 1rem;
    max-width: 90%;
}

.safe-search-section .scroll-fade:last-child {
    flex: 0 0 60vw;
    max-width: 60vw;
    min-width: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4vw 0 0;
    margin: 0;
}

.safe-search-section img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
    display: block;
    margin: 0;
    padding: 0;
}

.reports-section .container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 5% !important;
    box-sizing: border-box !important;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.reports-section .container > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 3rem;
}

.reports-section .scroll-fade:first-child {
    flex: 0 0 45%;
    max-width: 45%;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 !important;
}

.reports-section h2 {
    font-size: 2.5rem !important;
    font-weight: normal;
    color: #ff6b35;
    margin-bottom: 0.5rem;
}

.reports-section p {
    font-size: 1.1rem !important;
    color: #444;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.reports-section .scroll-fade:last-child {
    flex: 0 0 50%;
    max-width: 50%;
    min-width: 320px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 !important;
    margin: 0;
}

.reports-section img {
    width: 100%;
    height: auto;
    max-width: calc(100vw - 6rem);
    border-radius: 0;
    box-shadow: none;
    display: block;
    margin: 0;
    padding: 0;
}

.user-management img {
    width: 100%;
    height: auto;
    max-width: calc(100vw - 6rem);
    border-radius: 0;
    box-shadow: none;
    display: block;
    margin: 0;
    padding: 0;
}

/* Servicios */
.servicios-xwall {
    background: #fff;
    padding: 3.5rem 0 2.5rem 0;
    text-align: center;
}

.servicios-xwall-title {
    color: #ff6b35;
    font-size: 2.1rem;
    font-weight: bold;
    margin-bottom: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    margin-left: 0;
}

.servicios-xwall-subtitle {
    font-size: 1.22rem;
    color: #444;
    margin-bottom: 2.2rem;
    max-width: 900px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.xwall-orange {
    color: #ff6b35;
    font-weight: bold;
}

.servicios-xwall-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 0 auto;
    max-width: 1400px;
    align-items: stretch;
}

.servicio-xwall-card {
    background: #f9ede7;
    border: 1px solid #bdbdbd;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
    box-shadow: none;
    transition: none;
    height: 100%;
    min-height: 400px;
}

.servicio-xwall-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #bdbdbd;
    flex-shrink: 0;
}

.servicio-xwall-card-body {
    padding: 1.5rem 1.2rem 1.5rem 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 200px;
}

.servicio-xwall-card-body h3 {
    font-size: 1.35rem;
    font-weight: bold;
    color: #4a3a2a;
    margin-bottom: 1rem;
    text-align: left;
    font-family: 'Arial', sans-serif;
    line-height: 1.2;
}

.servicio-xwall-card-body p {
    color: #4a3a2a;
    font-size: 1.08rem;
    line-height: 1.5;
    margin: 0;
    text-align: left;
    font-family: 'Arial', sans-serif;
    flex: 1;
}

/* Contacto */
.contact {
    padding: 8rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    color: #333;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-form {
    background: rgba(255, 255, 255, 0.8);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 107, 53, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 0 !important;
    padding-top: 2rem !important;
}

/* Título del formulario de contacto alineado a la izquierda y sin negrita */
/* ====== Estilos unificados para los títulos h3 de la sección de contacto ====== */
.contact-form h3,
.contact-info h3 {
    text-align: left !important;
    font-size: 1.6rem !important;
    font-weight: normal !important;
    color: #ff6b35 !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.2 !important;
    font-family: 'Arial', sans-serif !important;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.contact-info {
    margin-top: 0 !important;
    padding-top: 2rem !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.contact-info h4 {
    color: #ff6b35;
    margin-bottom: 0.5rem;
}

.contact-info p {
    margin-bottom: 1rem;
    color: #666;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #333 0%, #1a1a1a 100%);
    color: white;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.footer-main {
    padding: 2rem 0 1rem;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

@media (max-width: 900px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
  }
}

@media (max-width: 700px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
  }
  .footer-main {
     align-items: center;
  }
  .footer-section, .footer-brand {
     min-width: unset;
     max-width: 100%;
     text-align: center;
     margin: 0 auto;
  }
}

.footer-brand {
    padding-right: 2rem;
    min-width: 220px;
    max-width: 350px;
}

.footer-brand .logo {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.footer-brand p {
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.5);
}

.footer-section {
    min-width: 180px;
    max-width: 250px;
}

.footer-section h3 {
    color: #ff6b35;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.footer-section ul li a::before {
    content: '→';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: all 0.3s ease;
    color: #ff6b35;
}

.footer-section ul li a:hover {
    color: #ff6b35;
    padding-left: 15px;
}

.footer-section ul li a:hover::before {
    opacity: 1;
}

.footer-bottom {
    padding: 0.7rem 0;
    text-align: center;
    position: relative;
    z-index: 2;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: #ccc;
    margin: 0;
}

/* Animaciones */
.scroll-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1);
}

.scroll-fade.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Desactivar animaciones en móvil excepto header */
@media (max-width: 900px) {
    .scroll-fade:not(header .scroll-fade):not(#header .scroll-fade) {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    
    .scroll-fade.animate:not(header .scroll-fade):not(#header .scroll-fade) {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Animaciones específicas para secciones */
.traffic-section .scroll-fade.animate .feature-minimal {
    opacity: 0;
    transform: translateX(-40px);
    animation: trafficFadeInLeft 0.7s cubic-bezier(.4,0,.2,1) forwards;
}

.traffic-section .scroll-fade.animate .feature-minimal:nth-child(1) { animation-delay: 0.1s; }
.traffic-section .scroll-fade.animate .feature-minimal:nth-child(2) { animation-delay: 0.2s; }
.traffic-section .scroll-fade.animate .feature-minimal:nth-child(3) { animation-delay: 0.3s; }
.traffic-section .scroll-fade.animate .feature-minimal:nth-child(4) { animation-delay: 0.4s; }

@keyframes trafficFadeInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

.traffic-section .scroll-fade.animate img {
    opacity: 0;
    transform: translateX(40px);
    animation: trafficFadeInRight 0.8s cubic-bezier(.4,0,.2,1) 0.2s forwards;
}

@keyframes trafficFadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Estructura de dos columnas para todas las secciones principales */
.about-xwall .container,
.traffic-section .container,
.reports-section .container,
.user-management .container {
  display: flex;
  flex-direction: row;
  gap: 3rem;
  padding: 0 3rem;
  box-sizing: border-box;
  align-items: stretch;
}

.about-xwall .scroll-fade:first-child,
.traffic-section .scroll-fade:first-child,
.reports-section .scroll-fade:first-child,
.user-management .scroll-fade:first-child {
  flex: 0 0 30%;
  max-width: 30%;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
}

.about-xwall .scroll-fade:last-child,
.traffic-section .scroll-fade:last-child,
.reports-section .scroll-fade:last-child,
.user-management .scroll-fade:last-child {
  flex: 0 0 70%;
  max-width: 70%;
  min-width: 320px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.about-xwall .scroll-fade:last-child img,
.traffic-section .scroll-fade:last-child img,
.reports-section .scroll-fade:last-child img,
.user-management .scroll-fade:last-child img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

@media (max-width: 900px) {
  .about-xwall .container,
  .traffic-section .container,
  .reports-section .container,
  .user-management .container {
    flex-direction: column;
    gap: 2rem;
    padding: 0 1rem;
  }
  .about-xwall .scroll-fade:first-child,
  .about-xwall .scroll-fade:last-child,
  .traffic-section .scroll-fade:first-child,
  .traffic-section .scroll-fade:last-child,
  .reports-section .scroll-fade:first-child,
  .reports-section .scroll-fade:last-child,
  .user-management .scroll-fade:first-child,
  .user-management .scroll-fade:last-child {
    max-width: 100%;
    width: 100%;
    flex: 1 1 100%;
    align-items: flex-start;
    text-align: left;
  }
}

/* Asegurar que Servicios quede centrado */
.servicios-xwall,
.servicios-xwall-title,
.servicios-xwall-subtitle,
.servicios-xwall-grid {
    text-align: center !important;
    justify-content: center !important;
    align-items: center !important;
}

.about-xwall > .container {
  display: flex !important;
  flex-direction: row !important;
  gap: 3rem;
  padding: 0 3rem;
  box-sizing: border-box;
  align-items: stretch !important;
}

.about-xwall > .container > .scroll-fade:first-child {
  flex: 0 0 30%;
  max-width: 30%;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
}

.about-xwall > .container > .scroll-fade:last-child {
  flex: 0 0 70%;
  max-width: 70%;
  min-width: 320px;
  display: flex;
  align-items: stretch !important;
  justify-content: flex-end;
}

.about-xwall > .container > .scroll-fade:last-child img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
}

@media (max-width: 900px) {
  .about-xwall > .container {
    flex-direction: column !important;
    gap: 2rem;
    padding: 0 1rem;
  }
  .about-xwall > .container > .scroll-fade:first-child,
  .about-xwall > .container > .scroll-fade:last-child {
    max-width: 100%;
    width: 100%;
    flex: 1 1 100%;
    align-items: flex-start;
    text-align: left;
  }
}

.about-xwall-2 {
  margin-top: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
}

.about-xwall-2 .container {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 5% !important;
  box-sizing: border-box !important;
  display: flex;
  flex-direction: row;
  gap: 3rem;
  align-items: center;
  justify-content: space-between;
}

.about-xwall-2 .scroll-fade:first-child {
  flex: 0 0 45%;
  max-width: 45%;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  padding: 0 !important;
}

.about-xwall-2 .scroll-fade:last-child {
  flex: 0 0 50%;
  max-width: 50%;
  min-width: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
}

.about-xwall-2 h2 {
  font-size: 2.5rem !important;
  font-weight: normal;
  color: #ff6b35;
  margin-bottom: 0.5rem;
}

.about-xwall-2 p {
  font-size: 1.1rem !important;
  color: #444;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.about-xwall-2 .scroll-fade:last-child img {
  width: auto;
  max-width: 100%;
  max-height: 350px;
  object-fit: contain;
  display: block;
  border-radius: 12px;
  box-shadow: none;
}

@media (max-width: 900px) {
  .about-xwall-2 .container {
    flex-direction: column;
    gap: 2rem;
    padding: 0 1rem;
  }
  .about-xwall-2 .scroll-fade:first-child,
  .about-xwall-2 .scroll-fade:last-child {
    max-width: 100%;
    width: 100%;
    flex: 1 1 100%;
    align-items: flex-start;
    text-align: left;
  }
}

/* ====== Ventajas Section ====== */
.ventajas-section {
  display: flex;
  align-items: stretch;
  background: #666;
  color: #fff;
  border-radius: 0 40px 40px 0;
  overflow: hidden;
  margin: 3rem 0;
  min-height: 380px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  position: relative;
}
.ventajas-content {
  flex: 1 1 55%;
  padding: 3.5rem 2.5rem 3.5rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ventajas-content h2 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 2.2rem;
  color: #fff;
  letter-spacing: 1px;
}
.ventajas-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ventajas-content li {
  display: flex;
  align-items: flex-start;
  font-size: 1.25rem;
  margin-bottom: 1.7rem;
  line-height: 1.4;
}
.ventaja-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #666;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.5rem;
  margin-right: 1.1rem;
  border: 2.5px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  flex-shrink: 0;
}
.ventajas-graphic {
  flex: 1 1 45%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-width: 320px;
  min-height: 320px;
}
.ventajas-shield {
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ventajas-shield svg {
  width: 100%;
  height: 100%;
  display: block;
}
@media (max-width: 900px) {
  .ventajas-section {
    flex-direction: column;
    border-radius: 0 0 40px 40px;
  }
  .ventajas-content, .ventajas-graphic {
    flex: 1 1 100%;
    min-width: 0;
    padding: 2rem 1rem;
    justify-content: center;
    align-items: center;
  }
  .ventajas-shield {
    width: 160px;
    height: 160px;
  }
}

/* Animaciones modernas para el escudo de ventajas */
.ventajas-graphic {
  position: relative;
  overflow: visible;
}
.ventajas-waves {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0; top: 0;
  z-index: 1;
  pointer-events: none;
}
.ventaja-wave {
  position: absolute;
  opacity: 0.25;
  border-radius: 60px;
  filter: blur(2px);
  animation: waveMove 7s ease-in-out infinite;
}
.wave1 {
  width: 320px; height: 90px;
  background: linear-gradient(90deg, #ff8c42, #ffa726, #ff8c42);
  top: 30px; left: 40px;
  animation-delay: 0s;
  transform: rotate(-12deg);
}
.wave2 {
  width: 260px; height: 60px;
  background: linear-gradient(90deg, #ff6b35, #ff8c42 80%);
  bottom: 30px; right: 10px;
  animation-delay: 2s;
  transform: rotate(10deg);
}
.wave3 {
  width: 180px; height: 40px;
  background: linear-gradient(90deg, #ffb74d, #ff8c42 80%);
  top: 120px; right: -30px;
  animation-delay: 4s;
  transform: rotate(-25deg);
}
@keyframes waveMove {
  0%, 100% { opacity: 0.25; transform: translateY(0) scaleX(1) scaleY(1) rotate(var(--angle, 0deg)); }
  50% { opacity: 0.35; transform: translateY(-12px) scaleX(1.05) scaleY(1.1) rotate(var(--angle, 0deg)); }
}
.animated-shield {
  z-index: 2;
  position: relative;
  animation: floatShield 3.5s ease-in-out infinite;
  will-change: transform;
}
@keyframes floatShield {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-12px) scale(1.03); }
}
.animated-shield svg .animated-target {
  transform-origin: 100px 120px;
  animation: spinTarget 6s linear infinite;
}
@keyframes spinTarget {
  0% { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}

/* ====== Nuevo Layout para Gestión de Usuarios ====== */
.user-management-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Responsive para el nuevo layout */
@media (max-width: 900px) {
  .user-management-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .user-management .container {
    padding-left: 6vw !important;
    padding-right: 4vw !important;
    box-sizing: border-box !important;
    align-items: stretch !important;
  }
  .user-management .scroll-fade,
  .user-form-flex {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* ====== Layout Gestión de Usuarios ====== */
.user-management-flex {
  display: flex;
  gap: 0;
  align-items: flex-start;
}
.user-form-flex {
  flex: 1 1 70%;
  width: 100%;
  max-width: none !important;
  margin-right: 3rem !important;
  padding-right: 0 !important;
}
.user-form {
  width: 100%;
  max-width: none !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10) !important;
  border-radius: 18px !important;
  margin: 0 !important;
}
.user-form input,
.user-form select {
  height: 42px !important;
  min-height: 42px !important;
  box-sizing: border-box;
}
.user-content-flex {
  flex: 0 0 30%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  margin-left: 0 !important;
  padding-left: 0 !important;
  width: 100%;
  box-sizing: border-box;
}
.user-title {
    font-size: 2.7rem;
    font-weight: normal;
    color: #ff6b35;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    text-align: left;
    padding-left: 0 !important;
    margin-left: 0 !important;
    box-sizing: border-box;
}
.user-subtitle {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.5;
    margin-bottom: 1rem;
    text-align: left;
    padding-left: 0 !important;
    margin-left: 0 !important;
    box-sizing: border-box;
}
.user-features {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-left: 0;
  margin-left: 0;
  box-sizing: border-box;
}
.user-feature-box {
  display: flex;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 1rem 1.2rem;
  gap: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  margin-left: 0;
}
.user-feature-icon {
  font-size: 1.7rem;
  color: #ff6b35;
  margin-top: 0.1rem;
  flex-shrink: 0;
  width: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.user-feature-title {
  font-weight: bold;
  color: #222;
  font-size: 1.08rem;
  margin-bottom: 0.2rem;
}
.user-feature-desc {
  color: #444;
  font-size: 1rem;
  line-height: 1.4;
}
@media (max-width: 1100px) {
  .user-management-flex {
    flex-direction: column;
    gap: 2rem;
  }
  .user-form-flex, .user-content-flex {
    max-width: 100%;
    flex: 1 1 100%;
  }
}
@media (max-width: 700px) {
  .user-management .container {
    padding: 0;
    align-items: stretch !important;
  }
  .user-management {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .user-form-flex, .user-content-flex {
    max-width: 100% !important;
    flex: 1 1 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .user-form {
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 500px !important;
    border-radius: 0 !important;
    padding: 1.2rem 1rem !important;
    box-sizing: border-box !important;
  }
  .user-title {
    font-size: 2rem;
  }
  .user-feature-box {
    padding: 0.7rem 0.7rem;
  }
  .contact-form {
    width: 100% !important;
    max-width: 500px !important;
    margin: 0 auto !important;
    border-radius: 0 !important;
    padding: 1.2rem 1rem !important;
    box-sizing: border-box !important;
  }
  .contact-form input,
  .contact-form textarea,
  .contact-form .submit-btn {
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .contact {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
    margin-top: 0 !important;
  }
  .reports-section {
    margin-bottom: 0 !important;
    padding-bottom: 1.5rem !important;
  }
  .contact-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .user-management-flex {
    flex-direction: column !important;
    gap: 2rem !important;
    align-items: stretch !important;
    padding: 0 !important;
  }
  .user-content-flex {
    padding: 0 !important;
    margin: 0 !important;
  }
  .user-management .container > div {
    flex-direction: column !important;
    gap: 2rem !important;
    padding: 0 0.5rem !important;
  }
  .user-management .scroll-fade:first-child,
  .user-management .scroll-fade:last-child {
    max-width: 100% !important;
    width: 100% !important;
    flex: 1 1 100% !important;
    align-items: flex-start !important;
    text-align: left !important;
    padding: 0 !important;
    margin: 0 !important;
  }
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1200;
    margin-left: auto;
}
.hamburger span {
    display: block;
    width: 28px;
    height: 4px;
    margin: 4px 0;
    background: #ff6b35;
    border-radius: 2px;
    transition: all 0.3s;
}
.hamburger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
    opacity: 0;
}
.hamburger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 900px) {
    .hamburger {
        display: flex;
    }
    header nav {
        flex-direction: row !important;
        align-items: center !important;
        padding: 0 1rem !important;
    }
    .logo {
        margin-right: auto !important;
    }
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100vw;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 1.5rem 1.5rem 2rem 1.5rem;
        box-shadow: 0 8px 32px rgba(0,0,0,0.10);
        z-index: 1100;
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s cubic-bezier(.4,0,.2,1);
        min-height: calc(100vh - 70px);
    }
    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .nav-links li {
        width: 100%;
        margin: 0.7rem 0;
    }
    .nav-links a {
        width: 100%;
        display: block;
        padding: 1rem 0;
        font-size: 1.15rem;
        border-bottom: 1px solid #eee;
    }
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding: 0.5rem 0 0 0;
        min-width: 100%;
        background: none;
        margin-top: 4rem !important;
    }
}

@media (max-width: 700px) {
    .tech-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    .tech-item {
        min-width: 0;
    }
    
    /* Agregar separación de 1rem en los bordes de la sección de tecnologías */
    .technology .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .user-form,
    .safe-search-form,
    .content-control-switches,
    .scroll-fade img,
    .about-xwall-2 .scroll-fade:last-child,
    .about-xwall .scroll-fade:last-child,
    .traffic-section .scroll-fade:last-child {
        display: none !important;
    }
    /* Ocultar columna derecha de contacto */
    .contact-info {
        display: none !important;
    }
}

.footer-mobile-hide {
  display: block;
}
.footer-desc-mobile-hide {
  display: block;
}
.footer-bottom-mobile-hide {
  display: inline;
}
@media (max-width: 700px) {
  .footer-mobile-hide {
    display: none !important;
  }
  .footer-desc-mobile-hide {
    display: none !important;
  }
  .footer-bottom-mobile-hide {
    display: none !important;
  }
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .footer-col-izq, .footer-col-der {
    width: 48%;
    min-width: unset;
    max-width: unset;
    text-align: left;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-col-izq {
    justify-content: flex-start;
  }
  .footer-col-der {
    justify-content: flex-start;
    padding-left: 1rem;
  }
  
  /* Reducir tamaño de los círculos de redes sociales en móvil */
  .social-link {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
  
  .social-links {
    gap: 0.5rem;
  }
}

@media (max-width: 700px) {
  .about-xwall-2 .container {
    width: 100% !important;
    max-width: 600px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: calc(6vw + 2rem) !important;
    padding-right: 6vw !important;
    box-sizing: border-box !important;
    float: none !important;
    display: block !important;
  }
  .about-xwall-2 .container > .scroll-fade {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* === Unificación de separación entre título, subtítulo y cuerpo de texto en todas las secciones === */
.about-xwall h2,
.about-xwall-2 h2,
.ventajas-section h2,
.technology h2,
.traffic-section h2,
.safe-search-section h2,
.reports-section h2,
.user-management h2,
.content-control-section h2 {
    margin-bottom: 2rem !important;
}

.about-xwall p,
.about-xwall-2 p,
.ventajas-section p,
.technology p,
.traffic-section p,
.safe-search-section p,
.reports-section p,
.user-management p,
.content-control-section p {
    margin-bottom: 2rem !important;
}

/* Ajuste para subtítulos que tengan un selector diferente (por ejemplo, .servicios-xwall-subtitle) */
.servicios-xwall-subtitle {
    margin-bottom: 2rem !important;
}

/* Eliminar márgenes extra en títulos y subtítulos de secciones si existieran */
.about-xwall h2,
.about-xwall-2 h2,
.ventajas-section h2,
.technology h2,
.traffic-section h2,
.safe-search-section h2,
.reports-section h2,
.user-management h2,
.content-control-section h2,
.about-xwall p,
.about-xwall-2 p,
.ventajas-section p,
.technology p,
.traffic-section p,
.safe-search-section p,
.reports-section p,
.user-management p,
.content-control-section p {
    margin-top: 0 !important;
}

/* Unificación de tamaño de letra en la sección de contacto (excepto el título principal) */
.contact-form,
.contact-form input,
.contact-form textarea,
.contact-form .submit-btn,
.contact-info,
.contact-info h4,
.contact-info p,
.contact-info .traffic-feature-title,
.contact-info .traffic-feature-desc,
.contact-info .traffic-feature-box {
    font-size: 1rem !important;
}

/* El título principal de la sección contacto se mantiene igual (por selector .section-title) */

/* Los estilos de los títulos h3 de contacto ya están unificados arriba */

/* Botón de enviar en el formulario de contacto: ancho automático y alineado a la derecha */
#contactForm .submit-btn {
    width: auto !important;
    min-width: 110px;
    display: inline-block;
    float: right;
    margin-top: 1rem;
    padding-left: 2rem;
    padding-right: 2rem;
    text-align: center;
}

/* Limpiar float para evitar problemas de layout */
#contactForm::after {
    content: "";
    display: table;
    clear: both;
}

/* Igualar el estilo del título 'Contacto' al de 'Reportes y Logs', pero centrado */
.contact .section-title {
    font-size: 2.7rem !important;
    font-weight: normal !important;
    color: #ff6b35 !important;
    font-family: 'Arial', sans-serif !important;
    margin-bottom: 2rem !important;
    text-align: center !important;
}

/* Más separación debajo del título 'Contacto' */
.contact .section-title {
    margin-bottom: 4rem !important;
}

/* Forzar que los labels de los formularios de Gestión de Usuarios estén arriba de los inputs/selects */
.user-form .form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.user-form .form-group label {
    width: 100%;
    text-align: left;
    margin-bottom: 0.25rem;
}

/* Ajustar el grupo de Used Quota para que el botón esté a la derecha del input */
.user-form .form-group:has(#used) {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 0.5rem;
}

.user-form .form-group:has(#used) > div:first-child {
    flex: 1;
}

.user-form .form-group:has(#used) .btn-reset {
    flex-shrink: 0;
    margin-bottom: 0.2rem;
}

/* ====== Reducir tamaño de todos los títulos h2 en móvil para que coincidan con Safe Search Enforce ====== */
@media (max-width: 600px) {
    /* Títulos de secciones principales */
    .about-xwall h2,
    .about-xwall-2 h2,
    .traffic-section h2,
    .safe-search-section h2,
    .reports-section h2,
    .user-management h2,
    .content-control-section h2,
    .contact .section-title {
        font-size: 2.2rem !important;
        line-height: 1.2 !important;
        word-wrap: break-word !important;
        hyphens: auto !important;
    }
    
    /* Título de la sección Ventajas */
    .ventajas-content h2 {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
        word-wrap: break-word !important;
        hyphens: auto !important;
    }
    
    /* Título de la sección Servicios */
    .servicios-xwall-title {
        font-size: 2.2rem !important;
        line-height: 1.2 !important;
        word-wrap: break-word !important;
        hyphens: auto !important;
    }
    
    /* Asegurar que los contenedores se expandan si es necesario */
    .about-xwall .container,
    .about-xwall-2 .container,
    .traffic-section .container,
    .safe-search-section .container,
    .reports-section .container,
    .user-management .container,
    .content-control-section .container,
    .contact .container {
        min-width: fit-content !important;
        overflow-x: auto !important;
    }
}