.modal-content { background: #fff !important; color: #222 !important; }
body { 
    background: linear-gradient(135deg, #fff5f5 0%, #ffe6e6 100%); 
    background-attachment: fixed;
    color: #b71c1c;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.navbar { 
    background: linear-gradient(135deg, #b71c1c 0%, #8b1616 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(183, 28, 28, 0.2);
    padding: 1rem 2rem !important;
    transition: all 0.3s ease;
}
.navbar:hover { box-shadow: 0 6px 16px rgba(183, 28, 28, 0.3); }
.navbar .form-select { 
    border-radius: 20px; 
    padding: 8px 16px;
    background-color: #8b1616;
    color: #fff;
    border: 1px solid #fff;
    transition: all 0.3s ease;
}
.navbar .form-select:hover { background-color: #6b1010; border-color: #fff; }
.modal-title-theme {
    color: #222 !important;
    background: #b71c1c !important;
    font-weight: bold;
    padding: 8px 20px;
    border-radius: 20px;
    display: inline-block;
    text-shadow: none !important;
    transition: all 0.3s ease;
}
.modal-title-theme:hover { background: #8b1616 !important; }

/* Estilos Responsivos para Hamburguesa y Logotipo */
@media (max-width: 767px) {
    img[alt="Logo"] {
        height: 90px !important;
    }
}

@media (max-width: 479px) {
    img[alt="Logo"] {
        height: 80px !important;
    }
}

@media (max-width: 320px) {
    img[alt="Logo"] {
        height: 70px !important;
    }
}

/* Estilos del Botón Hamburguesa Bootstrap - SIEMPRE VISIBLE */
.navbar-toggler {
    display: inline-block !important;
    transition: all 0.3s ease;
    visibility: visible !important;
}

.navbar-toggler:focus {
    box-shadow: none !important;
    outline: none !important;
}

/* Forzar que sea visible en TODAS las resoluciones, incluso desktop */
@media (min-width: 992px) {
    .navbar-toggler {
        display: inline-block !important;
        visibility: visible !important;
    }
}

/* Estilos modernos mejorados - Tema Red */
.contenedor_form {
    box-shadow: 0 8px 24px rgba(183, 28, 28, 0.15);
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contenedor_form:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(183, 28, 28, 0.2);
}

#form-peter-btn {
    background: linear-gradient(135deg, #b71c1c 0%, #8b1616 100%) !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(183, 28, 28, 0.25) !important;
    transition: all 0.3s ease !important;
    color: #fff !important;
    border-radius: 12px !important;
}

#form-peter-btn:hover {
    background: linear-gradient(135deg, #8b1616 0%, #6b1010 100%) !important;
    box-shadow: 0 6px 16px rgba(183, 28, 28, 0.35) !important;
    transform: translateY(-1px);
}

body #form-peter-btn,
body button#form-peter-btn {
    background: linear-gradient(135deg, #b71c1c 0%, #8b1616 100%) !important;
    background-color: #b71c1c !important;
    background-image: linear-gradient(135deg, #b71c1c 0%, #8b1616 100%) !important;
}

.form-control:focus {
    border-color: #b71c1c;
    box-shadow: 0 0 0 0.2rem rgba(183, 28, 28, 0.25);
}

/* Tipografía mejorada */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

label {
    font-weight: 500;
    color: #b71c1c;
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #ffe6e6;
    padding: 0.625rem 1rem;
    transition: all 0.2s ease;
}

.form-control:hover, .form-select:hover {
    border-color: #ffcccc;
}

/* Animaciones para mensajes de error */
@keyframes slideInError {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.error-message {
    animation: slideInError 0.3s ease-out;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Mejoras Responsivas */
@media (max-width: 768px) {
    .contenedor_form {
        width: 99% !important;
        margin: 0 auto !important;
        padding: 20px 12px !important;
        border-radius: 12px;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
}

/* Pantallas muy pequeñas - Espacio máximo horizontal */
@media (max-width: 480px) {
    .contenedor_form {
        padding: 16px 8px !important;
    }
}

/* Ultra pequeño - < 360px */
@media (max-width: 360px) {
    .contenedor_form {
        padding: 12px 4px !important;
    }
}

/* ════════════════════════════════════════════════════════════════ */
/* INPUTS CON ICONOS INTERNOS - TEMA RED */
/* ════════════════════════════════════════════════════════════════ */

.input-group-icon {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
}

.input-group-icon .input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #b71c1c;
    z-index: 10;
    font-size: 16px;
    pointer-events: none;
    transition: color 0.3s ease;
}

.input-group-icon .form-control {
    padding-left: 45px;
    height: 48px;
    border-radius: 10px;
    border: 2px solid #ffe6e6;
    transition: all 0.3s ease;
    font-size: 15px;
}

.input-group-icon .form-control:focus { border-color: #b71c1c; box-shadow: 0 0 0 4px rgba(183, 28, 28, 0.1); }
.input-group-icon:focus-within .input-icon { color: #8b1616; }

/* Inputs mejorados sin iconos */
.form-control, input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select.form-control, textarea.form-control {
    height: 48px;
    border-radius: 10px;
    border: 2px solid #ffe6e6;
    padding: 12px 16px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: #fff;
}

textarea.form-control { height: auto; min-height: 120px; }
.form-control:hover { border-color: #ffcccc; }
.form-control:focus { border-color: #b71c1c; box-shadow: 0 0 0 4px rgba(183, 28, 28, 0.1); outline: none; }

/* Form groups con mejor spacing */
.form-group { margin-bottom: 1.5rem; }
.form-group label { font-weight: 600; font-size: 14px; color: #b71c1c; margin-bottom: 8px; display: block; letter-spacing: -0.01em; }

/* Input prefix para teléfonos */
.input-group .form-control:first-child { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group .form-control:last-child { border-top-left-radius: 0; border-bottom-left-radius: 0; border-left: none; }
.input-group .form-control:last-child:focus { border-left: 2px solid #b71c1c; }

/* Placeholder mejorado */
.form-control::placeholder { color: #999; font-size: 14px; font-weight: 400; }

/* Input válido (checkmark verde) */
.form-control:valid:not(:placeholder-shown) {
    border-color: #28a745;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2328a745'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

/* Validación para inputs específicos */
input.form-control:valid:not(:placeholder-shown),
textarea.form-control:valid:not(:placeholder-shown),
select.form-control:valid:not(:placeholder-shown) {
    border-color: #28a745;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2328a745'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

/* Input requerido vacío al hacer focus */
.form-control:required:invalid:focus { border-color: #ffc107; }
