/* =======================================================
   SISTEMA DE RECLAMACIONES - ID ÚNICO: reclamaciones-smart-v1
   ======================================================= */

#reclamaciones-smart-v1 {
    width: 95%;
    max-width: 1000px;
    margin: 30px auto;
    padding: 40px;
    background: #ffffff !important;
    border: 1px solid #ddd !important;
    font-family: Arial, sans-serif;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: block !important;
}

#reclamaciones-smart-v1 .form-section-title {
    background: #f8f9fa !important;
    padding: 12px 15px !important;
    font-weight: bold !important;
    border-left: 5px solid #0056b3 !important;
    margin: 25px 0 15px 0 !important;
    color: #333 !important;
    text-transform: uppercase;
}

#reclamaciones-smart-v1 .reclamaciones-title {
    text-align: center !important;
    color: #000 !important;
    font-weight: bold !important;
    font-size: 28px !important;
    margin-bottom: 20px !important;
}

#reclamaciones-smart-v1 input:not([type="checkbox"]):not([type="radio"]),
#reclamaciones-smart-v1 select,
#reclamaciones-smart-v1 textarea {
    border: 1px solid #ccc !important;
    background: #fdfdfd !important;
    padding: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

#reclamaciones-smart-v1 .form-submit {
    background: #444 !important;
    color: #fff !important;
    padding: 15px !important;
    width: 100% !important;
    border: none !important;
    font-weight: bold !important;
    cursor: pointer;
}

/* EL PADRE: Limpia los márgenes del tema de Drupal para que la hoja se centre */
#reclamaciones-smart-v1 .hoja-reclamacion-wrapper, 
#hoja-reclamacion-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    background: transparent !important;
}

/* EFECTO DE ESCRITORIO (FONDO GRIS) */
#reclamaciones-smart-v1 .contenedor-escritorio {
    background-color: #f0f2f5 !important; /* El color gris del "escritorio" */
    padding: 40px 0 !important;
    width: 100% !important;
    min-height: 100vh;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
}

/* LA HOJA FÍSICA */
#reclamaciones-smart-v1 .hoja-fisica {
    background-color: #ffffff !important;
    width: 85% !important;
    max-width: 850px !important;
    margin: 0 auto !important;
    padding: 50px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important; /* La sombra de ayer */
    border: 1px solid #ddd !important;
    font-family: Arial, sans-serif !important;
    position: relative !important;
}

#reclamaciones-smart-v1 .hoja-fisica .seccion-azul {
    background-color: #0056b3 !important;
    color: #ffffff !important;
    padding: 10px 15px !important;
    font-weight: bold !important;
    margin: 20px 0 10px 0 !important;
    text-transform: uppercase !important;
    border-left: 5px solid #003d7a !important;
}
/* Títulos de Sección 1, 2 y 3 con espaciado solicitado */
#reclamaciones-smart-v1 .smart-seccion-header {
    background-color: #dfdfdf !important;
    color: #000000 !important;
    padding: 12px 15px !important;
    font-weight: bold !important;
    text-transform: uppercase !important; /* Fuerza MAYÚSCULAS */
    font-size: 14px !important;
    margin-top: 25px !important;    /* Margen superior solicitado */
    margin-bottom: 20px !important; /* Margen inferior solicitado */
    clear: both;
}

/* Nro de Registro debajo del título principal */
#reclamaciones-smart-v1 .smart-registro-info {
    font-size: 16px !important;
    margin-bottom: 20px !important; /* Margen de 20px solicitado */
    border-bottom: 2px solid #0056b3;
    padding-bottom: 10px;
    text-align: center;
}
div#reclamaciones-smart-v1 .smart-hoja-layout h1 {
    text-align: center;
}
#reclamaciones-smart-v1 input#edit-submit {
    background: #afafaf !important;
}

/* ESTILOS EXCLUSIVOS PARA IMPRESIÓN */
@media print {
    /* 1. Ocultar elementos globales de la web y de Drupal */
    header, footer, .region-sidebar-first, .region-sidebar-second,
    .breadcrumb, .tabs, .action-links, #toolbar-administration, 
    .nav-wrapper, .no-print, .btn, .button, 
    #block-intitravel-breadcrumbs, .region-header {
        display: none !important;
    }

    /* 2. Forzar que el fondo del "escritorio" sea blanco para no gastar tinta */
    body, #reclamaciones-smart-v1 .smart-escritorio {
        background: white !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* 3. Ajustar la "hoja" para que ocupe el 100% del papel */
    #reclamaciones-smart-v1 .smart-hoja-layout {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 20px !important;
        box-shadow: none !important; /* Quitamos la sombra en papel */
        border: none !important;   /* Quitamos el borde para que se vea limpio */
    }

    /* 4. Asegurar que los colores (azules) se impriman */
    #reclamaciones-smart-v1 .smart-seccion-header {
        -webkit-print-color-adjust: exact; /* Para Chrome/Safari */
        print-color-adjust: exact;         /* Estándar */
        background-color: #dfdfdf !important;
        color: rgb(0, 0, 0) !important;
    }
}
/* Estilos para las alertas de validación de Drupal */
#reclamaciones-smart-v1 .messages--error {
    background-color: #fff5f5;
    color: #c53030;
    border: 1px solid #feb2b2;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-weight: 500;
    list-style: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

