/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */


/* Estilos para el formulario de accidente */



/* Contenedor principal */
/* Estilos para el formulario de accidente */

/* Contenedor principal */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    /* Permitir que los tooltips sobresalgan del contenedor sin recortarse */
    overflow: visible;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    box-sizing: border-box;
}

/* Encabezado del formulario */
.form-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.form-header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 10px;
}

.form-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Formulario */
#form-accidente {
    padding: 40px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

/* Secciones del formulario */
.form-section {
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
  
    transition: all 0.3s ease;
}

.form-section:hover {
    border-color: #667eea;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.1);
}

.form-section h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
    font-weight: 600;
}

/* Estilos específicos para la sección de incapacidad temporal */
.form-section:has(.temporary-disability-container) {
    

    color: #333;
}

.form-section:has(.temporary-disability-container) h3 {
    color: white;
    border-bottom-color: #667eea;
}

/* Grupos de campos */
.field-group {
    margin-bottom: 25px;
}

.field-group:last-child {
    margin-bottom: 0;
}

/* Labels específicos del formulario */
#form-accidente label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
    position: relative;
}

/* Icono de tooltip */
.tooltip-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 18px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 8px;
    cursor: help;
    position: relative;
}

/* Tooltip personalizado */
.tooltip-icon:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #2c3e50;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: normal;
    /* Limitar el ancho y permitir salto de línea */
    max-width: 150px;
    white-space: normal;
    z-index: 1000;
    margin-bottom: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tooltip-icon:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #2c3e50;
    margin-bottom: -5px;
    z-index: 1000;
}

/* Inputs y selects específicos del formulario */
#form-accidente input[type="number"],
#form-accidente select {
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    color: #333;
}

#form-accidente input[type="number"]:focus,
#form-accidente select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Botón de envío específico del formulario */
#form-accidente button[type="submit"] {
    width: 100%;
    margin-top: 20px;
}

/* Grid responsivo para campos */
@media (min-width: 768px) {
    .fields-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .field-group.full-width {
        grid-column: 1 / -1;
    }
}

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

.form-section {
    animation: fadeIn 0.6s ease-out;
}

.form-section:nth-child(2) {
    animation-delay: 0.1s;
}

/* Estados de validación específicos del formulario */
#form-accidente input[type="number"]:invalid {
    border-color: #e74c3c;
}

#form-accidente input[type="number"]:valid {
    border-color: #27ae60;
}

/* Estilos para dispositivos móviles */
@media (max-width: 768px) {
    .form-container {
        margin: 10px;
        border-radius: 8px;
        max-width: calc(100% - 20px);
    }
    
    #form-accidente {
        padding: 20px;
    }
    
    .form-header {
        padding: 20px;
    }
    
    .form-header h1 {
        font-size: 2rem;
    }
    
    .form-section {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .form-section h3 {
        font-size: 1.3rem;
    }
    
    /* Ajustes para tooltips en móvil */
    .tooltip-icon:hover::after {
        white-space: normal;
        max-width: 120px;
        width: auto;
    }
    
    .disability-row {
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px;
        justify-content: flex-start;
    }
    
    .disability-row label {
        min-width: 100px;
        font-size: 0.9rem;
        flex-basis: auto;
    }
    
    .disability-row input[type="number"] {
        width: 60px;
        height: 28px;
        font-size: 13px;
    }
    
    .btn-minus,
    .btn-plus,
    .btn-calendar {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
    
    .btn-calendar svg {
        width: 14px;
        height: 14px;
    }
    
    /* Asegurar que los elementos no se desborden en móvil */
    .temporary-disability-container {
        padding: 0;
        margin: 0;
    }
    
    .form-section:has(.temporary-disability-container) {
        padding: 20px;
    }
}







/* Estilos para la sección de incapacidad temporal */
.temporary-disability-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.disability-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #34495E;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    justify-content: space-between;
}