#reclamaciones-smart-v1 .messages--error ul {
    margin: 0;
    padding: 0;
}

#reclamaciones-smart-v1 .messages--error li {
    margin-bottom: 5px;
}

/* Resaltado de los campos que fallaron */
#reclamaciones-smart-v1 .error {
    border: 2px solid #e53e3e !important;
    background-color: #fffaf0 !important;
}

/* Estilo para los asteriscos de campos obligatorios */
#reclamaciones-smart-v1 .form-required::after {
    color: #e53e3e;
    content: " *";
    font-weight: bold;
}
/* Ocultar el contenedor completo del honeypot */
#reclamaciones-smart-v1 .form-item-website {
    display: none !important;
    visibility: hidden !important;
}
@media print {
  .messages, 
  .highlighted, 
  .region-highlighted, 
  #console,
  .btn,
  header,
  footer {
    display: none !important;
  }  
  /* 1. Configuración del papel */
  @page {
    size: A4;
    margin: 15mm;
  }

  /* 2. Ocultar absolutamente todo lo que no sea el libro */
  body * {
    visibility: hidden;
  }

  /* 3. Hacer visible el contenedor y su contenido */
  #reclamaciones-smart-v1, 
  #reclamaciones-smart-v1 * {
    visibility: visible;
  }

  /* 4. Posicionamiento y Limpieza del contenedor principal */
  #reclamaciones-smart-v1 {
    margin-top: 0 !important;
    position: absolute;
    left: 0;
    top: 0;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important; /* El contenedor padre no lleva borde */
  }

  /* 5. Estilo específico para la Hoja de Reclamación (el recuadro interno) */
  #reclamaciones-smart-v1 .libro-box {
    width: 100% !important;
    border: 1px solid #00468c !important; /* Mantiene el azul de tu captura */
    padding: 20px !important;
  }

  /* 6. Control de saltos de página para evitar textos cortados */
  #reclamaciones-smart-v1 p, 
  #reclamaciones-smart-v1 tr, 
  #reclamaciones-smart-v1 img {
    page-break-inside: avoid;
  }
  
  #reclamaciones-smart-v1 h2, 
  #reclamaciones-smart-v1 h3 {
    page-break-after: avoid;
  }

  /* 7. Ocultar botones y enlaces dentro del libro (como el de "Volver al inicio") */
  #reclamaciones-smart-v1 .btn, 
  #reclamaciones-smart-v1 a,
  #reclamaciones-smart-v1 .messages {
    display: none !important;
  }
}

@media (max-width: 768px) {
    #reclamaciones-smart-v1 {
        width: 90% !important; /* El 90% que solicitaste */
        margin: 20px auto !important; /* Centrado automático */
        padding: 20px !important; /* Reducimos el padding interno para ganar espacio */
    }
    
    #reclamaciones-smart-v1 .hoja-fisica {
        width: 100% !important; /* La hoja ocupa el ancho del contenedor padre */
        padding: 20px !important;
    }
}

@media (max-width: 480px) {
    /* Ajuste para el texto de éxito y el código de seguimiento */
    .reclamacion-confirmacion-wrapper {
        width: 90%;
        margin: 0 auto;
        padding: 10px;
    }

    /* Ajuste para la vista previa de la hoja en el celular */
    #reclamaciones-smart-v1 .smart-hoja-layout {
        width: 100% !important;
        margin: 0 auto !important;
        padding: 15px !important;
        font-size: 13px; /* Reducimos un poco la fuente para que quepa mejor */
    }

    /* Forzamos que el logo no sea gigante en móvil */
    #reclamaciones-smart-v1 img {
        max-width: 120px !important;
        height: auto !important;
    }
}
@media (min-width: 769px) and (max-width: 1024px) {
    #reclamaciones-smart-v1 {
        width: 92% !important;
        padding: 30px !important;
    }
}

#reclamaciones-smart-v1 * {
    max-width: 100%;
    box-sizing: border-box; /* Asegura que el padding no sume al ancho total */
}