.disability-left { display: flex; align-items: center; gap: 8px; }
.disability-left label { margin: 0; color: #ecf0f1; font-weight: 600; }
.disability-right { display: flex; align-items: center; gap: 8px; }

/* Botones de incremento/decremento */
.btn-minus,
.btn-plus {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

/* Input numérico en la fila */
.disability-row input[type="number"] {
    width: 80px;
    height: 32px;
    text-align: center;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    background: white;
    color: #495057;
    flex-shrink: 0;
    box-sizing: border-box;
}

.disability-row input[type="number"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

/* Botón de calendario */
.btn-calendar {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.btn-calendar svg {
    width: 16px;
    height: 16px;
}

/* Centrado interno y overrides mínimos */
.disability-right button,
.disability-right input[type="number"] {
  height: 32px;
  margin: 0;
  box-sizing: border-box;
}

.disability-right .btn-minus,
.disability-right .btn-plus,
.disability-right .btn-calendar {
  display: inline-flex;       /* centra contenido del botón */
  align-items: center;
  justify-content: center;
  padding: 0;                 /* anula paddings del tema */
  line-height: 1;             /* evita desajustes verticales */
  vertical-align: middle;
}

.disability-right .btn-calendar svg {
  display: block;             /* quita hueco por baseline */
}

/* opcional: por si el tema mete line-height raro al input */
.disability-row input[type="number"] {
  line-height: 32px;
}







/* Tooltip icon específico para las filas */
.disability-row .tooltip-icon {
    width: 16px;
    height: 16px;
    line-height: 16px;
    font-size: 11px;
    margin: 0;
    flex-shrink: 0;
}

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.modal { background: #fff; padding: 20px; border-radius: 10px; width: 100%; max-width: 420px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.modal h4 { margin-top: 0; margin-bottom: 12px; color: #2c3e50; }
.modal-body { display: flex; gap: 12px; }
.modal-field { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.modal-actions { margin-top: 16px; display: flex; justify-content: flex-end; }

/* Result box */
.result-box {
    border: 2px solid #d9e7be;
    background: #ecf7d8;
    border-radius: 12px;
    padding: 24px;
    margin-top: 16px;
    text-align: center;
}

.result-title {
    font-weight: 700;
    color: #0a4d1a;
    margin: 0 0 8px 0;
}

.result-amount {
    font-size: 2.4rem;
    font-weight: 800;
    color: #0f5132;
    margin: 8px 0 16px 0;
}

.btn-download {
    background: #d97706;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.05s ease;
}

.btn-download:hover { background: #b45309; }
.btn-download:active { transform: translateY(1px); }

.result-box .result-message { margin-top: 16px; color: #0f2e12; }

/* Utilities */
.hidden { display: none !important; }

/* Espaciado lateral para la sección de contacto (está fuera del formulario principal) */
#contact-form-section {
    margin: 0 40px 30px 40px;
}

@media (max-width: 768px) {
    #contact-form-section { margin: 0 20px 20px 20px; }
}

/* Inputs del formulario de contacto con el mismo estilo que los de arriba */
#form-contacto input[type="text"],
#form-contacto input[type="email"],
#form-contacto input[type="tel"] {
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    color: #333;
}

#form-contacto input[type="text"]:focus,
#form-contacto input[type="email"]:focus,
#form-contacto input[type="tel"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Enlaces del aviso legal y política de privacidad en azul claro */
#contact-form-section a { color: #60a5fa; }
#contact-form-section a:hover { color: #3b82f6; }

/* Nota bajo el botón de envío del formulario de contacto */
#email_info { margin-top: 8px; color: #6b7280; font-size: 0.9rem; }

/* Espaciador invisible debajo del formulario de contacto */
.contact-spacer {
    height: 40px;
    width: 100%;
}

@media (max-width: 768px) {
    .contact-spacer { height: 30px; }
}


/* Estilos para pantallas muy pequeñas */
@media (max-width: 480px) {
    .disability-row {
        padding: 10px;
        gap: 6px;
    }
    
    .disability-row label {
        min-width: 80px;
        font-size: 0.85rem;
    }
    
    .disability-row input[type="number"] {
        width: 50px;
        height: 26px;
        font-size: 12px;
    }
    
    .btn-minus,
    .btn-plus,
    .btn-calendar {
        width: 26px;
        height: 26px;
        font-size: 14px;
    }
    
    .btn-calendar svg {
        width: 12px;
        height: 12px;
    }
    
    .disability-row .tooltip-icon {
        width: 14px;
        height: 14px;
        line-height: 14px;
        font-size: 10px;
    }
}

/* Estilos para modo oscuro (opcional) */
@media (prefers-color-scheme: dark) {
    .form-container {
        background: #2c3e50;
        color: #ecf0f1;
    }
    
    .form-section {
        background: #34495e;
        border-color: #4a5f7a;
    }
    
    .form-section h3 {
        color: #ecf0f1;
    }
    
    #form-accidente label {
        color: #ecf0f1;
    }
    
    #form-accidente input[type="number"],
    #form-accidente select {
        background: #2c3e50;
        border-color: #4a5f7a;
        color: #ecf0f1;
    }
    
    /* Mismo estilo oscuro para los inputs del formulario de contacto */
    #form-contacto input[type="text"],
    #form-contacto input[type="email"],
    #form-contacto input[type="tel"] {
        background: #2c3e50;
        border-color: #4a5f7a;
        color: #ecf0f1;
    }
    
    /* Tooltip en modo oscuro */
    .tooltip-icon {
        background: #5a6fd8;
    }
    
    .tooltip-icon:hover {
        background: #4a5f7a;
    }
    
    .tooltip-icon:hover::after {
        background: #34495e;
        color: #ecf0f1;
    }
    
    .tooltip-icon:hover::before {
        border-top-color: #34495e;
    }
} 


